/* ============================================================
   THE VEDAS — site overlay
   Sits on top of dkfds.css (themed to the Om logo's blue palette
   at compile time). This file only adds page chrome that DKFDS
   doesn't provide out of the box: dark background, header, hero,
   veda cover cards, footer, and the music toggle wiring.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+Bengali:wght@400;500;600;700&family=Noto+Sans+Bengali:wght@400;500;600;700&display=swap');

:root {
  --tv-paper: #0a0e14;
  --tv-paper-raised: #121826;
  --tv-line: #223049;
  --tv-line-strong: #34496b;
  --tv-ink: #eef4fb;
  --tv-ink-soft: #b9c6d9;
  --tv-ink-faint: #718099;
  --tv-blue-deep: #0f6aa1;
  --tv-blue-mid: #1f86c4;
  --tv-cyan: #44a8cc;
  --font-serif: 'Noto Serif Bengali', 'Noto Serif', serif;
}

* { box-sizing: border-box; }
html { color-scheme: dark; }

body {
  background: var(--tv-paper);
  color: var(--tv-ink);
  font-family: 'Noto Sans Bengali', 'Noto Sans', system-ui, sans-serif;
  margin: 0;
  line-height: 1.65;
}

.tv-wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.tv-skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--tv-blue-deep); color: #fff;
  padding: 12px 16px; z-index: 100; font-weight: 600;
}
.tv-skip-link:focus { left: 16px; top: 16px; }

/* ============ Header ============ */

.tv-header {
  border-bottom: 1px solid var(--tv-line);
  position: sticky; top: 0;
  background: rgba(10, 14, 20, 0.92);
  backdrop-filter: blur(8px);
  z-index: 50;
}
.tv-header-row {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 16px; flex-wrap: wrap;
}
.tv-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--tv-ink); }
.tv-brand img {
  width: 40px; height: 40px; border-radius: 50%; object-fit: cover;
  box-shadow: 0 0 0 1px var(--tv-line-strong);
}
.tv-brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.tv-brand-name { font-family: var(--font-serif); font-weight: 700; font-size: 1.1rem; }
.tv-brand-sub { font-size: 0.72rem; color: var(--tv-ink-faint); font-family: ui-monospace, monospace; }

.tv-nav-links { display: flex; align-items: center; gap: 24px; }
.tv-nav-links a { color: var(--tv-ink-soft); text-decoration: none; font-size: 0.9rem; font-weight: 500; }
.tv-nav-links a:hover { color: var(--tv-cyan); }

/* Music toggle — icon-only button, swaps SVG on/off state */
.tv-music { display: flex; align-items: center; }
.tv-music-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; padding: 0;
  background: transparent; border: 1px solid var(--tv-line-strong); border-radius: 50%;
  color: var(--tv-ink-soft); cursor: pointer;
}
.tv-music-btn:hover { border-color: var(--tv-cyan); color: var(--tv-cyan); }
.tv-music-btn[aria-pressed="true"] { border-color: var(--tv-blue-mid); color: var(--tv-cyan); background: rgba(15,106,161,0.15); }
.tv-music-icon { display: block; }

/* ============ Hero ============ */

.tv-hero { border-bottom: 1px solid var(--tv-line); padding: 80px 0 64px; position: relative; overflow: hidden; }
.tv-hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(15,106,161,0.18), transparent 60%);
  pointer-events: none;
}
.tv-hero-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 32px; align-items: center; position: relative; }
.tv-eyebrow { font-size: 0.72rem; letter-spacing: 0.06em; color: var(--tv-cyan); text-transform: uppercase; margin: 0 0 16px; font-family: ui-monospace, monospace; }
.tv-hero h1 { font-family: var(--font-serif); font-size: clamp(2.6rem, 5.5vw, 4.6rem); font-weight: 700; line-height: 1.05; margin: 0 0 24px; }
.tv-hero-lede { font-size: 1.25rem; color: var(--tv-ink-soft); max-width: 46ch; margin: 0 0 32px; }
.tv-hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.tv-hero-figure { display: flex; align-items: center; justify-content: center; }
.tv-hero-figure img { width: min(380px, 80%); height: auto; border-radius: 50%; box-shadow: 0 0 80px rgba(15,106,161,0.4); }

