/* ============================================================
   dark-premium.css — Dark Premium Theme Override
   Inspired by thehiddenrich.com
   Overrides style.css with dark navy/charcoal theme
   Load AFTER style.css in your HTML
   ============================================================ */

/* ─── 1. CSS Variables Override ────────────────────────────── */
:root {
  color-scheme: dark;
  --bg: #0B1120;
  --surface: #1E293B;
  --surface-soft: #1E293B;
  --text: #F1F5F9;
  --muted: #94A3B8;
  --faint: #64748B;
  --ink-soft: #CBD5E1;
  --primary: #E11D48;
  --primary-strong: #BE123C;
  --kakao: #E11D48;
  --kakao-strong: #BE123C;
  --kakao-soft: rgba(225, 29, 72, 0.12);
  --accent: #E11D48;
  --accent-warm: #FACC15;
  --yellow: #FACC15;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
  --surface-glass: rgba(30, 41, 59, 0.88);
  --line-strong: rgba(255, 255, 255, 0.1);
  --violet: #8b5cf6;
  --rose: #ff6b57;
  --teal: #0f8f79;
}

/* ─── 2. Body ──────────────────────────────────────────────── */
html {
  background: #0B1120;
}

body {
  background: #0B1120;
  background-image: none;
  color: #F1F5F9;
}

