/* ── Dhvani FM — Shared Stylesheet ─────────────────────────────────────────── */

/* ── Dark theme (default) ─────────────────────────────────────────────────── */
:root {
  --bg:           #150e06;
  --surface:      #1e1508;
  --surface-2:    #241a0a;
  --accent:       #f0a500;
  --accent-light: #f0c060;
  --accent-dim:   rgba(240,165,0,0.12);
  --text:         #e8d5b0;
  --text-muted:   #8a6a3a;
  --text-dim:     #4a3010;
  --border:       #2a1a0a;
  --radius:       12px;
  --nav-h:        64px;
  --nav-bg:       rgba(21,14,6,0.96);
  --nav-border:   #3a2510;
  --footer-bg:    #1e1508;
  --footer-border:#3a2510;
}

/* ── Light theme ──────────────────────────────────────────────────────────── */
[data-theme="light"] {
  --bg:           #fdf8f0;
  --surface:      #f5ede0;
  --surface-2:    #ede3d0;
  --accent:       #b07000;
  --accent-light: #8a5400;
  --accent-dim:   rgba(176,112,0,0.10);
  --text:         #1e1005;
  --text-muted:   #6b4820;
  --text-dim:     #a07840;
  --border:       #ddd0b8;
  --nav-bg:       rgba(253,248,240,0.96);
  --nav-border:   #ddd0b8;
  --footer-bg:    #f5ede0;
  --footer-border:#ddd0b8;
}

/* ── Reset ────────────────────────────────────────────────────────────────── */

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-light); }

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

/* ── Typography ───────────────────────────────────────────────────────────── */

h1, h2, h3, h4 {
  font-family: 'Georgia', serif;
  font-weight: bold;
  line-height: 1.2;
  color: var(--accent-light);
}

h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: 1.2rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.mono {
  font-family: 'Courier New', monospace;
  font-size: 0.85em;
  letter-spacing: 0.08em;
  color: var(--accent);
  opacity: 0.55;
}

/* ── Layout helpers ───────────────────────────────────────────────────────── */

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 88px 0;
}

.section-label {
  font-family: 'Courier New', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.6;
  margin-bottom: 16px;
}

/* ── Navigation ───────────────────────────────────────────────────────────── */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--nav-border);
  z-index: 100;
  display: flex;
  align-items: center;
  transition: background 0.3s, border-color 0.3s;
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-logo {
  font-family: 'Georgia', serif;
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--accent-light);
  letter-spacing: 0.02em;
}
.nav-logo:hover { color: var(--accent-light); }

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #a07840;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--accent); }

/* ── Theme toggle ─────────────────────────────────────────────────────────── */
.theme-toggle {
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  padding: 5px 12px;
  cursor: pointer;
  font-size: 0.75rem;
  font-family: 'Courier New', monospace;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: border-color 0.2s, color 0.2s;
  white-space: nowrap;
}
.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.theme-toggle .toggle-icon { font-size: 0.95rem; }

/* smooth colour transitions sitewide */
body, .nav, .footer, .feature-card, .channel-card, .store-badge,
.page-hero, .highlight, h1, h2, h3, p, a {
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-muted);
  border-radius: 2px;
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 50px;
  font-family: 'Courier New', monospace;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: #150e06;
  font-weight: bold;
}
.btn-primary:hover {
  background: var(--accent-light);
  color: #150e06;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}
.btn-outline:hover {
  background: var(--accent-dim);
  color: var(--accent-light);
  transform: translateY(-1px);
}

/* ── Store Badges ─────────────────────────────────────────────────────────── */

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 22px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text);
  transition: all 0.2s;
}
.store-badge:hover {
  border-color: var(--accent);
  background: var(--surface-2);
  color: var(--text);
  transform: translateY(-2px);
}

.store-badge-icon { font-size: 1.5rem; }

