/* ==========================================================================
   SPOTLE ANSWERS - CLEAN WHITE / LIGHT MODERN DESIGN SYSTEM
   Seamless AdSense Integration, Crisp Typography & Ultra-Fast Loading
   ========================================================================== */

:root {
  --bg-primary: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --bg-card-subtle: #f8fafc;
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  
  --accent-green: #059669;
  --accent-green-hover: #047857;
  --accent-green-dim: rgba(5, 150, 105, 0.08);
  --accent-brand: #10b981;
  --accent-cyan: #0284c7;
  --accent-purple: #7c3aed;

  --border-color: #e2e8f0;
  --border-subtle: #edf2f7;
  --border-active: #10b981;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.08);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  
  --container-max: 960px;
}

/* Base Resets */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  background-color: var(--bg-primary);
}

a {
  color: var(--accent-green);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--accent-green-hover);
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* ==========================================================================
   HEADER & NAVBAR
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 0.85rem 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
  color: var(--accent-green);
}

.brand-icon {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--accent-brand), var(--accent-green));
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 900;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.brand-badge {
  font-size: 0.72rem;
  background: var(--accent-green-dim);
  color: var(--accent-green);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(16, 185, 129, 0.25);
  font-weight: 700;
  margin-left: 0.2rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
  background: var(--bg-card-hover);
}

.nav-links a.nav-highlight {
  color: #ffffff;
  background: var(--accent-green);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.25);
}

.nav-links a.nav-highlight:hover {
  background: var(--accent-green-hover);
  transform: translateY(-1px);
}

/* Mobile Toggle */
.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 1.35rem;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    flex-direction: column;
    padding: 1.25rem;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
  }
  .nav-links.show {
    display: flex;
  }
  .nav-links a {
    width: 100%;
    text-align: center;
    padding: 0.7rem;
  }
}

/* ==========================================================================
   HERO / TODAY ANSWER SECTION
   ========================================================================== */
.hero-section {
  padding: 2.2rem 0 1.25rem;
  text-align: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-green-dim);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--accent-green);
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-brand);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-brand);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.2); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

h1.hero-title {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 0.65rem;
  color: var(--text-primary);
}

.hero-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 620px;
  margin: 0 auto 1.25rem;
}

/* Date Navigator Bar */
.date-nav-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 1.25rem 0 1.5rem;
  flex-wrap: wrap;
}

.btn-nav-date {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow: var(--shadow-sm);
}

.btn-nav-date:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  border-color: #cbd5e1;
  text-decoration: none;
}

.current-date-badge {
  background: #ffffff;
  border: 1px solid var(--accent-brand);
  padding: 0.45rem 1.25rem;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--accent-green);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.15);
}

/* ==========================================================================
   INTERACTIVE PUZZLE & SPOILER CARDS
   ========================================================================== */
.puzzle-main-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 2rem;
  position: relative;
}

.puzzle-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.puzzle-num {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--accent-green);
}

.countdown-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* Clues quick grid */
.clues-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.clue-chip {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  text-align: left;
}

.clue-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.clue-value {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* Spoiler Accordions */
.hints-container {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}

.hint-accordion {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.2s ease;
}

.hint-accordion:hover {
  border-color: #cbd5e1;
}

.hint-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  background: var(--bg-surface);
  border: none;
  color: var(--text-primary);
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: background 0.2s ease;
}

.hint-trigger:hover {
  background: var(--bg-card-hover);
}

.hint-trigger .hint-icon {
  font-size: 0.85rem;
  transition: transform 0.2s ease;
  color: var(--accent-green);
}

.hint-accordion.open .hint-icon {
  transform: rotate(180deg);
}

.hint-content {
  display: none;
  padding: 0 1.25rem 1.15rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  border-top: 1px solid var(--border-color);
  padding-top: 0.85rem;
  background: #fafbfc;
}

.hint-accordion.open .hint-content {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   FINAL ANSWER SPOILER BOX
   ========================================================================== */
.answer-box {
  background: linear-gradient(145deg, #f0fdf4, #ffffff);
  border: 2px dashed var(--accent-brand);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  text-align: center;
  margin-top: 1.5rem;
  position: relative;
}

.answer-header {
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  color: var(--accent-green);
  margin-bottom: 0.75rem;
}

.answer-blur-wrap {
  position: relative;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.answer-text {
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  transition: filter 0.3s ease;
  filter: blur(14px);
  user-select: none;
}

.answer-revealed .answer-text {
  filter: blur(0);
  user-select: auto;
}

.btn-reveal {
  position: absolute;
  background: var(--accent-green);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 0.7rem 1.6rem;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(5, 150, 105, 0.3);
  transition: all 0.2s ease;
  z-index: 10;
}

.btn-reveal:hover {
  background: var(--accent-green-hover);
  transform: scale(1.03);
}

.answer-revealed .btn-reveal {
  display: none;
}

.answer-meta {
  display: none;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.answer-revealed .answer-meta {
  display: block;
  animation: fadeIn 0.4s ease;
}

.answer-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.btn-action {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.btn-action:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-green);
  text-decoration: none;
}

/* ==========================================================================
   ADSENSE SLOTS & COMPLIANCE (CLEAN WHITE INTEGRATION)
   ========================================================================== */
.ad-slot-wrapper {
  margin: 1.75rem 0;
  text-align: center;
  clear: both;
}

.ad-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
  font-weight: 700;
}

.ad-slot {
  min-height: 100px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 0 auto;
}

.ad-slot.leaderboard {
  min-height: 90px;
  max-width: 728px;
}

/* ==========================================================================
   CONTENT, ARTICLES, FAQ & SEO SECTIONS
   ========================================================================== */
.content-section {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.section-title {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.content-body p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-size: 0.98rem;
}

.content-body h2 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 1.5rem 0 0.75rem;
}

.content-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent-green);
  margin: 1.25rem 0 0.5rem;
}

.content-body ul, .content-body ol {
  margin-left: 1.5rem;
  margin-bottom: 1.25rem;
  color: var(--text-secondary);
}

.content-body li {
  margin-bottom: 0.4rem;
}

/* FAQ Accordions */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  background: var(--bg-surface);
  border: none;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: background 0.2s ease;
}

.faq-question:hover {
  background: var(--bg-card-hover);
}

.faq-answer {
  display: none;
  padding: 0 1.25rem 1.15rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  background: #fafbfc;
  border-top: 1px solid var(--border-color);
  padding-top: 0.85rem;
}

.faq-item.open .faq-answer {
  display: block;
}

.faq-item.open .faq-question {
  color: var(--accent-green);
}

/* ==========================================================================
   ARCHIVE LIST & SEARCH
   ========================================================================== */
.archive-controls {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.search-input {
  flex: 1;
  min-width: 240px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.search-input:focus {
  outline: none;
  border-color: var(--accent-brand);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.archive-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}

.archive-card:hover {
  background: var(--bg-surface);
  border-color: var(--accent-brand);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.archive-date {
  font-size: 0.8rem;
  color: var(--accent-green);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.archive-artist {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.archive-details {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.pagination-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  margin-top: auto;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  padding: 3rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-col h4 {
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 0.85rem;
}

.footer-col p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--accent-green);
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Toast Notifications */
.toast-msg {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--text-primary);
  border: 1px solid var(--accent-brand);
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  display: none;
  animation: fadeIn 0.3s ease;
}
