/* NeverMyth Web Styles - Dark, moody, mystical */

/* Fonts are loaded in HTML via Google Fonts */

:root {
  /* Core palette */
  --bg: #0D0D0D;              /* Background */
  --surface: #1A1A1A;         /* Surface */
  --primary: #10B981;         /* Eerie Green */
  --secondary: #F8FAFC;       /* Spectral White */

  /* Accents */
  --purple: #8B5CF6;          /* Mystical Purple */
  --green: #10B981;           /* Eerie Green */
  --blood: #EF4444;           /* Blood Red */
  --fog: #F1F5F9;             /* Fog White */

  /* Semantic */
  --error: #DC2626;           /* Deep crimson */
  --success: #059669;         /* Haunted green */
  --warning: #F59E0B;         /* Amber glow */
  --info: #3B82F6;            /* Misty blue */

  /* Typography sizes */
  --h1: 32px;
  --h2: 24px;
  --h3: 20px;
  --body-lg: 16px;
  --body: 14px;
  --caption: 12px;

  /* Effects */
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-soft: 0 10px 30px rgba(21, 24, 35, 0.45);
  --shadow-blue: 0 8px 24px rgba(59, 130, 246, 0.08);
  --blur: saturate(120%) blur(8px);

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  font-family: "Roboto", system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  font-size: var(--body);
  line-height: 1.6;
  color: var(--fog);
  background: radial-gradient(1200px 600px at 20% -10%, rgba(139, 92, 246, 0.15), transparent 60%),
              radial-gradient(1000px 600px at 90% 10%, rgba(16, 185, 129, 0.12), transparent 60%),
              var(--bg);
}

img { max-width: 100%; display: block; }
a { color: var(--purple); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Typography */
h1, h2, h3 { font-family: "Playfair Display", Georgia, serif; margin: 0 0 var(--space-2); line-height: 1.25; }
h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); }
.accent-title { font-family: "Playfair Display", Georgia, serif; letter-spacing: 0.5px; }

.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 var(--space-3); }

/* App Bar */
.appbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: var(--blur);
  border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}
.appbar-inner { display: flex; align-items: center; justify-content: space-between; padding: var(--space-2) 0; }
.brand { display: flex; align-items: center; gap: var(--space-2); }
.logo {
  width: 32px; height: 32px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(139,92,246,0.9), rgba(16,185,129,0.7));
  box-shadow: 0 0 18px rgba(139,92,246,0.4);
}
.brand-name { font-family: "UnifrakturCook", "Playfair Display", serif; font-size: 22px; color: var(--fog); }

.nav { display: flex; gap: var(--space-3); align-items: center; }
.nav a { color: var(--fog); opacity: 0.9; }
.nav a:hover { opacity: 1; text-shadow: 0 0 6px rgba(139,92,246,0.6); }
.menu-toggle { display: none; background: transparent; border: 1px solid rgba(139,92,246,0.4); color: var(--fog); padding: 8px 10px; border-radius: var(--radius-sm); }

@media (max-width: 760px) {
  .nav { display: none; position: absolute; top: 56px; right: 16px; flex-direction: column; background: rgba(13,13,13,0.96); border: 1px solid rgba(139,92,246,0.2); padding: var(--space-3); border-radius: var(--radius-md); box-shadow: var(--shadow-soft); }
  .nav.open { display: flex; }
  .menu-toggle { display: inline-flex; }
}

/* Hero */
.hero { position: relative; overflow: hidden; padding: var(--space-5) 0; }
.hero .container { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--space-5); align-items: center; }
.hero-title { margin-bottom: var(--space-3); }
.hero-sub { color: rgba(241, 245, 249, 0.85); margin-bottom: var(--space-4); font-size: var(--body-lg); }