/* ============ Collection ============ */

.tv-collection { padding: 96px 0; }
.tv-section-head { margin-bottom: 48px; }
.tv-section-head h2 { font-family: var(--font-serif); font-size: 2.4rem; margin: 0 0 8px; }
.tv-section-head p { color: var(--tv-ink-faint); margin: 0; font-size: 0.9rem; }

.tv-veda-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px;
}

/* Restyle DKFDS .card for the dark theme (base component keeps light bg by default) */
.tv-veda-grid .card {
  background: var(--tv-paper-raised);
  border-color: var(--tv-line);
  margin-bottom: 0;
  height: 100%;
}
.tv-veda-grid .card-image { background: #06090d; }
.tv-veda-grid .card-image img { max-height: 280px; object-fit: contain; margin: 16px auto; display: block; }
.tv-veda-grid .card-heading { font-family: var(--font-serif); color: var(--tv-ink); }
.tv-veda-grid .card-subheading { color: var(--tv-ink-faint) !important; }
.tv-veda-grid .card p { color: var(--tv-ink-soft); }
.tv-veda-grid .card-actions { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.tv-veda-grid .card-actions .button { width: 100%; }

.tv-veda-numeral {
  font-family: var(--font-serif); font-weight: 700; font-size: 2.2rem;
  background: linear-gradient(160deg, var(--tv-cyan), var(--tv-blue-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  line-height: 1; margin-bottom: 8px; display: block;
}

/* ============ About ============ */

.tv-about { padding: 96px 0; border-top: 1px solid var(--tv-line); background: var(--tv-paper-raised); }
.tv-about-grid { display: grid; grid-template-columns: 3fr 2fr; gap: 48px; align-items: center; }
.tv-about h2 { font-family: var(--font-serif); font-size: 2.4rem; margin: 0 0 16px; }
.tv-about p { color: var(--tv-ink-soft); max-width: 56ch; margin: 0 0 12px; }
.tv-about .tv-credit { font-size: 0.9rem; color: var(--tv-ink-faint); }
.tv-about .tv-credit strong { color: var(--tv-ink-soft); }
.tv-about-facts { display: flex; gap: 32px; justify-content: flex-end; }
.tv-fact { display: flex; flex-direction: column; align-items: flex-end; }
.tv-fact-num { font-family: var(--font-serif); font-size: 2.4rem; font-weight: 700; color: var(--tv-cyan); }
.tv-fact-label { font-size: 0.72rem; color: var(--tv-ink-faint); }

/* ============ Footer ============ */

.tv-footer { border-top: 1px solid var(--tv-line); padding: 32px 0; }
.tv-footer-row {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: 0.72rem; color: var(--tv-ink-faint); font-family: ui-monospace, monospace;
}
.tv-footer-row img { width: 20px; height: 20px; border-radius: 50%; vertical-align: middle; margin-right: 8px; }

/* ============ Responsive ============ */

@media (max-width: 860px) {
  .tv-hero-grid { grid-template-columns: 1fr; }
  .tv-hero-figure { display: none; }
  .tv-hero { padding: 56px 0 48px; }
  .tv-about-grid { grid-template-columns: 1fr; gap: 24px; }
  .tv-about-facts { justify-content: flex-start; }
  .tv-fact { align-items: flex-start; }
  .tv-footer-row { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .tv-wrap { padding: 0 16px; }
  .tv-hero-actions { flex-direction: column; align-items: stretch; }
  .tv-header-row { height: auto; padding: 12px 0; }
}