.store-badge-text { text-align: left; }
.store-badge-text small {
  display: block;
  font-family: 'Courier New', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.store-badge-text strong {
  display: block;
  font-size: 1rem;
  font-weight: bold;
  color: var(--accent-light);
}

/* ── Phone Mockup ─────────────────────────────────────────────────────────── */

.phone-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 520px;
}

.phone {
  position: absolute;
  width: 210px;
  height: 420px;
  background: #0c0803;
  border-radius: 34px;
  border: 2px solid #2a2010;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.6), 0 0 0 1px rgba(240,165,0,0.06);
}

/* Notch */
.phone::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 8px;
  background: #0a0602;
  border-radius: 8px;
  z-index: 10;
}

.phone-screen {
  width: 100%;
  height: 100%;
  padding: 36px 14px 18px;
  overflow: hidden;
}

/* Three phone positions — stacked at angles */
.phone:nth-child(1) {
  transform: rotate(-8deg) translateX(-100px) translateY(10px);
  z-index: 1;
  opacity: 0.7;
}
.phone:nth-child(2) {
  transform: rotate(0deg);
  z-index: 3;
}
.phone:nth-child(3) {
  transform: rotate(8deg) translateX(100px) translateY(10px);
  z-index: 1;
  opacity: 0.7;
}

/* ── Simulated App Screens ─────────────────────────────────────────────────── */

/* Splash screen */
.screen-splash {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 10px;
}
.screen-splash .s-title {
  font-family: 'Georgia', serif;
  font-size: 1.3rem;
  font-weight: bold;
  color: #f0c060;
}
.screen-splash .s-tag {
  font-family: 'Courier New', monospace;
  font-size: 0.5rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #5a3a18;
}
.screen-splash .s-words {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
  max-width: 150px;
}
.screen-splash .s-word {
  font-size: 0.6rem;
  color: #f0a500;
  opacity: 0.65;
}

/* Channels screen */
.screen-channels {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.screen-channels .s-header {
  font-family: 'Georgia', serif;
  font-size: 0.85rem;
  font-weight: bold;
  color: #f0c060;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #2a1a0a;
}
.screen-channels .s-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  flex: 1;
}
.s-card {
  background: #1e1508;
  border: 1px solid #2a1a0a;
  border-radius: 8px;
  padding: 7px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.s-card .s-icon { font-size: 0.9rem; }
.s-card .s-name {
  font-family: 'Georgia', serif;
  font-size: 0.48rem;
  font-weight: bold;
  color: #e8d5b0;
  line-height: 1.2;
}
.s-card .s-region {
  font-family: 'Courier New', monospace;
  font-size: 0.38rem;
  color: #5a3a18;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.s-card.active {
  border-color: rgba(240,165,0,0.5);
  background: rgba(240,165,0,0.1);
}

/* Now Playing screen */
.screen-now {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  gap: 8px;
}
.screen-now .s-disc {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #2a1a0a, #150e06);
  border: 2px solid #2a1a0a;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  position: relative;
  flex-shrink: 0;
}
.screen-now .s-disc::after {
  content: '';
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #0c0803;
  border: 1px solid #3a2510;
}
.screen-now .s-ch {
  font-family: 'Georgia', serif;
  font-size: 0.58rem;
  font-weight: bold;
  color: #f0c060;
  text-align: center;
}
.screen-now .s-track {
  font-family: 'Courier New', monospace;
  font-size: 0.42rem;
  color: #5a3a18;
  text-align: center;
}
.screen-now .s-controls {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 4px;
}
.screen-now .s-btn-play {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid #f0a500;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.55rem;
  color: #f0a500;
}
.screen-now .s-btn-skip {
  font-size: 0.7rem;
  color: #5a3a18;
}

/* ── Features Grid ─────────────────────────────────────────────────────────── */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s, background 0.2s;
}
.feature-card:hover {
  border-color: rgba(240,165,0,0.3);
  background: var(--surface-2);
}

