/* Shared site styles extracted from inline <style> blocks.
   Page-specific rules are scoped with body[data-page="..."] to avoid conflicts. */

/* ===== Base ===== */
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  background-color: #0d0d0d;
  color: #fff;
  overflow-x: hidden;
}

/* ===== Navbar brand + nav colors ===== */
.navbar-brand {
  font-family: "DynaPuff", system-ui;
  font-weight: bold;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
  background: linear-gradient(-45deg, #ff71ce, #01cdfe, #05ffa1, #b967ff, #fffb96);
  background-size: 400% 400%;
  animation: gradientShift 120s ease infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #ff71ce;
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.2);
}

.navbar-brand img {
  transition: transform 0.3s ease, filter 0.3s ease;
}

.navbar-brand img:hover {
  transform: rotate(-10deg) scale(1.1);
  filter: drop-shadow(0 0 4px #ff71ce);
}

.navbar-nav > li:nth-child(1) > .nav-link { color: #ff71ce !important; } /* Home */
.navbar-nav > li:nth-child(2) > .nav-link { color: #01cdfe !important; } /* Music */
.navbar-nav > li:nth-child(3) > .nav-link { color: #05ffa1 !important; } /* Videos */
.navbar-nav > li:nth-child(4) > .nav-link { color: #b967ff !important; } /* Gallery */
.navbar-nav > li:nth-child(5) > .nav-link { color: #fffb96 !important; } /* About */
.navbar-nav > li:nth-child(6) > .nav-link { color: #ff9966 !important; } /* Contact (if used) */

.navbar-nav > li > .nav-link:hover {
  text-shadow: 0 0 6px currentColor, 0 0 12px currentColor;
  transition: all 0.3s ease;
}

.navbar-nav .nav-link.active {
  text-shadow: 0 0 6px currentColor, 0 0 12px currentColor, 0 0 18px currentColor;
  transition: all 0.3s ease;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ===== Shared gradient text + social icons ===== */
.gradient-text {
  font-weight: bold;
  background: linear-gradient(-45deg, #ff71ce, #01cdfe, #05ffa1, #b967ff, #fffb96);
  background-size: 400% 400%;
  animation: gradientShift 120s ease infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #ff71ce;
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.2);
}

.social-icons a {
  margin: 0 10px;
  font-size: 1.5rem;
  color: #fff;
  transition: transform 0.3s ease, text-shadow 0.3s ease;
}

.social-icons a:hover {
  transform: scale(1.2);
  color: #ff71ce;
  text-shadow: 0 0 6px #ff71ce, 0 0 12px #01cdfe, 0 0 18px #05ffa1;
}

/* ===== Footer ===== */
footer {
  background: #111;
  padding: 20px 0;
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.8;
}

footer a {
  color: #fff;
  text-decoration: underline;
}

footer a:hover {
  color: #ff71ce;
  text-shadow: 0 0 6px #ff71ce;
}

/* ===== About page ===== */
body[data-page="about"] .about-bio a {
  color: #fff;
  text-decoration: underline;
}

body[data-page="about"] .about-bio a:hover {
  color: #ff71ce;
  text-shadow: 0 0 6px #ff71ce;
}

body[data-page="about"] #bottomBar {
  background: #000;
}

/* ===== Home page ===== */
body[data-page="home"] .hero {
  position: relative;
  padding: 120px 0;
  text-align: center;
  background-image: url("https://shoeslug.com/site_bannah.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

body[data-page="home"] .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 113, 206, 0.15), transparent 60%),
    radial-gradient(circle at 70% 60%, rgba(1, 205, 254, 0.15), transparent 60%);
  animation: shimmerLoop 10s ease-in-out infinite;
  z-index: 0;
  pointer-events: none;
}

body[data-page="home"] .hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.1);
  z-index: 0;
}

@keyframes shimmerLoop {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 0.5; }
}

@keyframes rainbowFlicker {
  0%, 100% {
    opacity: 1;
    color: hsl(var(--hue), 100%, 70%);
    filter:
      drop-shadow(0 0 2px hsl(var(--hue), 100%, 70%))
      drop-shadow(0 0 4px hsl(calc(var(--hue) + 60), 100%, 70%));
  }
  50% {
    opacity: 0.5;
    color: hsl(calc(var(--hue) + 180), 100%, 70%);
    filter: drop-shadow(0 0 1px hsl(calc(var(--hue) + 180), 100%, 70%));
  }
}

body[data-page="home"] #hero-title span {
  display: inline-block;
  opacity: 0;
  transform: translateY(30px);
  animation: slideIn 0.6s ease-out forwards var(--i-delay), rainbowFlicker 3s infinite ease-in-out;
  --i-delay: calc(var(--i) * 0.1s);
  animation-delay: var(--i-delay), calc(var(--i) * 0.2s + 3.2s);
  --hue: calc(var(--i) * 40);
  font-family: "DynaPuff", system-ui;
  font-optical-sizing: auto;
  font-style: normal;
  font-variation-settings: "width" 100;
}

@keyframes slideIn {
  to {
    opacity: 1;
    transform: translateY(0);
    text-shadow: 0 0 4px #000, 0 0 10px #000;
  }
}

body[data-page="home"] .hero h1 {
  font-size: 4rem;
  font-weight: 700;
  color: #fff;
  z-index: 2;
  position: relative;
  animation: neonPulse 2s infinite alternate;
  text-shadow: 0 0 10px #ff71ce, 0 0 20px #01cdfe, 0 0 40px #b967ff;
}

body[data-page="home"] .hero h3 {
  margin-top: 1rem;
  font-size: 1.5rem;
  opacity: 0;
  animation: fadeUp 2s ease forwards 1.5s;
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

body[data-page="home"] #particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1;
}

body[data-page="home"] .hero-color-1 { color: #ff71ce; text-shadow: 0 0 6px #ff71ce, 0 0 12px #ff71ce; animation: flicker1 2s infinite; animation-delay: 1s; animation-fill-mode: both; }
body[data-page="home"] .hero-color-2 { color: #01cdfe; text-shadow: 0 0 6px #01cdfe, 0 0 12px #01cdfe; animation: flicker2 2s infinite; animation-delay: 1.5s; animation-fill-mode: both; }
body[data-page="home"] .hero-color-3 { color: #05ffa1; text-shadow: 0 0 6px #05ffa1, 0 0 12px #05ffa1; animation: flicker3 2s infinite; animation-delay: 2s; animation-fill-mode: both; }

@keyframes flicker1 { 0%, 100% { color: #ff71ce; text-shadow: 0 0 6px #ff71ce, 0 0 12px #ff71ce; } 50% { color: #ff71ce; text-shadow: 0 0 2px #000; } }
@keyframes flicker2 { 0%, 100% { color: #01cdfe; text-shadow: 0 0 6px #01cdfe, 0 0 12px #01cdfe; } 50% { color: #01cdfe; text-shadow: 0 0 2px #000; } }
@keyframes flicker3 { 0%, 100% { color: #05ffa1; text-shadow: 0 0 6px #05ffa1, 0 0 12px #05ffa1; } 50% { color: #05ffa1; text-shadow: 0 0 2px #000; } }
@keyframes neonPulse { 0% { text-shadow: 0 0 6px #ff71ce; } 100% { text-shadow: 0 0 18px #ff71ce, 0 0 30px #01cdfe; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

body[data-page="home"] #idle-game {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: rgba(17, 17, 17, 0.95);
  color: #05ffa1;
  border: 2px solid #05ffa1;
  padding: 12px 16px;
  border-radius: 12px;
  z-index: 9999;
  display: none;
  font-family: monospace;
  animation: pulseIdle 2s infinite;
  box-shadow: 0 0 10px #05ffa1;
}

body[data-page="home"] #idle-game button {
  background: #05ffa1;
  color: #000;
  border: none;
  margin-top: 10px;
  padding: 6px 10px;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
}

@keyframes pulseIdle {
  0% { box-shadow: 0 0 5px #05ffa1; }
  50% { box-shadow: 0 0 15px #05ffa1; }
  100% { box-shadow: 0 0 5px #05ffa1; }
}

body[data-page="home"] .card-img-top { transition: filter 0.3s ease, transform 0.3s ease; }
body[data-page="home"] .card:hover .card-img-top { transform: scale(1.05); }

/* ===== Music page ===== */
body[data-page="music"] .spotify-embed { margin: 2rem auto; }

body[data-page="music"] .btn-subscribe {
  color: #fff;
  background: rgba(255, 113, 206, 0.15);
  border: 2px solid #ff71ce;
  border-radius: 30px;
  padding: 0.6rem 2rem;
  font-weight: bold;
  text-shadow: 0 0 6px #fff;
  transition: all 0.3s ease;
}

body[data-page="music"] .btn-subscribe:hover {
  background: #ff71ce;
  color: #000;
  box-shadow: 0 0 20px #ff71ce, 0 0 40px #ff71ce;
  text-shadow: none;
}

/* ===== Videos page ===== */
body[data-page="videos"] .video-embed {
  margin: 2rem auto;
  max-width: 800px;
  aspect-ratio: 16 / 9;
}

body[data-page="videos"] .video-embed iframe {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  border: none;
}

body[data-page="videos"] .video-wrapper {
  position: relative;
  max-width: 800px;
  aspect-ratio: 16 / 9;
  margin: 2rem auto;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(255, 113, 206, 0.4);
}

body[data-page="videos"] .video-wrapper iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: none;
  z-index: 1;
  position: relative;
}

body[data-page="videos"] .vhs-filter {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.02) 1px, transparent 1px, transparent 3px);
  mix-blend-mode: overlay;
  animation: vhsFlicker 0.2s infinite alternate;
}

@keyframes vhsFlicker { 0% { opacity: 0.9; } 100% { opacity: 0.95; } }

body[data-page="videos"] .vhs-overlay {
  pointer-events: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("https://shoeslug.com/assets/vhs-static.gif");
  opacity: 0.05;
  z-index: 3;
  mix-blend-mode: screen;
}

body[data-page="videos"] .video-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 4;
  pointer-events: none;
  border-radius: 12px;
  box-shadow: inset 0 0 80px rgba(255, 255, 255, 0.05), inset 0 0 20px rgba(255, 113, 206, 0.1);
}

body[data-page="videos"] .btn-subscribe {
  color: #fff;
  background: rgba(255, 113, 206, 0.15);
  border: 2px solid #ff71ce;
  border-radius: 30px;
  padding: 0.6rem 2rem;
  font-weight: bold;
  text-shadow: 0 0 6px #fff;
  transition: all 0.3s ease;
}

body[data-page="videos"] .btn-subscribe:hover {
  background: #ff71ce;
  color: #000;
  box-shadow: 0 0 20px #ff71ce, 0 0 40px #ff71ce;
  text-shadow: none;
}

/* ===== Gallery page ===== */
body[data-page="gallery"] {
  background: linear-gradient(-45deg, #ff71ce, #01cdfe, #05ffa1, #b967ff, #fffb96);
  background-size: 400% 400%;
  animation: gradientShift 40s ease infinite;
  color: #fff;
}

body[data-page="gallery"] .gallery-box {
  background: rgba(0, 0, 0, 0.4);
  box-shadow: 0 0 40px rgba(255, 113, 206, 0.4), 0 0 80px rgba(1, 205, 254, 0.2);
  backdrop-filter: blur(8px);
  border: 2px solid rgba(255, 255, 255, 0.15);
}

body[data-page="gallery"] .swiper-button-next,
body[data-page="gallery"] .swiper-button-prev {
  color: #ff71ce;
  text-shadow: 0 0 6px #ff71ce, 0 0 12px #01cdfe;
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 8px #ff71ce, 0 0 12px #01cdfe, 0 0 16px #05ffa1; }
  50% { box-shadow: 0 0 12px #ff71ce, 0 0 18px #01cdfe, 0 0 24px #05ffa1; }
  100% { box-shadow: 0 0 8px #ff71ce, 0 0 12px #01cdfe, 0 0 16px #05ffa1; }
}

body[data-page="gallery"] .active-thumb img {
  box-shadow: 0 0 12px #ff71ce, 0 0 18px #01cdfe, 0 0 24px #05ffa1;
  border: 2px solid #fff;
  border-radius: 8px;
  animation: pulseGlow 2s infinite ease-in-out;
}

html,
body[data-page="gallery"] {
  height: 100%;
}

body[data-page="gallery"] {
  margin: 0;
  display: flex;
  flex-direction: column;
}

body[data-page="gallery"] main { flex: 1; }
body[data-page="gallery"] #bottomBar { margin-top: auto; background: #000; }

body[data-page="gallery"] #catGrid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

body[data-page="gallery"] .cat-card {
  flex: 1 1 260px;
  max-width: 340px;
  background: rgba(0, 0, 0, 0.55);
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(1, 205, 254, 0.15);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

body[data-page="gallery"] .cat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 20px #ff71ce, 0 0 30px rgba(1, 205, 254, 0.4);
}

body[data-page="gallery"] .cat-cover {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

body[data-page="gallery"] .cat-body {
  padding: 1rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.5rem;
}

body[data-page="gallery"] .cat-title {
  margin: 0;
  font-weight: 700;
  font-size: 1.25rem;
  background: linear-gradient(-45deg, #ff71ce, #01cdfe, #05ffa1, #b967ff, #fffb96);
  background-size: 400% 400%;
  animation: gradientShift 60s ease infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #ff71ce;
}

body[data-page="gallery"] .cat-desc {
  font-size: 0.95rem;
  opacity: 0.85;
  line-height: 1.25rem;
}

body[data-page="gallery"] .cat-count {
  align-self: flex-end;
  font-size: 0.9rem;
  opacity: 0.9;
  padding: 0.2rem 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 0.5rem;
}

body[data-page="gallery"] .back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.45);
  padding: 0.5rem 0.9rem;
  border-radius: 0.75rem;
  color: #fff;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body[data-page="gallery"] .back-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 12px #ff71ce, 0 0 18px rgba(1, 205, 254, 0.4);
  color: #fff;
}

