/* ─────────────────────────────────────────
   Lo-Hi Music Blog — Global Styles
   ───────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Space+Mono:ital,wght@0,400;0,700;1,400&display=swap');

:root {
  --bg:        #0f0e17;
  --bg2:       #1a1825;
  --bg3:       #252336;
  --text:      #fffffe;
  --muted:     #a7a9be;
  --accent:    #ff8906;
  --accent2:   #f25f4c;
  --accent3:   #e53170;
  --border:    rgba(255,255,255,0.08);
  --radius:    12px;
  --font-body: 'Space Grotesk', sans-serif;
  --font-mono: 'Space Mono', monospace;
}

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

html { scroll-behavior: smooth; }

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

/* ── Noise overlay ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

/* ─────────────────────────────────────────
   Header / Nav
   ───────────────────────────────────────── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15,14,23,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav-logo span { color: var(--accent); }

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

.nav-links a {
  font-size: 0.9rem;
  color: var(--muted);
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--text); }

/* ─────────────────────────────────────────
   Hero
   ───────────────────────────────────────── */
.hero {
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,137,6,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 100px;
  padding: 4px 14px;
  margin-bottom: 20px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  max-width: 700px;
  margin-bottom: 24px;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero p {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 40px;
}

.hero-wave {
  font-size: 4rem;
  margin-bottom: 24px;
  display: block;
  line-height: 1;
}

/* ─────────────────────────────────────────
   Section
   ───────────────────────────────────────── */
.section { padding: 64px 0; }

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

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-title span { color: var(--accent); }

.section-link {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
  transition: color 0.2s;
}

.section-link:hover { color: var(--accent); }

/* ─────────────────────────────────────────
   Article Cards
   ───────────────────────────────────────── */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,137,6,0.3);
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
}

.card-emoji {
  font-size: 2rem;
  line-height: 1;
}

.card-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  background: rgba(255,137,6,0.1);
  border-radius: 4px;
  padding: 3px 8px;
}

.card-title {
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.card-excerpt {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.card-meta .dot { opacity: 0.4; }

/* ─────────────────────────────────────────
   Featured Card (wide)
   ───────────────────────────────────────── */
.card-featured {
  grid-column: 1 / -1;
  flex-direction: row;
  gap: 40px;
  padding: 40px;
  background: linear-gradient(135deg, #1a1825 0%, #1e1830 100%);
}

.card-featured .card-body { flex: 1; }

.card-featured .card-visual {
  width: 220px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg3);
  border-radius: 8px;
  font-size: 6rem;
  height: 160px;
}

.card-featured .card-title { font-size: 1.4rem; }

@media (max-width: 640px) {
  .card-featured {
    flex-direction: column;
  }
  .card-featured .card-visual {
    width: 100%;
    height: 100px;
    font-size: 3rem;
  }
}

/* ─────────────────────────────────────────
   About Strip
   ───────────────────────────────────────── */
.about-strip {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px;
  display: flex;
  gap: 48px;
  align-items: center;
  margin: 0 0 64px;
}

.about-strip-icon {
  font-size: 4rem;
  flex-shrink: 0;
}

.about-strip h2 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.about-strip p { color: var(--muted); font-size: 0.95rem; }

@media (max-width: 640px) {
  .about-strip {
    flex-direction: column;
    gap: 24px;
    padding: 32px;
  }
}

/* ─────────────────────────────────────────
   Footer
   ───────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  text-align: center;
}

footer p {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
}

footer span { color: var(--accent); }

/* ─────────────────────────────────────────
   Article Page
   ───────────────────────────────────────── */
.article-hero {
  padding: 80px 0 48px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 40px;
  transition: color 0.2s;
}

.back-link:hover { color: var(--accent); }

.article-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  background: rgba(255,137,6,0.1);
  border-radius: 4px;
  padding: 3px 8px;
}

.article-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 20px;
}

.article-meta {
  display: flex;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 48px;
}

.article-cover {
  background: var(--bg2);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8rem;
  margin-bottom: 64px;
}

/* ── Article body ── */
.article-body {
  max-width: 720px;
  margin: 0 auto;
  padding-bottom: 80px;
}

.article-body h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 48px 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.article-body h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 32px 0 12px;
  color: var(--accent);
}

.article-body p { margin-bottom: 20px; color: var(--muted); }
.article-body p strong { color: var(--text); }

.article-body ul, .article-body ol {
  padding-left: 24px;
  margin-bottom: 20px;
  color: var(--muted);
}

.article-body li { margin-bottom: 8px; }

.article-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 16px 24px;
  margin: 32px 0;
  background: var(--bg2);
  border-radius: 0 8px 8px 0;
  color: var(--text);
  font-style: italic;
}

.article-body code {
  font-family: var(--font-mono);
  background: var(--bg3);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 0.88em;
  color: var(--accent);
}

/* ─────────────────────────────────────────
   Player Bar (decoration)
   ───────────────────────────────────────── */
.player-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15,14,23,0.92);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 200;
  gap: 16px;
}

.player-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.player-thumb {
  width: 40px;
  height: 40px;
  background: var(--bg3);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.player-text { min-width: 0; }

.player-track {
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-artist {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 20px;
}

.player-btn {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 1.1rem;
  transition: color 0.2s;
  padding: 4px;
}

.player-btn:hover { color: var(--text); }
.player-btn.play { color: var(--accent); font-size: 1.4rem; }

.player-progress {
  flex: 1;
  max-width: 300px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.progress-bar {
  flex: 1;
  height: 3px;
  background: var(--bg3);
  border-radius: 100px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 35%;
  background: var(--accent);
  border-radius: 100px;
}

.player-time {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
  white-space: nowrap;
}

/* push content above player bar */
main { padding-bottom: 72px; }

/* ── YouTube card ── */
.yt-card {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.5rem;
  transition: border-color .2s, transform .2s;
  max-width: 480px;
}
.yt-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.yt-icon {
  width: 48px; height: 48px;
  background: #ff0000;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.yt-info { flex: 1; }
.yt-name { font-weight: 600; font-size: 1rem; }
.yt-desc { color: var(--muted); font-size: 0.85rem; margin-top: .2rem; }
.yt-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 4px;
  padding: 2px 6px;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .player-progress, .player-time { display: none; }
}
