/* ===========================================
   MY CARIBBEAN JOURNEY - Shared Styles
   Common tokens, reset, nav, footer, buttons
   =========================================== */


@layer reset, base, components;

/* --- Reset --- */
@layer reset {
  *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
}

@layer base {

/* --- Design Tokens --- */
:root {
  --green-deep: #0d1f12;
  --green-dark: #142a19;
  --green-mid: #1a4a2e;
  --green-light: #2d6b45;
  --gold: #d4a030;
  --gold-light: #e8b84a;
  --gold-glow: #d4a03060;
  --gold-gradient: linear-gradient(135deg, var(--gold), var(--orange));
  --orange: #e8652a;
  --cream: #f5f0e8;
  --warm-white: #faf8f4;
  --text-dark: #1a1a1a;
  --text-muted: #5a5a52;
  --text-light: #e8e4dc;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 3rem;
  --space-xl: 5rem;
  --space-2xl: 8rem;

  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s ease;
}

/* --- Base --- */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--warm-white);
  line-height: 1.7;
  overflow-x: hidden;
  text-wrap: pretty;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

h1, h2, h3, h4, h5 { text-wrap: balance; }

} /* end @layer base */

@layer components {

/* --- Utilities --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 var(--space-md); }
.text-gold {
  /* color: var(--gold); */
  background: linear-gradient(135deg, var(--gold), var(--orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: none;

  &.btn-primary {
    /* background: var(--gold); */
    background: linear-gradient(135deg, var(--gold), var(--orange));
    color: var(--green-deep);
    box-shadow: 0 4px 20px var(--gold-glow);

    &:hover {
      /* background: var(--gold-light); */
      background: linear-gradient(135deg, var(--gold-light), #f0814a);
      transform: translateY(-2px);
      box-shadow: 0 6px 30px var(--gold-glow);
    }
  }

  &.btn-outline {
    background: transparent;
    color: var(--cream);
    border: 2px solid rgba(232, 228, 220, 0.3);

    &:hover {
      border-color: var(--gold);
      color: var(--gold);
    }
  }

  &.btn-outline-dark {
    background: transparent;
    color: var(--green-deep);
    border: 2px solid rgba(13, 31, 18, 0.25);

    &:hover {
      border-color: var(--green-deep);
      background: rgba(13, 31, 18, 0.06);
    }
  }

  &.btn-large {
    padding: 1.1rem 3rem;
    font-size: 1.15rem;
    border-radius: 12px;
  }
}

/* --- Section Utilities --- */
.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green-mid);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: var(--space-xs);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--green-deep);
  line-height: 1.2;
}

/* --- Site Header (nav + music player wrapper) --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background var(--transition), box-shadow var(--transition);

  &.scrolled {
    background: rgba(13, 31, 18, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);

    .music-player {
      background: rgba(13, 31, 18, 0.6);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      border-color: rgba(212, 160, 48, 0.22);
      box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
    }
  }
}

/* --- Site Navigation --- */
.site-nav {
  /* env(safe-area-inset-top) adds iOS notch/Dynamic Island clearance.
     Falls back to var(--space-sm) on all other platforms (env() returns 0). */
  padding: calc(var(--space-sm) + env(safe-area-inset-top)) 0 var(--space-sm);
}

.site-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--cream);
  letter-spacing: 0.02em;
}

.site-nav-logo-img {
  height: 54px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.site-nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.site-nav-links a {
  color: var(--text-light);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);

  &:hover { color: var(--gold); }
}

.site-nav-cta {
  /* background: var(--gold); */
  background: linear-gradient(135deg, var(--gold), var(--orange));
  color: var(--green-deep) !important;
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  font-weight: 600 !important;
  transition: background var(--transition), transform var(--transition) !important;

  &:hover {
    /* background: var(--gold-light) !important; */
    background: linear-gradient(135deg, var(--gold-light), #f0814a) !important;
    transform: translateY(-1px);
  }
}

.site-nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  /* 14px top/bottom + 16px bar content = 44px touch target (WCAG 2.5.5) */
  padding: 14px 8px;
}

.site-nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.site-mobile-menu {
  display: none;
  position: fixed;
  top: 82px; /* fallback — overridden dynamically in components.js */
  left: 0;
  right: 0;
  background: rgba(13, 31, 18, 0.98);
  backdrop-filter: blur(10px);
  padding: var(--space-md);
  flex-direction: column;
  gap: var(--space-sm);
  z-index: 99;
  transform: translateY(-10px);
  opacity: 0;
  pointer-events: none;
  transition: transform var(--transition), opacity var(--transition);
}