.fog { position: absolute; inset: 0; pointer-events: none; opacity: 0.6; }
.fog::before, .fog::after {
  content: ""; position: absolute; inset: -20%;
  background: radial-gradient(1000px 300px at 30% 10%, rgba(255,255,255,0.03), transparent 60%),
              radial-gradient(800px 260px at 70% 15%, rgba(255,255,255,0.03), transparent 60%);
  animation: drift 30s linear infinite;
}
.fog::after { animation-duration: 55s; mix-blend-mode: screen; }
@keyframes drift { from { transform: translateX(-5%); } to { transform: translateX(5%); } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 18px; border-radius: var(--radius-sm); border: 1px solid transparent; cursor: pointer; font-weight: 600; transition: all 180ms ease; text-decoration: none; }
.btn-primary { background: linear-gradient(180deg, var(--purple), #6D28D9); color: var(--secondary); box-shadow: 0 8px 18px rgba(139,92,246,0.35), var(--shadow-blue); }
.btn-primary:hover { box-shadow: 0 10px 22px rgba(139,92,246,0.5), 0 0 18px rgba(139,92,246,0.35); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); filter: brightness(0.95); }

.btn-secondary { background: transparent; color: var(--fog); border-color: rgba(139,92,246,0.45); box-shadow: inset 0 0 0 1px rgba(139,92,246,0.1); }
.btn-secondary:hover { background: rgba(139,92,246,0.06); box-shadow: 0 0 12px rgba(139,92,246,0.25); }

.btn-ghost { background: transparent; color: var(--fog); }
.btn-ghost:hover { text-shadow: 0 0 8px rgba(241,245,249,0.8); }

.btn-danger { background: var(--blood); color: var(--secondary); }
.btn-danger:hover { filter: brightness(1.08); box-shadow: 0 10px 22px rgba(239,68,68,0.35); }

.cta-row { display: flex; gap: var(--space-3); flex-wrap: wrap; }

/* Cards */
.card { background: linear-gradient(180deg, rgba(26,26,26,0.95), rgba(17,17,17,0.98)); border: 1px solid rgba(139,92,246,0.18); border-radius: var(--radius-md); box-shadow: var(--shadow-soft); padding: var(--space-4); }
.card.compact { border-radius: var(--radius-sm); padding: var(--space-3); }
.card:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(12, 20, 28, 0.5); transition: transform 220ms ease, box-shadow 220ms ease; }

/* Feature grid */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
@media (max-width: 960px) { .hero .container { grid-template-columns: 1fr; } .features { grid-template-columns: 1fr; } }

/* Inputs */
.field { display: grid; gap: 6px; }
.label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(139,92,246,0.95); }
.input {
  width: 100%; appearance: none; outline: none; color: var(--fog);
  background: #2A2A2A; border: 1px solid rgba(148,163,184,0.25);
  border-radius: var(--radius-sm); padding: 12px 14px; transition: border-color 180ms ease, box-shadow 180ms ease;
}
.input::placeholder { color: rgba(241,245,249,0.5); }
.input:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(139,92,246,0.2); }
.input.error { border-color: var(--error); box-shadow: 0 0 0 3px rgba(220,38,38,0.2); }
.helper { font-size: var(--caption); color: rgba(241,245,249,0.7); }
.helper.error { color: var(--error); }

/* Download badges (placeholders) */
.badges { display: flex; gap: var(--space-2); align-items: center; flex-wrap: wrap; }
.badge { border: 1px solid rgba(148,163,184,0.25); border-radius: var(--radius-sm); padding: 10px 12px; display: inline-flex; gap: 10px; align-items: center; color: var(--fog); background: rgba(26,26,26,0.85); }
.badge .sub { font-size: 10px; opacity: 0.7; }
.badge .label { font-size: 14px; text-transform: none; color: var(--fog); }

/* Official store badges */
.store-badge { display: inline-block; line-height: 0; transition: transform 160ms ease, filter 160ms ease; }
.store-badge:hover { transform: translateY(-1px); filter: drop-shadow(0 6px 16px rgba(139,92,246,0.25)); }

/* Sections */
section { padding: var(--space-5) 0; }
.section-title { margin-bottom: var(--space-3); }
.muted { color: rgba(241,245,249,0.75); }

/* Footer */
footer { border-top: 1px solid rgba(139,92,246,0.2); background: rgba(0,0,0,0.5); backdrop-filter: var(--blur); }
.footer-inner { display: flex; gap: var(--space-4); align-items: center; justify-content: space-between; padding: var(--space-3) 0; }
.footer-nav { display: flex; gap: var(--space-3); }
.copyright { color: rgba(241,245,249,0.6); font-size: var(--caption); }

/* Skeletons & load states */
.skeleton {
  background: linear-gradient(90deg, rgba(60,60,60,0.3), rgba(100,100,100,0.35), rgba(60,60,60,0.3));
  background-size: 200% 100%;
  animation: shimmer 1.2s ease-in-out infinite;
  border-radius: 6px;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* Utility */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } }
.center { text-align: center; }
.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }

/* Toast */
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.5); color: var(--fog); padding: 10px 14px; border-radius: 8px; box-shadow: var(--shadow-soft); display: none; }
.toast.error { background: rgba(220,38,38,0.1); border-color: rgba(220,38,38,0.5); }
.toast.show { display: inline-flex; }
