/* DrellaBet Royal Velvet Custom CSS */
:root {
  --navy: #0d1b3e;
  --navy-dark: #070e1f;
  --navy-mid: #122040;
  --gold: #c9a227;
  --gold-light: #e8c96a;
  --gold-pale: #f5e9c0;
  --cream: #f5efe0;
  --white: #ffffff;
  --text-light: #f0e6d3;
  --text-dark: #0d1b3e;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes sparkle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

@keyframes parallaxFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 12px rgba(201,162,39,0.5); }
  50% { box-shadow: 0 0 28px rgba(201,162,39,0.9); }
}

.marquee-track {
  display: flex;
  animation: marquee 28s linear infinite;
  width: max-content;
}

.sparkle-icon {
  animation: sparkle 2.4s ease-in-out infinite;
}

.float-anim {
  animation: parallaxFloat 5s ease-in-out infinite;
}

.fade-in-up {
  animation: fadeInUp 0.7s ease both;
}

.glow-btn {
  animation: glowPulse 2.5s ease-in-out infinite;
}

/* Prose Styles */
.prose {
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.75;
  max-width: 100%;
}

.prose h2 {
  color: var(--gold-light);
  font-size: 1.6rem;
  font-weight: 700;
  margin-top: 1rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid rgba(201,162,39,0.3);
  padding-bottom: 0.3rem;
}

.prose h3 {
  color: var(--gold);
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.prose p {
  margin-bottom: 1.1rem;
  color: var(--text-light);
}

.prose a {
  color: var(--gold-light);
  text-decoration: underline;
  text-decoration-color: rgba(201,162,39,0.4);
}

.prose a:hover {
  color: var(--gold);
}

.prose ul {
  list-style: disc;
  padding-left: 1.5em;
  margin-bottom: 1rem;
  color: var(--text-light);
}

.prose ol {
  list-style: decimal;
  padding-left: 1.5em;
  margin-bottom: 1rem;
  color: var(--text-light);
}

.prose li {
  margin-bottom: 0.4rem;
}

.prose blockquote {
  border-left: 4px solid var(--gold);
  padding-left: 1rem;
  color: var(--gold-pale);
  font-style: italic;
  margin: 1.5rem 0;
  background: rgba(201,162,39,0.07);
  border-radius: 0 0.5rem 0.5rem 0;
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin: 1.5rem auto;
  display: block;
  border: 2px solid rgba(201,162,39,0.3);
}

.prose table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  white-space: nowrap;
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 1.5rem;
}

.prose thead {
  background: rgba(201,162,39,0.2);
}

.prose th {
  color: var(--gold-light);
  padding: 0.6rem 1rem;
  text-align: left;
  border-bottom: 2px solid rgba(201,162,39,0.4);
  font-weight: 700;
}

.prose td {
  color: var(--text-light);
  padding: 0.55rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.prose tr:nth-child(even) td {
  background: rgba(255,255,255,0.03);
}

/* Mobile burger menu */
#mobile-menu {
  background: var(--navy-dark);
}

/* Overflow table wrapper utility */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--navy-dark); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }

/* Desktop-only hover: real pointers, avoids sticky hover on touch */
@media (hover: hover) and (pointer: fine) {
  a,
  button {
    transition:
      color 0.2s ease,
      background-color 0.2s ease,
      border-color 0.2s ease,
      box-shadow 0.25s ease,
      transform 0.22s ease,
      filter 0.2s ease,
      text-decoration-color 0.2s ease;
  }

  /* Header: text nav + logo */
  header nav a:not(.glow-btn):hover {
    color: var(--gold-light) !important;
    text-decoration: underline;
    text-decoration-color: rgba(232, 201, 106, 0.55);
    text-underline-offset: 0.2em;
  }

  header > div > a[href="/"]:hover {
    transform: scale(1.02);
  }

  /* Gold primary CTAs (filled) */
  a.glow-btn:hover,
  a[style*="background:#c9a227"]:hover {
    transform: translateY(-2px);
    filter: brightness(1.07);
    box-shadow: 0 10px 28px rgba(201, 162, 39, 0.42);
  }

  /* Hero secondary outline */
  a[style*="border:2px solid #c9a227"][style*="background:transparent"]:hover {
    background: rgba(201, 162, 39, 0.14) !important;
    color: var(--gold-light) !important;
    border-color: var(--gold-light) !important;
    box-shadow: 0 0 0 1px rgba(232, 201, 106, 0.35);
  }

  /* Footer text links */
  footer a:hover {
    color: var(--gold-light) !important;
    text-decoration: underline;
    text-decoration-color: rgba(232, 201, 106, 0.45);
    text-underline-offset: 0.15em;
  }

  footer a[style*="background:rgba(201,162,39,0.15)"]:hover {
    background: rgba(201, 162, 39, 0.28) !important;
    border-color: rgba(232, 201, 106, 0.55) !important;
    transform: translateY(-1px);
    text-decoration: none;
  }

  /* Article body links */
  .prose a:hover {
    color: var(--gold-pale);
    text-decoration-thickness: 2px;
    text-underline-offset: 0.22em;
  }

  /* Mobile menu panel links (tablet/desktop resize) */
  #mobile-menu nav a:not(.glow-btn):hover {
    color: var(--gold-light) !important;
    padding-left: 0.25rem;
  }

  #mobile-menu nav a.glow-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.06);
    box-shadow: 0 8px 22px rgba(201, 162, 39, 0.38);
  }

  #burger-btn:hover span {
    opacity: 0.85;
    filter: brightness(1.15);
  }
}