/* ─── 3. Header / Nav ──────────────────────────────────────── */
.mobile-header {
  background: rgba(11, 17, 32, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.menu-btn span {
  background: #F1F5F9;
}

.header-back-btn {
  color: #F1F5F9;
}

.header-title {
  color: #F1F5F9;
}

/* ─── 4. Side Menu ─────────────────────────────────────────── */
.side-menu {
  background: #0B1120;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  color: #F1F5F9;
  box-shadow: 18px 0 40px rgba(0, 0, 0, 0.5);
}

.side-menu-brand p {
  color: #E11D48;
}

.side-menu-brand span {
  color: #94A3B8;
}

.menu-overlay {
  background: rgba(0, 0, 0, 0.6);
}

/* ─── 5. Hero Section ──────────────────────────────────────── */
.home-hero {
  text-align: center;
}

.brand-logo {
  margin-bottom: 16px;
}

.brand-name {
  font-size: 1.2rem;
  font-weight: 900;
  color: #E11D48;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.home-hero h1,
.home-hero .hero-title,
.mbti-intro-card h1,
.hero-heading {
  color: #FFFFFF;
  font-size: clamp(2rem, 7vw, 3.2rem);
  line-height: 1.18;
  letter-spacing: 0;
}

/* Stats row — 4 metric cards */
.home-hero .stats-row,
.hero-stats,
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 24px auto;
  max-width: 640px;
}

.home-hero .stats-item,
.home-hero .metric-card,
.hero-stat-card {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 16px 12px;
  text-align: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.home-hero .stats-item strong,
.home-hero .metric-card strong,
.hero-stat-card strong {
  display: block;
  color: #E11D48;
  font-size: 1.6rem;
  font-weight: 950;
  line-height: 1;
  margin-bottom: 4px;
}

.home-hero .stats-item small,
.home-hero .metric-card span,
.hero-stat-card span {
  display: block;
  color: #94A3B8;
  font-size: 0.78rem;
  font-weight: 800;
}

/* Red pill-shaped CTA in hero */
.home-hero .hero-cta,
.hero-actions {
  margin-top: 28px;
}

/* ─── 6. Buttons ───────────────────────────────────────────── */
.primary-btn {
  border: 0;
  border-radius: 999px;
  padding: 16px 44px;
  color: #FFFFFF;
  background: linear-gradient(135deg, #E11D48, #BE123C);
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(225, 29, 72, 0.3);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.primary-btn:hover {
  background: linear-gradient(135deg, #E11D48, #9F1239);
  box-shadow: 0 18px 34px rgba(225, 29, 72, 0.4);
}

.primary-btn:active {
  transform: scale(0.985);
}

.hero-primary {
  min-height: 54px;
  border-radius: 999px;
  background: linear-gradient(135deg, #E11D48, #BE123C);
  box-shadow: 0 18px 38px rgba(225, 29, 72, 0.35);
  color: #FFFFFF;
}

.hero-primary:hover {
  background: linear-gradient(135deg, #E11D48, #9F1239);
}

.secondary-ghost-btn {
  min-height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: transparent;
  color: #F1F5F9;
  font-weight: 900;
  cursor: pointer;
  box-shadow: none;
}

.secondary-ghost-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.5);
}

/* ─── 7. All Cards (glassmorphism) ─────────────────────────── */
.home-test-card,
.popular-test-card,
.psychology-test-card,
.analysis-card,
.compatibility-card,
.fortune-detail,
.mbti-match-section,
.mbti-result-hero,
.question-card,
.choice,
.life-path-input-card,
.life-path-result,
.life-path-section-card,
.seo-hero,
.seo-result-card,
.daily-card-preview,
.mbti-intro-card {
  background: rgba(30, 41, 59, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

/* Card hover states */
.home-test-card:hover,
.popular-test-card:hover,
.psychology-test-card:hover {
  border-color: rgba(225, 29, 72, 0.3);
  background: rgba(30, 41, 59, 0.94);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.35);
}

/* mbti-intro-card adjustments */
.mbti-intro-card h1 {
  color: #FFFFFF;
}

.mbti-intro-copy {
  color: #94A3B8;
}

.mbti-intro-mark {
  background: linear-gradient(135deg, #E11D48, #BE123C);
}

/* Result header sticky */
.result-header {
  background: rgba(11, 17, 32, 0.86);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

/* mbti-match-section */
.mbti-match-section h2 {
  color: #F1F5F9;
}

.mbti-match-section p {
  color: #94A3B8;
}

/* Choice / Question card */
.choice {
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.choice.selected {
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.3);
}

/* mbti-result-hero */
.mbti-result-hero h1,
.mbti-result-hero h2,
.mbti-result-hero strong {
  color: #F1F5F9;
}

/* life-path-input-card */
.life-path-input-card h2 {
  color: #F1F5F9;
}

/* ─── 8. Fortune Cards ─────────────────────────────────────── */
.fortune-card {
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 22px;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.1), transparent 26%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 36%),
    linear-gradient(145deg, #1E293B, #0B1120 48%, #1E293B);
}

.fortune-card h3,
.fortune-card strong,
.fortune-card .fortune-card-title {
  color: #FFFFFF;
}

.fortune-card p,
.fortune-card span {
  color: #CBD5E1;
}

.fortune-card::before {
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.fortune-card::after {
  background: rgba(255, 255, 255, 0.04);
}

/* Tarot card variant */
.tarot-card {
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.1), transparent 26%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 36%),
    linear-gradient(145deg, #0f172a, #0f8f79 48%, #8b5cf6);
}

/* ─── 9. Progress Bar ──────────────────────────────────────── */
.progress {
  background: rgba(30, 41, 59, 0.6);
}

.progress-fill {
  background: linear-gradient(90deg, #E11D48, #BE123C);
}

/* ─── 10. Share Toolbox ────────────────────────────────────── */
.share-toolbox {
  background: transparent;
}

.share-toolbox button,
.share-toolbox a {
  background: rgba(30, 41, 59, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  color: #F1F5F9;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.share-toolbox button:hover,
.share-toolbox a:hover {
  background: rgba(30, 41, 59, 0.95);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.share-toolbox [data-share-action="kakao"] {
  border-color: rgba(225, 29, 72, 0.4);
  background: rgba(225, 29, 72, 0.2);
  color: #F1F5F9;
}

/* ─── 11. Footer ────────────────────────────────────────────── */
.site-footer {
  color: #94A3B8;
}

.site-footer strong {
  color: #F1F5F9;
}

.site-footer a {
  color: #94A3B8;
}

.site-footer a:hover {
  color: #E11D48;
}

/* ─── 12. Content Density Strip ────────────────────────────── */
.content-density-strip article {
  background: rgba(30, 41, 59, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.content-density-strip span {
  color: #94A3B8;
}

.content-density-strip strong {
  color: #E11D48;
}

.content-density-strip small {
  color: #94A3B8;
}

/* ─── 13. Advice Card ──────────────────────────────────────── */
.advice-card {
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.18), rgba(225, 29, 72, 0.06));
  border: 1px solid rgba(225, 29, 72, 0.2);
  border-radius: 18px;
}

.advice-card span {
  color: #E11D48;
}

.advice-card strong {
  color: #F1F5F9;
}

/* ─── 14. Badges ────────────────────────────────────────────── */
.life-path-standard-badge,
.life-path-guide-chips span {
  background: rgba(250, 204, 21, 0.18);
  color: #FACC15;
  border-radius: 999px;
}

/* ─── 15. All Inline Colors (light-on-dark replacement) ────── */
/* These override any element using CSS variable colors */
* {
  --text: #F1F5F9;
  --muted: #94A3B8;
  --faint: #64748B;
  --ink-soft: #CBD5E1;
  --primary: #E11D48;
  --accent: #E11D48;
}

/* Section headings */
.section-heading h2 {
  color: #F1F5F9;
}

.section-heading p {
  color: #94A3B8;
}

/* Intro preview */
.mbti-intro-preview article {
  background: rgba(30, 41, 59, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.mbti-intro-preview span {
  color: #E11D48;
}

/* Static card overrides */
.static-card p,
.static-card li {
  color: #CBD5E1;
}

.static-card a {
  color: #E11D48;
}

/* Overview / match results */
.overview-list p,
.match-result-groups p {
  color: #F1F5F9;
}

/* Contact form */
.contact-form .primary-btn {
  background: linear-gradient(135deg, #E11D48, #BE123C);
  color: #FFFFFF;
}

/* mbti-start-btn */
.mbti-start-btn {
  background: linear-gradient(135deg, #E11D48, #BE123C);
  color: #FFFFFF;
  border-radius: 999px;
}

/* Summary meaning */
.summary-meaning p {
  color: #94A3B8;
}

/* Quick-start cards */
.quick-start-card article,
.mbti-intro-preview article {
  background: rgba(30, 41, 59, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ─── 16. SEO Topnav ────────────────────────────────────────── */
.seo-topnav a {
  background: rgba(30, 41, 59, 0.88);
  color: #F1F5F9;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.seo-topnav a:hover {
  background: rgba(30, 41, 59, 0.95);
  border-color: rgba(225, 29, 72, 0.3);
}

/* ─── 17. Mini Chip, Match Chip ────────────────────────────── */
.mini-chip,
.match-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(250, 204, 21, 0.2);
  color: #0B1120;
  font-size: 0.8rem;
  font-weight: 900;
}

/* ─── 18. Glassmorphism (additional backdrop-filter elements) ─ */
/* Ensure glassmorphism on all card-like elements */
.premium-app-shell .home-test-card,
.premium-app-shell .popular-test-card,
.premium-app-shell .psychology-test-card,
.premium-app-shell .analysis-card,
.premium-app-shell .life-path-section-card,
.premium-app-shell .fortune-detail,
.premium-app-shell .compatibility-card {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(30, 41, 59, 0.88);
  border-color: rgba(255, 255, 255, 0.08);
}

/* ─── 19. Responsive Media Queries (darkened) ───────────────── */
@media (max-width: 420px) {
  .content-density-strip {
    grid-template-columns: 1fr;
  }

  .content-density-strip article {
    min-height: 72px;
    grid-template-columns: 1fr auto;
    align-items: center;
    background: rgba(30, 41, 59, 0.85);
  }

  .home-hero .stats-row,
  .hero-stats,
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 540px) {
  .tarot-signal-grid {
    grid-template-columns: 1fr;
  }

  .stats-row,
  .hero-stats,
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .stats-row,
  .hero-stats,
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 760px) {
  .intro {
    padding-inline: 28px;
  }

  .home-hero {
    min-height: 540px;
  }

  .home-hero .stats-row,
  .hero-stats,
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ─── Additional Elements Requiring Darkening ──────────────── */
/* Home FAQ */
.home-faq-list p {
  color: #94A3B8;
}

/* Any remaining light backgrounds */
input, textarea, select {
  background: #1E293B;
  color: #F1F5F9;
  border-color: rgba(255, 255, 255, 0.12);
}

input::placeholder,
textarea::placeholder {
  color: #64748B;
}

/* Links in general */
a {
  color: #E11D48;
}

/* Table styling - common in SEO pages */
table {
  background: #1E293B;
  border-color: rgba(255, 255, 255, 0.08);
}

th, td {
  border-color: rgba(255, 255, 255, 0.08);
  color: #CBD5E1;
}

th {
  background: rgba(225, 29, 72, 0.12);
  color: #F1F5F9;
}

/* Tooltip / popover */
.tooltip {
  background: #1E293B;
  color: #F1F5F9;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Modal / overlay backgrounds */
.modal-content {
  background: #0B1120;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #F1F5F9;
}

/* Scrollbar for dark theme */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #0B1120;
}

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

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