/* ═══════════════════════════════════════════════════════════════════════════
   main.css — Horrido-Lied landing page styles
   Organized in sections matching the HTML structure.
   To add a new section: copy the Section N pattern below the last one.
   ═══════════════════════════════════════════════════════════════════════════ */


/* ── Section 1: Reset & Design Tokens ─────────────────────────────────────── */

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

:root {
  /* Brand colors — identical to frontend/src/theme/index.ts dark theme */
  --bg:         #0f0f0f;  /* Page background */
  --surface:    #1a1a1a;  /* Cards, nav background */
  --high:       #252525;  /* Hover state fill */
  --accent:     #D4921A;  /* Gold — eyebrows, icons, numbers, borders */
  --accent-btn: #F5A623;  /* Brighter gold — primary button fill */
  --text:       #FFFFFF;  /* Primary text */
  --text-sec:   #A0A0A0;  /* Secondary text */
  --text-mut:   #555555;  /* Muted text — dates, counts */
  --border:     #2a2a2a;  /* Card borders, dividers */

  /* Layout */
  --content-width: 1100px;
  --content-pad:   40px;

  /* Spacing scale */
  --gap-xs: 4px;
  --gap-sm: 8px;
  --gap-md: 14px;
  --gap-lg: 24px;
  --gap-xl: 32px;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --radius-xl: 14px;
}


/* ── Section 2: Base Typography ────────────────────────────────────────────── */

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2 { font-weight: 700; }
h1 { font-size: 12px; font-weight: 600; }   /* hero tagline — visually styled via .hero__tagline */
h2 { font-size: 17px; }

a { text-decoration: none; }

ul { list-style: none; }


/* ── Section 3: Shared Components ──────────────────────────────────────────── */

/* Buttons */
.btn {
  border: none;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  padding: 5px 16px;
  cursor: pointer;
  transition: opacity .15s;
}
.btn:hover { opacity: .85; }
.btn--ghost {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-sec);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); opacity: 1; }
.btn--primary { background: var(--accent-btn); color: #0f0f0f; }

/* Inline text link */
.btn-link {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

/* Store download badges (hero + CTA) */
.store-badge {
  display: flex;
  align-items: center;
  gap: var(--gap-sm);
  background: rgba(15,15,15,0.75);
  border: 1px solid rgba(212,146,26,0.4);
  border-radius: var(--radius-md);
  padding: 8px 14px;
  color: var(--text);
  transition: border-color .15s;
}
.store-badge:hover { border-color: var(--accent); }
.store-badge__icon { font-size: 20px; }
.store-badge__pre  { display: block; font-size: 9px; color: var(--text-mut); letter-spacing: .08em; text-transform: uppercase; }
.store-badge__name { font-size: 13px; font-weight: 700; }

/* Eyebrow label above section titles */
.section__eyebrow {
  font-size: 11px;
  color: var(--accent);
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: var(--gap-xs);
}

/* Section header row: title on left, "see all" link on right */
.section__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: var(--gap-md);
}
.section__title { margin: 0; }

/* Generic card hover border accent — add this class to any card */
.card-hover { transition: border-color .15s; }
.card-hover:hover { border-color: rgba(212,146,26,0.35); }


/* ── Section 4: Navigation ──────────────────────────────────────────────────── */

.nav {
  background: rgba(15,15,15,0.96);
  border-bottom: 1px solid rgba(212,146,26,0.2);
  display: flex;
  align-items: center;
  padding: 8px var(--content-pad);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav__links {
  display: flex;
  gap: var(--gap-lg);
}
.nav__links a {
  color: var(--text-sec);
  font-size: 13px;
  transition: color .15s;
}
.nav__links a:hover { color: var(--accent); }

/* Logo centered via flex-grow 1 on the center zone */
.nav__center {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}
.nav__logo { height: 90px; width: auto; }

.nav__actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* Language switcher pill */
.lang-switcher {
  display: flex;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.lang-btn {
  background: none;
  border: none;
  border-right: 1px solid var(--border);
  color: var(--text-mut);
  font-size: 11px;
  font-weight: 600;
  padding: 5px 9px;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.lang-btn:last-child { border-right: none; }
.lang-btn:hover,
.lang-btn--active   { background: var(--high); color: var(--accent); }


/* ── Section 5: Hero ────────────────────────────────────────────────────────── */

.hero-wrap {
  max-width: var(--content-width);
  margin: var(--gap-xl) auto 0;
  padding: 0 var(--content-pad);
}

.hero {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
}

.hero__bg {
  width: 100%;
  display: block;
  filter: brightness(.5) saturate(.8);
}

/* Left-to-right gradient: text legible on left, painting shows through on right */
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(15,15,15,.85) 0%, rgba(15,15,15,.3) 55%, rgba(15,15,15,0) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 36px 44px;
}

.hero__tagline {
  font-size: 12px;
  color: var(--accent);
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: var(--gap-sm);
}

.hero__desc {
  font-size: 14px;
  color: var(--text-sec);
  max-width: 360px;
  line-height: 1.7;
  margin-bottom: 22px;
}

.hero__badges { display: flex; gap: 10px; }


/* ── Section 6: Stats Bar ───────────────────────────────────────────────────── */

/* Visually "attached" to the hero: top border removed, only bottom corners rounded */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 12px 12px;
  overflow: hidden;
}

.stats-bar__item {
  padding: 14px 16px;
  text-align: center;
  border-right: 1px solid var(--border);
}
.stats-bar__item:last-child { border-right: none; }

.stats-bar__num {
  display: block;
  font-size: 20px;
  font-weight: 800;
  color: var(--accent);
}
.stats-bar__lbl {
  display: block;
  font-size: 11px;
  color: var(--text-mut);
  margin-top: 2px;
}


/* ── Section 7: Main Content Wrapper ─────────────────────────────────────────── */

.main {
  max-width: var(--content-width);
  margin: 28px auto 0;
  padding: 0 var(--content-pad) 60px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}


/* ── Section 8: News ─────────────────────────────────────────────────────────── */

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.news-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
}

.news-card__thumb {
  height: 72px;
  background: linear-gradient(135deg, #1a1208, #2a1a06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  position: relative;
  border-bottom: 1px solid var(--border);
  color: var(--accent);
}

.news-card__tag {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--accent);
  color: #0f0f0f;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

.news-card__body    { padding: 12px; }
.news-card__date    { font-size: 10px; color: var(--text-mut); margin-bottom: var(--gap-xs); text-transform: uppercase; letter-spacing: .06em; }
.news-card__headline { font-size: 12px; font-weight: 600; line-height: 1.4; }


/* ── Section 9: Catalogue ────────────────────────────────────────────────────── */

.cats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 10px;
}

.cat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 10px;
  text-align: center;
  cursor: pointer;
}

