/* ============================================
   MAIN.CSS — Shared styles, variables, layout
   ============================================ */

:root {
  --clr-bg:        #050e1f;
  --clr-surface:   #062045;
  --clr-surface-2: #082551;
  --clr-border:    #0e2f60;
  --clr-accent:    #ffffff;
  --clr-accent-dim:#cccccc;
  --clr-text:      #e8eaf0;
  --clr-muted:     #7a8099;
  --clr-live:      #22c55e;

  --font-sans: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono: 'Consolas', 'Courier New', monospace;

  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg: 14px;

  --nav-h: 64px;
  --transition: 200ms ease;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--clr-bg);
  color: var(--clr-text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
}

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

a { color: inherit; text-decoration: none; }

/* ---- NAVIGATION ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(13, 15, 20, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--clr-border);
  display: flex;
  align-items: center;
  padding: 0 clamp(1rem, 4vw, 3rem);
  gap: 2rem;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}

.nav__logo-icon {
  width: 34px;
  height: 34px;
  background: var(--clr-accent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.nav__logo span { color: var(--clr-accent); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin-left: auto;
}

.nav__links a {
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--clr-muted);
  transition: color var(--transition), background var(--transition);
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--clr-text);
  background: var(--clr-surface-2);
}

.nav__links a.active {
  color: var(--clr-accent);
}

.nav__live-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border);
  padding: 0.3rem 0.75rem;
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--clr-live);
  margin-left: 1rem;
}

.nav__live-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--clr-live);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  margin-left: auto;
  background: none;
  border: none;
  padding: 4px;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--clr-text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ---- FOOTER ---- */
.footer {
  background: var(--clr-surface);
  border-top: 1px solid var(--clr-border);
  padding: 3rem clamp(1rem, 4vw, 3rem) 1.5rem;
  margin-top: auto;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--clr-border);
}

.footer__brand p {
  color: var(--clr-muted);
  font-size: 0.88rem;
  margin-top: 0.75rem;
  max-width: 26ch;
}

.footer__col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--clr-muted);
  margin-bottom: 0.75rem;
}

.footer__col ul { list-style: none; }

.footer__col ul li + li { margin-top: 0.4rem; }

.footer__col ul a {
  color: var(--clr-text);
  font-size: 0.88rem;
  transition: color var(--transition);
}

.footer__col ul a:hover { color: var(--clr-accent); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  font-size: 0.8rem;
  color: var(--clr-muted);
}

/* ---- SHARED COMPONENTS ---- */
.badge {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge--genre   { background: var(--clr-surface-2); color: var(--clr-muted); border: 1px solid var(--clr-border); }
.badge--live    { background: #14532d; color: var(--clr-live); }
.badge--new     { background: #7c3aed22; color: #a78bfa; border: 1px solid #7c3aed44; }
.badge--accent  { background: var(--clr-accent); color: var(--clr-bg); }

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.section-header h2 {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 700;
}

.section-header a {
  font-size: 0.85rem;
  color: var(--clr-accent);
  transition: opacity var(--transition);
}

.section-header a:hover { opacity: 0.8; }

.divider {
  display: inline-block;
  width: 3px;
  height: 1em;
  background: var(--clr-accent);
  border-radius: 2px;
  margin-right: 0.5rem;
  vertical-align: middle;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .nav__links, .nav__live-badge { display: none; }
  .nav__hamburger { display: flex; }

  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--clr-surface);
    border-bottom: 1px solid var(--clr-border);
    padding: 1rem;
    gap: 0.25rem;
  }

  .nav__links.open a { width: 100%; display: block; padding: 0.6rem 1rem; }

  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }

  .footer__bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}