.site-mobile-menu {
  &.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  a {
    color: var(--text-light);
    font-size: 1.1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .site-nav-cta {
    text-align: center;
    margin-top: var(--space-xs);
    border-bottom: none;
  }
}

/* --- Site Footer --- */
.site-footer {
  background: var(--green-deep);
  color: var(--text-light);
  padding: var(--space-lg) 0 var(--space-md);
  margin-top: var(--space-xl);
}

.site-footer-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: var(--space-lg);
  align-items: start;
  padding-bottom: var(--space-md);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: var(--space-md);
}

.site-footer-logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--cream);
}

.site-footer-tagline {
  font-size: 0.85rem;
  color: rgba(232, 228, 220, 0.55);
  margin-top: 4px;
}

.site-footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.site-footer-copy {
  font-size: 0.8rem;
  color: rgba(232, 228, 220, 0.55);
  margin-top: var(--space-sm);
}

.site-footer-links a {
  color: rgba(232, 228, 220, 0.6);
  font-size: 0.9rem;
  transition: color var(--transition);

  &:hover { color: var(--gold); }
}

.site-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(232, 228, 220, 0.55);
}

/* --- Footer Support Link --- */
.footer-support {
  font-size: 0.75rem;
  color: rgba(232, 228, 220, 0.55);
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
  white-space: nowrap;
  transition: color 0.2s ease;

  &:hover { color: var(--gold); }
}

/* --- Author Stamp Bar --- */
.site-stamp-bar {
  background: linear-gradient(to bottom, var(--green-deep) 0%, var(--warm-white) 55%);
  text-align: center;
  padding: 0 1rem 2.5rem;
}

.site-stamp-container {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 200px;
  height: 200px;
  background: var(--warm-white);
  border-radius: 22px;
  box-shadow: 0 8px 40px rgba(13, 31, 18, 0.18);
  transform: translateY(-40px);
  margin-bottom: -40px;
}

.site-stamp-container::after {
  content: '';
  position: absolute;
  bottom: -18px;
  left: 12%;
  width: 76%;
  height: 18px;
  background: rgba(13, 31, 18, 0.22);
  border-radius: 50%;
  filter: blur(10px);
  z-index: -1;
}

.site-stamp-tooltip {
  position: absolute;
  bottom: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  width: 220px;
  background: var(--green-deep);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.75rem;
  line-height: 1.55;
  text-align: center;
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  border: 1px solid rgba(212, 160, 48, 0.45);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  white-space: normal;
  z-index: 10;
}

/* Arrow pointing down toward the stamp */
.site-stamp-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: rgba(212, 160, 48, 0.45);
}

.site-stamp-container:hover .site-stamp-tooltip,
.site-stamp-container.is-active .site-stamp-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.site-stamp {
  width: 144px;
  height: auto;
  opacity: 0.78;
  display: block;
}

/* --- Buy Me a Coffee Floating Button --- */
.support-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 900;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: var(--green-deep);
  border: 1px solid rgba(212, 160, 48, 0.25);
  border-radius: 50px;
  text-decoration: none;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.2;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  pointer-events: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);

  &--visible {
    opacity: 0.85;
    transform: translateY(0);
    pointer-events: auto;
  }

  &:hover {
    opacity: 1;
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
  }
}

.support-float-icon {
  font-size: 1rem;
  flex-shrink: 0;
}

.support-float-text {
  display: flex;
  flex-direction: column;
}

.support-float-sub {
  font-size: 0.65rem;
  opacity: 0.55;
  font-weight: 400;
}

/* --- Charity Callout Component --- */
.site-charity {
  background: var(--cream);
  padding: var(--space-xl) 0;
  text-align: center;
}

.site-charity-inner {
  max-width: 640px;
  margin: 0 auto;
}

.site-charity-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  /* background: linear-gradient(135deg, var(--gold), var(--gold-light)); */
  background: linear-gradient(135deg, var(--gold), var(--orange));
  color: var(--green-deep);
  margin-bottom: 1.25rem;
}

.site-charity .section-label {
  color: var(--green-mid);
}

.site-charity-heading {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 400;
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.site-charity-name {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--green-deep);
  margin-bottom: 0.75rem;
  line-height: 1.2;
  text-wrap: balance;
}

.site-charity-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
  text-wrap: balance;
}

