/* Page styles for blog/index.astro (ported from its scoped <style> block). */

.blog-index {
  background: var(--color-bg);
  min-height: 100vh;
  padding-top: 5rem;
}

.glow-gold, .glow-navy {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.1;
  pointer-events: none;
}
.glow-gold { width: 600px; height: 600px; background: var(--gold); top: 0; right: -100px; }
.glow-navy { width: 500px; height: 500px; background: var(--navy); bottom: 30%; left: -100px; opacity: 0.22; }

/* Hero */
.index-hero {
  position: relative;
  padding: 5rem 3rem 3rem;
  max-width: 1600px;
  margin: 0 auto;
  text-align: center;
}
.hero-sparkle {
  position: absolute;
  pointer-events: none;
  opacity: 0.6;
}
.hero-sparkle--lg { width: 48px; height: 48px; top: 2.5rem; right: 14%; }
.hero-sparkle--sm { width: 16px; height: 16px; top: 6rem; left: 16%; opacity: 0.4; }
@media (max-width: 640px) {
  .hero-sparkle--lg { right: 4%; width: 32px; height: 32px; }
  .hero-sparkle--sm { left: 4%; }
}
.index-title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 1rem 0;
}
.index-sub {
  color: #999;
  font-size: 1.1rem;
  max-width: 36rem;
  margin: 1rem auto 0;
  line-height: 1.6;
}

/* Posts grid */
.posts-section {
  padding: 3rem 3rem 6rem;
  max-width: 1600px;
  margin: 0 auto;
}
.posts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) {
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
  .post-card--featured { grid-column: span 2; }
}
@media (min-width: 1200px) {
  .posts-grid { grid-template-columns: repeat(3, 1fr); }
  .post-card--featured { grid-column: span 2; }
}

.post-card {
  display: flex;
  flex-direction: column;
  background: rgba(30,30,44,0.4);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius-card);
  overflow: hidden;
  text-decoration: none;
  transition: transform var(--dur-mid) var(--ease-pop), border-color var(--dur-mid) var(--ease-pop), box-shadow var(--dur-mid) var(--ease-pop);
}
.post-card:hover {
  transform: translateY(-6px);
  border-color: rgba(242,182,54,0.30);
  box-shadow: var(--shadow-float), var(--glow-gold);
}
.post-image {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.post-card--featured .post-image {
  aspect-ratio: 21/9;
}
.post-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.4,0,0.2,1);
}
.post-card:hover .post-image img { transform: scale(1.05); }
.post-image-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(13,13,26,0.7) 0%, transparent 60%);
}
.post-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.post-category {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-gold);
}
.post-date {
  font-size: 0.625rem;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.post-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.3;
  margin-bottom: 0.75rem;
  transition: color var(--dur-fast) var(--ease-pop);
}
.post-card--featured .post-title { font-size: 1.75rem; }
.post-card:hover .post-title { color: var(--color-gold); }
.post-description {
  font-size: 0.875rem;
  color: #999;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1.5rem;
}
.post-readmore {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-gold);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap var(--dur-fast) var(--ease-pop);
}
.post-card:hover .post-readmore { gap: 0.75rem; }

/* Subscribe */
.subscribe-cta {
  position: relative;
  margin: 0 3rem 6rem;
  max-width: 1600px;
  margin-left: auto;
  margin-right: auto;
  padding: 5rem 3rem;
  border-radius: 4rem;
  background: #1a1a28;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 0 60px -10px rgba(31,45,92,0.35);
}
.subscribe-glow {
  position: absolute; inset: 0;
  background: radial-gradient(circle at center, rgba(242,182,54,0.12) 0%, transparent 70%);
}
.subscribe-inner { position: relative; z-index: 1; max-width: 40rem; margin: 0 auto; }
.subscribe-heading {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--color-gold);
  margin-bottom: 1rem;
}
.subscribe-sub { color: #999; font-size: 1rem; margin-bottom: 2.5rem; }
.subscribe-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 28rem;
  margin: 0 auto;
}
@media (min-width: 640px) { .subscribe-form { flex-direction: row; } }
.subscribe-input {
  flex: 1;
  background: var(--color-bg);
  border: none;
  border-radius: 9999px;
  padding: 1rem 2rem;
  color: var(--color-text);
  font-size: 0.875rem;
  outline: none;
  transition: box-shadow var(--dur-fast) var(--ease-pop);
}
.subscribe-input:focus { box-shadow: 0 0 0 2px rgba(242,182,54,0.4); }
.subscribe-btn {
  padding: 1rem 2.5rem;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  white-space: nowrap;
}