.feature-icon {
  font-size: 1.8rem;
  margin-bottom: 14px;
}

.feature-card h3 {
  color: var(--accent-light);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text);
  opacity: 0.7;
  line-height: 1.6;
  margin: 0;
}

/* ── Channels Preview ─────────────────────────────────────────────────────── */

.channels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 48px;
}

.channel-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 18px;
  transition: all 0.2s;
}
.channel-card:hover {
  border-color: rgba(240,165,0,0.4);
  transform: translateY(-3px);
}

.channel-card .ch-icon { font-size: 2rem; margin-bottom: 10px; }
.channel-card .ch-name {
  font-size: 1rem;
  font-weight: bold;
  color: var(--accent-light);
  margin-bottom: 4px;
}
.channel-card .ch-region {
  font-family: 'Courier New', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.channel-card .ch-desc {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--text);
  opacity: 0.65;
  line-height: 1.5;
}

/* ── CTA Section ──────────────────────────────────────────────────────────── */

.cta-section {
  text-align: center;
  padding: 88px 0;
  background: linear-gradient(180deg, transparent, rgba(240,165,0,0.04));
}
.cta-section h2 { margin-bottom: 16px; }
.cta-section p {
  color: var(--text);
  opacity: 0.7;
  max-width: 480px;
  margin: 0 auto 32px;
}

/* ── Footer ───────────────────────────────────────────────────────────────── */

.footer {
  border-top: 1px solid var(--footer-border);
  padding: 40px 0;
  background: var(--footer-bg);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo {
  font-family: 'Georgia', serif;
  font-size: 1rem;
  font-weight: bold;
  color: var(--accent-light);
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}
.footer-links a {
  font-family: 'Courier New', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.footer-links a:hover { color: var(--accent); }

.footer-copy {
  font-family: 'Courier New', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: #6a4e28;
  width: 100%;
}

/* ── Inner Pages (About, Privacy, etc.) ────────────────────────────────────── */

.page-hero {
  padding: 120px 0 56px;
  border-bottom: 1px solid var(--border);
}

.page-hero h1 { margin-bottom: 12px; }

.page-hero .lead {
  font-size: 1.1rem;
  color: var(--text);
  opacity: 0.75;
  max-width: 560px;
}

.page-body {
  padding: 64px 0 96px;
  max-width: 720px;
}

.page-body h2 {
  font-size: 1.3rem;
  color: var(--accent);
  margin: 40px 0 12px;
}
.page-body h2:first-child { margin-top: 0; }

.page-body p, .page-body li {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.8;
}

.page-body ul, .page-body ol {
  padding-left: 1.4em;
  margin-bottom: 1rem;
}
.page-body li { margin-bottom: 6px; }

.page-body .highlight {
  background: var(--surface);
  border-left: 3px solid var(--accent);
  padding: 16px 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 24px 0;
}
.page-body .highlight p {
  color: var(--text);
  font-style: italic;
  margin: 0;
}

.page-body .updated {
  font-family: 'Courier New', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.5;
  margin-bottom: 40px;
}

/* ── Divider ──────────────────────────────────────────────────────────────── */
hr.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 32px 0;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  .hero-inner {
    flex-direction: column !important;
    text-align: center;
  }
  .store-badges { justify-content: center; }

  .phone-wrap { height: 360px; }
  .phone { width: 160px; height: 320px; border-radius: 26px; }
  .phone:nth-child(1) { transform: rotate(-6deg) translateX(-72px) translateY(8px); }
  .phone:nth-child(3) { transform: rotate(6deg) translateX(72px) translateY(8px); }

  .footer-inner { flex-direction: column; align-items: flex-start; }

  .page-body { padding: 40px 0 64px; }
}

@media (max-width: 480px) {
  .features-grid { grid-template-columns: 1fr; }
  .channels-grid { grid-template-columns: 1fr 1fr; }
}
