/* Blog page specific styles – glassmorphism premium */
:root {
  --post-bg: rgba(255, 255, 255, 0.04);
  --post-border: rgba(255, 255, 255, 0.1);
  --post-radius: 12px;
}

/* ── Blog Hero ────────────────────────────────────────────────────────────── */
.blog-hero {
  position: relative;
  padding: 8rem 2rem 4rem;
  text-align: center;
  background: linear-gradient(180deg,
      rgba(46, 80, 144, 0.15) 0%,
      rgba(10, 10, 10, 0) 100%);
}

.blog-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top center,
      rgba(46, 80, 144, 0.12) 0%,
      transparent 60%);
  pointer-events: none;
}

.blog-hero__content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.blog-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.75rem;
}

.blog-hero__subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  line-height: 1.6;
}

/* ── Navigation active state ──────────────────────────────────────────────── */
.nav-link--active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

/* ── Blog Container ──────────────────────────────────────────────────────── */
.blog-container {
  max-width: 960px;
  margin: 0 auto 60px;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* ── Post Cards ──────────────────────────────────────────────────────────── */
.post {
  background: var(--post-bg);
  border: 1px solid var(--post-border);
  border-radius: var(--post-radius);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  padding: 2rem;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.post:hover {
  transform: translateY(-2px);
  border-color: rgba(46, 80, 144, 0.3);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(46, 80, 144, 0.1);
}

.post-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.post-meta {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.post-date {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--accent-primary);
}

.post-bpm {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  opacity: 0.6;
}

/* ── Player ──────────────────────────────────────────────────────────────── */
.player-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: var(--post-radius);
  margin-bottom: 1.25rem;
  background: rgba(0, 0, 0, 0.3);
}

.player-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ── Analysis Section ────────────────────────────────────────────────────── */
.analysis h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--accent-secondary);
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}

.analysis-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 1rem;
}

.chart-canvas {
  width: 100%;
  max-width: 800px;
  height: 400px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--post-border);
  border-radius: var(--post-radius);
}

/* ── Tags ────────────────────────────────────────────────────────────────── */
.post-tag {
  background: rgba(180, 255, 0, 0.1);
  color: var(--accent-secondary);
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font-display);
}

/* ── Featured Article Card ────────────────────────────────────────────────── */
.featured-article {
  display: block;
  text-decoration: none;
  border-left: 3px solid var(--accent-primary);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.featured-article::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg,
      rgba(46, 80, 144, 0.08) 0%,
      rgba(255, 45, 85, 0.04) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.featured-article:hover {
  border-left-color: var(--accent-secondary, #b4ff00);
  box-shadow: 0 0 40px rgba(46, 80, 144, 0.2);
  transform: translateY(-3px);
}

.featured-article:hover::before {
  opacity: 1;
}

.featured-article .post-tag--highlight {
  background: var(--accent-primary);
  color: #fff;
}

.featured-article .featured-excerpt {
  position: relative;
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-top: 0.5rem;
}

.featured-article .featured-cta {
  position: relative;
  display: inline-block;
  margin-top: 1rem;
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--accent-primary);
  transition: color 0.3s ease, letter-spacing 0.3s ease;
}

.featured-article:hover .featured-cta {
  color: var(--accent-secondary);
  letter-spacing: 0.3em;
}

/* ── Blog Footer ─────────────────────────────────────────────────────────── */
.blog-footer {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--text-secondary);
  font-size: 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg,
      transparent 0%,
      rgba(10, 10, 10, 0.5) 100%);
}

.blog-footer__links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.blog-footer__links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.blog-footer__links a:hover {
  color: var(--accent-primary);
}

.blog-footer p {
  opacity: 0.5;
  font-size: 0.75rem;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .blog-hero {
    padding: 6rem 1.5rem 3rem;
  }

  .blog-hero__title {
    font-size: 2rem;
  }

  .blog-container {
    padding: 0 1rem;
  }

  .post {
    padding: 1.25rem;
  }

  .post-title {
    font-size: 1.3rem;
  }

  .blog-footer__links {
    flex-direction: column;
    gap: 1rem;
  }
}
