/* VENTRA — 5 themes: dark · light · beige · gray · sky */
html[data-nova-theme="dark"] {
  color-scheme: dark;
  --bg: #060606;
  --bg-elevated: #0e0e0e;
  --card: #141414;
  --card-hover: #1a1a1a;
  --text: #ece8e0;
  --muted: #8a8680;
  --line: rgba(255, 255, 255, 0.08);
  --accent: #e8c547;
  --accent-dark: #c9a020;
  --glow: rgba(232, 197, 71, 0.18);
  --header-bg: rgba(6, 6, 6, 0.94);
  --chrome-bg: rgba(14, 14, 14, 0.9);
  --chrome-border: rgba(255, 255, 255, 0.12);
  --hero-lead: rgba(236, 232, 224, 0.78);
  --btn-post-bg: linear-gradient(135deg, #f0d060, #e8c547 40%, #c9a020);
  --btn-post-text: #1a1200;
  --hero-overlay: linear-gradient(180deg, rgba(6,6,6,0.08) 0%, rgba(6,6,6,0.22) 42%, rgba(6,6,6,0.48) 72%, rgba(6,6,6,0.68) 100%);
  --hero-img-filter: none;
  --pill-bg: rgba(20, 20, 20, 0.85);
  --shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}
html[data-nova-theme="light"] {
  color-scheme: light;
  --bg: #ffffff;
  --bg-elevated: #f5f5f5;
  --card: #ffffff;
  --card-hover: #f0f0f0;
  --text: #111111;
  --muted: #6b7280;
  --line: rgba(0, 0, 0, 0.1);
  --accent: #1e293b;
  --accent-dark: #0f172a;
  --glow: rgba(30, 41, 59, 0.12);
  --header-bg: rgba(255, 255, 255, 0.96);
  --chrome-bg: rgba(255, 255, 255, 0.95);
  --chrome-border: rgba(0, 0, 0, 0.1);
  --hero-lead: rgba(17, 17, 17, 0.72);
  --btn-post-bg: linear-gradient(135deg, #475569, #1e293b);
  --btn-post-text: #fff;
  --hero-overlay: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.05) 28%, rgba(255,255,255,0.38) 68%, rgba(255,255,255,0.86) 100%);
  --hero-img-filter: none;
  --pill-bg: rgba(255, 255, 255, 0.92);
  --shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
}
html[data-nova-theme="beige"] {
  color-scheme: light;
  --bg: #fdfbf6;
  --bg-elevated: #faf6ee;
  --card: #fffef9;
  --card-hover: #faf6ee;
  --text: #3d3428;
  --muted: #8a7d6a;
  --line: rgba(120, 90, 50, 0.08);
  --accent: #b8891a;
  --accent-dark: #8b6914;
  --glow: rgba(184, 137, 26, 0.14);
  --header-bg: rgba(255, 254, 249, 0.97);
  --chrome-bg: rgba(255, 255, 252, 0.96);
  --chrome-border: rgba(120, 90, 50, 0.1);
  --hero-lead: rgba(61, 52, 40, 0.68);
  --btn-post-bg: linear-gradient(135deg, #ddb42a, #b8891a);
  --btn-post-text: #fffef8;
  --hero-overlay: linear-gradient(180deg, rgba(255,252,245,0) 0%, rgba(255,250,238,0.06) 28%, rgba(255,248,235,0.38) 68%, rgba(253,251,246,0.86) 100%);
  --hero-img-filter: none;
  --pill-bg: rgba(255, 254, 249, 0.92);
  --shadow: 0 12px 40px rgba(120, 90, 50, 0.08);
}
html[data-nova-theme="gray"] {
  color-scheme: light;
  --bg: #c8d1dc;
  --bg-elevated: #b8c4d2;
  --card: #dce3eb;
  --card-hover: #d0d9e3;
  --text: #0f172a;
  --muted: #475569;
  --line: rgba(15, 23, 42, 0.14);
  --accent: #334155;
  --accent-dark: #1e293b;
  --glow: rgba(51, 65, 85, 0.2);
  --header-bg: rgba(184, 196, 210, 0.97);
  --chrome-bg: rgba(220, 227, 235, 0.98);
  --chrome-border: rgba(15, 23, 42, 0.14);
  --hero-lead: #1e293b;
  --btn-post-bg: linear-gradient(135deg, #64748b, #475569);
  --btn-post-text: #fff;
  --hero-overlay: linear-gradient(180deg, rgba(51,65,85,0.12) 0%, rgba(51,65,85,0.22) 38%, rgba(200,209,220,0.82) 100%);
  --hero-img-filter: none;
  --pill-bg: rgba(220, 227, 235, 0.95);
  --shadow: 0 12px 36px rgba(15, 23, 42, 0.14);
}
html[data-nova-theme="sky"] {
  color-scheme: light;
  --bg: #b8d0e8;
  --bg-elevated: #a3c0e0;
  --card: #d4e6f8;
  --card-hover: #c5dbf2;
  --text: #0c1929;
  --muted: #1e40af;
  --line: rgba(30, 64, 175, 0.16);
  --accent: #1d4ed8;
  --accent-dark: #1e3a8a;
  --glow: rgba(29, 78, 216, 0.22);
  --header-bg: rgba(163, 192, 224, 0.97);
  --chrome-bg: rgba(212, 230, 248, 0.98);
  --chrome-border: rgba(30, 64, 175, 0.16);
  --hero-lead: #1e3a5f;
  --btn-post-bg: linear-gradient(135deg, #3b82f6, #1d4ed8);
  --btn-post-text: #fff;
  --hero-overlay: linear-gradient(180deg, rgba(30,64,175,0.1) 0%, rgba(30,64,175,0.2) 38%, rgba(184,208,232,0.82) 100%);
  --hero-img-filter: none;
  --pill-bg: rgba(212, 230, 248, 0.95);
  --shadow: 0 12px 36px rgba(30, 64, 175, 0.14);
}

html[data-nova-theme] {
  --gold: var(--accent);
  --gold-dark: var(--accent-dark);
  --gold-glow: var(--glow);
}

.nv-btn--post {
  background: var(--btn-post-bg);
  color: var(--btn-post-text);
  border-color: transparent;
  box-shadow: 0 4px 20px var(--glow);
}

.nv-header,
.nv-header--premium {
  background: var(--header-bg) !important;
  border-bottom-color: var(--line);
}
.nv-hero-search {
  background: var(--chrome-bg) !important;
  border-color: var(--chrome-border) !important;
}
.nv-hero-pill {
  background: var(--pill-bg) !important;
  border-color: var(--chrome-border) !important;
  color: var(--muted);
}
.nv-hero-pill.is-active {
  background: var(--btn-post-bg) !important;
  color: var(--btn-post-text) !important;
  border-color: transparent !important;
}
.nv-hero--premium .nv-hero__photo::after,
.nv-hero__photo::after {
  background: var(--hero-overlay) !important;
}
.nv-hero--premium .nv-hero__lead,
.nv-hero p {
  color: var(--hero-lead);
}

/* Светлые темы — читаемый текст, фото остаётся чётким */
html[data-nova-theme="light"] .nv-hero--premium h1,
html[data-nova-theme="beige"] .nv-hero--premium h1,
html[data-nova-theme="gray"] .nv-hero--premium h1,
html[data-nova-theme="sky"] .nv-hero--premium h1 {
  color: var(--text);
  text-shadow: 0 2px 24px rgba(255, 255, 255, 0.92), 0 1px 2px rgba(255, 255, 255, 0.6);
}
html[data-nova-theme="light"] .nv-hero--premium h1 em,
html[data-nova-theme="beige"] .nv-hero--premium h1 em,
html[data-nova-theme="gray"] .nv-hero--premium h1 em,
html[data-nova-theme="sky"] .nv-hero--premium h1 em {
  color: var(--accent);
}
html[data-nova-theme="light"] .nv-hero--premium .nv-hero__lead,
html[data-nova-theme="beige"] .nv-hero--premium .nv-hero__lead,
html[data-nova-theme="gray"] .nv-hero--premium .nv-hero__lead,
html[data-nova-theme="sky"] .nv-hero--premium .nv-hero__lead {
  text-shadow: 0 1px 16px rgba(255, 255, 255, 0.9);
}

/* Тёмная тема — чёткое фото, текст читается снизу */
html[data-nova-theme="dark"] .nv-hero--premium h1 {
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.55);
}
html[data-nova-theme="dark"] .nv-hero--premium .nv-hero__lead {
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.45);
}

html[data-nova-theme="gray"] .nv-hero--premium h1,
html[data-nova-theme="sky"] .nv-hero--premium h1 {
  color: var(--text);
  text-shadow: 0 2px 16px rgba(255, 255, 255, 0.5), 0 1px 3px rgba(0, 0, 0, 0.15);
}
html[data-nova-theme="gray"] .nv-hero--premium .nv-hero__lead,
html[data-nova-theme="sky"] .nv-hero--premium .nv-hero__lead {
  text-shadow: 0 1px 10px rgba(255, 255, 255, 0.45);
}

/* Gray / Sky — весь экран явно окрашен */
html[data-nova-theme="gray"] body.nv-home .nv-home-main,
html[data-nova-theme="sky"] body.nv-home .nv-home-main {
  background: var(--bg);
}
html[data-nova-theme="gray"] .nv-card--premium,
html[data-nova-theme="sky"] .nv-card--premium {
  border-color: var(--line);
}

.nv-trustbar {
  background: var(--bg-elevated);
  border-top-color: var(--line);
}
.nv-footer {
  background: var(--bg-elevated);
}

html[data-nova-theme="light"] .nv-card__img,
html[data-nova-theme="beige"] .nv-card__img,
html[data-nova-theme="gray"] .nv-card__img,
html[data-nova-theme="sky"] .nv-card__img {
  background: var(--bg-elevated);
}
