/* Typography imported from Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300..900;1,300..900&family=Staatliches&display=swap");

html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*,
*:before,
*:after {
  box-sizing: inherit;
}

/* Styling Variables */
:root {
  --accent-color: #00799b;
  --body-typeface: serif;
  --main-heading: serif;
  --gradient: linear-gradient(45deg, #ffcdbd, #ffe9f1, #24aadb, #ca5b00, #a3604f);
}

body {
  font-family: var(--body-typeface);
  color: rgb(135, 54, 0);
  display: flex;
  flex-direction: column;
}

/* Making all images responsive */
img {
  max-width: 100%;
  height: auto;
}

/* Dragable divs - hard and idk how this could work */

/* Typography */

h1 {
  font-size: 5rem;
  font-family: var(--main-heading);
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2.5rem;
  writing-mode: vertical-rl;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

p {
  font-size: 1.625rem;
  font-family: var(--body-typeface);
  margin-bottom: 0.2rem;
  line-height: 1.2;
}

.hero-headline {
  color: rgb(0, 100, 181);
}

/* Hyperlink Styles */
a {
  text-decoration: none;
  color: #444;
}
a:hover {
  color: #111;
}

p {
  margin-bottom: 1rem;
}

/* Work Page Layout */

/* Hero */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-size: 600%;
  background-image: var(--gradient);
  animation: bg-animation 120s infinite alternate;
}

@keyframes bg-animation {
  0% {
    background-position: 0%;
  }
  100% {
    background-position: 100%;
  }
}

.hero-headline-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 80%;
}

/* ===========================================================
   IDEA Web Ring Banner Styles
   --------------------------------------
   Styles for the inline “Previous | IDEA Web Ring | Next” 
   navigation links (web ring). 

   - Use with <nav class="webring" data-members="/webring-members-coding-club.json" data-hub="/"> container
   - Links: .webring-previous, .webring-next, .webring-hub
   - Divider between links: .divider
   =========================================================== */

.webring {
  font-family: "Rubik", sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 0.625rem; /* space between items */
  background: linear-gradient(135deg, #6a5af9, #f95a8a);
  padding: 0.5rem 1rem;
  border-radius: 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: white;
  box-shadow: 0 0.25rem 0.625rem rgba(0, 0, 0, 0.15);
  justify-content: center;
  margin-bottom: 1rem;
}

/* Individual links */
.webring-previous,
.webring-next,
.webring-hub {
  color: white;
  text-decoration: none;
  padding: 0.25rem 0.5rem;
  border-radius: 1rem;
  transition: background 0.3s;
}

.webring-previous:hover,
.webring-next:hover,
.webring-hub:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Divider between links */
.divider {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 400;
}

/* ===========================================================
   IDEA Web Ring Page View Counter
   --------------------------------------
   Global page view counter using EnhancedCounter for persistent,
   cross-device view tracking.

   - Uses EnhancedCounter with localStorage + API verification
   - Creates unique counters for each page path
   - Automatically increments on each page load
   - Displays count in element with ID 'viewCount'

   Usage: Add <div class="page-counter">👁️ <span id="viewCount">—</span> views</div>
   =========================================================== */

.page-counter {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  background: linear-gradient(135deg, #6a5af9, #f95a8a);
  padding: 0.5rem 1rem;
  border-radius: 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: white;
  box-shadow: 0 0.25rem 0.625rem rgba(0, 0, 0, 0.15);
  justify-content: center;
  margin-bottom: 1rem;
  font-variant-numeric: tabular-nums;
  cursor: default;
  user-select: none;
  transition: background 0.3s; /* Add transition for smooth hover */
}

/* Match the webring nav hover exactly */
.page-counter:hover {
  background: rgba(255, 255, 255, 0.2);
}