/* --- Hero Newsletter Signup --- */
.hero-newsletter {
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(232, 228, 220, 0.1);
}

.hero-newsletter-label {
  font-size: 0.8rem;
  font-weight: 600;
  /* color: var(--gold); */
  background: linear-gradient(135deg, var(--gold), var(--orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.35rem;
}

.hero-newsletter-desc {
  font-size: 0.9rem;
  color: rgba(232, 228, 220, 0.55);
  line-height: 1.5;
  margin-bottom: 0.9rem;
  text-wrap: balance;
}

.hero-newsletter-fields {
  display: flex;
  gap: 0.5rem;
}

.hero-newsletter-fields input {
  flex: 1;
  min-width: 0;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(232, 228, 220, 0.15);
  background: rgba(255, 255, 255, 0.07);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: border-color var(--transition);
}

.hero-newsletter-fields input::placeholder {
  color: rgba(232, 228, 220, 0.35);
}

.hero-newsletter-fields input:focus {
  outline: none;
  border-color: var(--gold);
}

.hero-newsletter-fields .btn {
  flex-shrink: 0;
  padding: 0.7rem 1.25rem;
  font-size: 0.9rem;
  white-space: nowrap;
}

.hero-newsletter-success {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.875rem;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-top: 0.6rem;
}

@media (max-width: 560px) {
  .hero-newsletter-fields {
    flex-direction: column;
  }

  .hero-newsletter-fields .btn {
    width: 100%;
  }
}

/* --- Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Scroll-driven fade-in — progressive enhancement for supporting browsers.
   In non-supporting browsers the existing JS transition fallback runs instead. */
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .fade-in {
      animation: fade-in-up 0.6s ease both;
      animation-timeline: view();
      animation-range: entry 0% entry 25%;
    }
  }
}

/* --- Breadcrumb (inside fixed header, below nav row) --- */
.site-nav-crumb-bar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md) 0.55rem;
}

.site-breadcrumb { margin: 0; }

.site-bc-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-bc-item {
  font-family: var(--font-body);
  font-size: 0.67rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-bc-link {
  color: rgba(245, 240, 232, 0.4);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-bc-link:hover { color: rgba(245, 240, 232, 0.75); }

.site-bc-sep {
  color: rgba(245, 240, 232, 0.2);
  font-size: 0.58rem;
  user-select: none;
}

.site-bc-item--current {
  color: var(--gold);
  opacity: 0.85;
  font-weight: 600;
}

/* --- Hero Scroll Indicator (shared default) --- */
.hero-scroll {
  position: absolute;
  bottom: var(--space-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(232, 228, 220, 0.4);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 2;
}

.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid rgba(232, 228, 220, 0.3);
  border-bottom: 2px solid rgba(232, 228, 220, 0.3);
  transform: rotate(45deg);
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50%       { transform: rotate(45deg) translateY(6px); }
}

/* --- Responsive: Nav & Footer --- */
@media (max-width: 768px) {
  .container {
    padding: 0 var(--space-sm);
  }

  .site-nav-links {
    display: none;
  }

  .site-nav-toggle {
    display: flex;
  }

  .site-mobile-menu {
    display: flex;
  }

  .site-footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .site-footer-links {
    align-items: center;
  }

  .site-footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .section-title {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-sm);
  }

  .site-nav-logo {
    font-size: 1.2rem;
  }

  .site-nav-logo-img {
    height: 42px;
  }

  .site-footer-logo {
    font-size: 1.1rem;
  }

  .site-footer-links {
    font-size: 0.8rem;
  }

  .btn-large {
    padding: 0.9rem 2rem;
    font-size: 1rem;
  }
}

/* --- Music Player Notch --- */
.music-player {
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 1.1rem;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid rgba(212, 160, 48, 0);
  border-radius: 100px;
  box-shadow: none;
  white-space: nowrap;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition), backdrop-filter var(--transition);
}


.music-player-note {
  font-size: 0.82rem;
  color: var(--gold);
  display: inline-block;

  &.playing { animation: note-pulse 1.6s ease-in-out infinite; }
}

@keyframes note-pulse {
  0%, 100% { transform: scale(1);    opacity: 1; }
  50%       { transform: scale(1.4); opacity: 0.6; }
}

.music-player-title {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(232, 228, 220, 0.62);
  letter-spacing: 0.02em;
}

.music-player-controls {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-left: 0.1rem;
}

