/* ==========================================================================
   Lady Glitter Sparkles — custom styles
   Tailwind (CDN) handles utility classes; this file covers animation,
   type rhythm, and small components that are cleaner as CSS.
   ========================================================================== */

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

/* ---------- Header ---------- */
#site-header {
  background: transparent;
}

#site-header.scrolled {
  background: rgba(27, 14, 36, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.nav-logo-text,
.nav-links-text {
  color: #fff;
}

.mobile-link {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* ---------- Eyebrow labels ---------- */
.eyebrow {
  position: relative;
  padding-left: 1.6rem;
}

.eyebrow::before {
  content: "✦";
  position: absolute;
  left: 0;
  top: -1px;
}

/* ---------- Hero glow + sparkle canvas ---------- */
.hero-glow {
  background: radial-gradient(circle, rgba(255, 62, 157, 0.35) 0%, rgba(255, 62, 157, 0) 70%);
  filter: blur(10px);
}

#sparkle-canvas {
  z-index: 0;
}

/* ---------- Jump chips ---------- */
.chip {
  font-family: "Space Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  transition: all 0.2s ease;
  text-transform: uppercase;
}

.chip:hover {
  background: rgba(52, 229, 201, 0.15);
  border-color: rgba(52, 229, 201, 0.4);
  color: #34e5c9;
}

/* ---------- Sparkle mark (logo) ---------- */
.sparkle-mark {
  color: #ffc247;
  display: inline-block;
  animation: twinkle 2.6s ease-in-out infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: 1; transform: scale(1) rotate(0deg); }
  50% { opacity: 0.55; transform: scale(0.85) rotate(15deg); }
}

/* ---------- Cards ---------- */
.type-card {
  background: #ffffff;
  border-radius: 1.25rem;
  padding: 1.75rem;
  border: 1px solid rgba(27, 14, 36, 0.06);
  box-shadow: 0 1px 2px rgba(27, 14, 36, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.type-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(27, 14, 36, 0.08);
}

.material-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.material-card:hover {
  border-color: rgba(52, 229, 201, 0.35);
  background: rgba(255, 255, 255, 0.06);
}

.qc-item {
  background: rgba(255, 255, 255, 0.03);
  border-left: 2px solid #34e5c9;
  border-radius: 0.5rem;
  padding: 1.1rem 1.25rem;
}

.use-card {
  background: #ffffff;
  border-radius: 1.25rem;
  padding: 1.75rem;
  border: 1px solid rgba(27, 14, 36, 0.06);
  box-shadow: 0 1px 2px rgba(27, 14, 36, 0.04);
}

.review-card {
  background: #ffffff;
  border-radius: 1.25rem;
  padding: 1.75rem;
  border: 1px solid rgba(27, 14, 36, 0.06);
  box-shadow: 0 1px 2px rgba(27, 14, 36, 0.04);
}

.stars {
  color: #ffc247;
  letter-spacing: 0.1em;
  font-size: 0.95rem;
}

.check-icon {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  background: rgba(52, 229, 201, 0.15);
  color: #1ec3aa;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.x-icon {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  background: rgba(255, 62, 157, 0.12);
  color: #e8258a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
}

/* ---------- FAQ accordion ---------- */
.faq-item {
  background: #ffffff;
  border-radius: 1rem;
  border: 1px solid rgba(27, 14, 36, 0.08);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
  padding: 1.25rem 1.5rem;
  font-family: "Unbounded", sans-serif;
  font-size: 0.95rem;
  color: #1b0e24;
  background: none;
  border: none;
  cursor: pointer;
}

.faq-icon {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  background: #f3ecfa;
  color: #ff3e9d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: transform 0.25s ease, background 0.25s ease;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: #ff3e9d;
  color: #fff;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer p {
  padding: 0 1.5rem 1.25rem;
  color: #4a3b5c;
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ---------- CTA glow ---------- */
.cta-glow {
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 194, 71, 0.18) 0%, rgba(255, 194, 71, 0) 45%),
    radial-gradient(circle at 85% 80%, rgba(255, 62, 157, 0.22) 0%, rgba(255, 62, 157, 0) 45%);
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Back to top ---------- */
#back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

/* ---------- Table row hover ---------- */
table tbody tr:hover {
  background: rgba(255, 194, 71, 0.06);
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .sparkle-mark {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #fbf6ff;
}

::-webkit-scrollbar-thumb {
  background: #d9c4ec;
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #ff3e9d;
}