.cat-card__icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  background: rgba(212,146,26,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  margin: 0 auto 8px;
  color: var(--accent);
}

.cat-card__name  { font-size: 11px; color: var(--text-sec); font-weight: 500; }
.cat-card__count { font-size: 10px; color: var(--text-mut); }

.songs-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.song-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.song-item__icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: rgba(212,146,26,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  color: var(--accent);
}

.song-item__name { font-size: 12px; font-weight: 600; }
.song-item__meta { font-size: 11px; color: var(--text-mut); }


/* ── Section 10: Features ────────────────────────────────────────────────────── */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.feat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
}

.feat-card__icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: rgba(212,146,26,.12);
  border: 1px solid rgba(212,146,26,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--accent);
}

.feat-card__title { font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.feat-card__desc  { font-size: 12px; color: var(--text-sec); line-height: 1.6; }


/* ── Section 11: Help Strip ──────────────────────────────────────────────────── */

.help-strip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.help-strip__icon  { font-size: 24px; color: var(--accent); width: 36px; text-align: center; flex-shrink: 0; }
.help-strip__title { font-size: 14px; font-weight: 700; margin-bottom: 3px; }
.help-strip__desc  { font-size: 12px; color: var(--text-sec); }
.help-strip__links { margin-left: auto; display: flex; gap: 10px; }

.help-link {
  color: var(--accent);
  border: 1px solid rgba(212,146,26,.3);
  border-radius: var(--radius-sm);
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  transition: background .15s;
}
.help-link:hover { background: rgba(212,146,26,.08); }


/* ── Section 12: CTA Strip ───────────────────────────────────────────────────── */

.cta-strip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-lg);
}

.cta-strip__title  { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.cta-strip__sub    { font-size: 13px; color: var(--text-sec); }
.cta-strip__badges { display: flex; gap: 10px; flex-shrink: 0; }


/* ── Section 13: Footer ──────────────────────────────────────────────────────── */

.footer {
  border-top: 1px solid var(--border);
  padding: 18px var(--content-pad);
  max-width: var(--content-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: var(--gap-lg);
}

.footer__logo { height: 36px; width: auto; opacity: .7; }

.footer__links { display: flex; gap: 16px; }
.footer__links a { color: var(--text-mut); font-size: 12px; transition: color .15s; }
.footer__links a:hover { color: var(--text-sec); }

.footer__copy { margin-left: auto; font-size: 12px; color: var(--text-mut); }


/* ── Section 14: Responsive ──────────────────────────────────────────────────── */
/* Desktop-first. Mobile is served by the native app — this is graceful degradation only. */

@media (max-width: 900px) {
  :root { --content-pad: 20px; }
  .nav__links    { display: none; }
  .cats-grid     { grid-template-columns: repeat(3, 1fr); }
  .songs-row     { grid-template-columns: repeat(2, 1fr); }
  .news-grid     { grid-template-columns: 1fr 1fr; }
  .features-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .nav__logo     { height: 56px; }
  .cats-grid     { grid-template-columns: repeat(2, 1fr); }
  .news-grid     { grid-template-columns: 1fr; }
  .songs-row     { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .help-strip    { flex-direction: column; align-items: flex-start; }
  .help-strip__links { margin-left: 0; }
  .cta-strip     { flex-direction: column; }
}