.music-player-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: rgba(212, 160, 48, 0.1);
  border: 1px solid rgba(212, 160, 48, 0.22);
  border-radius: 50%;
  color: var(--gold);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
  flex-shrink: 0;
  padding: 0;

  &:hover {
    background: rgba(212, 160, 48, 0.28);
    border-color: var(--gold);
  }
}

@media (max-width: 480px) {
  .music-player-title {
    display: none;
  }

  .music-player {
    padding: 0.45rem 0.7rem;
    gap: 0.4rem;
  }

  /* Expand tap target — 22px is too small to reliably hit on a phone */
  .music-player-btn {
    width: 32px;
    height: 32px;
  }
}

/* --- Music Toast --- */
.music-toast {
  position: fixed;
  bottom: 5.5rem;
  left: 1.5rem;
  z-index: 820;
  width: min(320px, calc(100vw - 3rem));
  background: var(--green-deep);
  border: 1px solid rgba(212, 160, 48, 0.3);
  border-radius: 16px;
  padding: 1rem 1.25rem;
  box-shadow: 0 6px 32px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;

  &.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
}

.music-toast-close {
  position: absolute;
  top: 0.6rem;
  right: 0.75rem;
  background: none;
  border: none;
  color: rgba(232, 228, 220, 0.4);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  transition: color var(--transition);

  &:hover { color: var(--cream); }
}

.music-toast-body {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding-right: 1rem;
}

.music-toast-icon {
  font-size: 1.4rem;
  color: var(--gold);
  flex-shrink: 0;
  line-height: 1.3;
}

.music-toast-text {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: rgba(232, 228, 220, 0.8);
  line-height: 1.5;
  margin: 0;

  strong {
    /* color: var(--gold); */
    background: linear-gradient(135deg, var(--gold), var(--orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    font-weight: 600;
  }
}

.music-toast-cue {
  display: block;
  font-size: 0.75rem;
  color: rgba(212, 160, 48, 0.6);
  margin-top: 0.4rem;
  letter-spacing: 0.03em;
}

/* --- Player highlight pulse (triggered by toast click) --- */
@keyframes player-highlight {
  0%   { box-shadow: none; }
  30%  { box-shadow: 0 0 0 3px var(--gold), 0 0 24px rgba(212, 160, 48, 0.5); }
  70%  { box-shadow: 0 0 0 3px var(--gold), 0 0 24px rgba(212, 160, 48, 0.5); }
  100% { box-shadow: none; }
}

.music-player {
  &.highlight { animation: player-highlight 1.8s ease-in-out forwards; }
}

/* --- GDPR Banner --- */
.gdpr-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 950;
  background: var(--green-deep);
  border-top: 1px solid rgba(212, 160, 48, 0.15);
  padding: 1.5rem var(--space-md) 5rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, opacity 0.3s ease;

  &.dismissed {
    transform: translateY(100%);
    opacity: 0;
  }
}

.gdpr-text {
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: rgba(232, 228, 220, 0.7);
  line-height: 1.6;
  margin: 0;
  flex: 1;

  a {
    color: var(--gold);
    text-decoration: underline;
    text-underline-offset: 2px;

    &:hover { color: var(--gold-light); }
  }
}

.gdpr-accept {
  flex-shrink: 0;
  background: transparent;
  border: 1px solid rgba(212, 160, 48, 0.4);
  border-radius: 8px;
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.65rem 1.5rem;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
  white-space: nowrap;

  &:hover {
    background: rgba(212, 160, 48, 0.12);
    border-color: var(--gold);
  }
}

@media (max-width: 560px) {
  .gdpr-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1.25rem var(--space-sm) 5.5rem;
  }

  .gdpr-accept {
    align-self: flex-end;
  }

  .music-toast {
    bottom: 1.5rem;
    left: 1rem;
    right: 1rem;
    width: auto;
  }
}

/* --- Disabled links + Coming soon tooltip --- */
/* Apply data-tooltip="..." to any link to show a hover tooltip */
/* Use .btn-disabled to visually mute a button that's temporarily offline */

.btn-disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: auto; /* keep pointer events so tooltip works on hover */
}

[data-tooltip] {
  position: relative;

  &::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--green-deep);
    color: var(--cream);
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 100;
    border: 1px solid rgba(212, 160, 48, 0.2);
  }

  &:hover::after,
  &:focus::after,
  &.is-active::after {
    opacity: 1;
  }
}

} /* end @layer components */
