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

:root {
  --blog-bg: #05050c;
  --blog-surface: #0b0b14;
  --blog-accent: #db6b86;
  --blog-text: #f7f7ff;
  --blog-muted: #b8b9cf;
}

body.blog-page {
  margin: 0;
  min-height: 100vh;
  background: var(--blog-bg);
  color: var(--blog-text);
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
}

.blog-page .menu__bg {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: rgba(5, 5, 12, 0.92);
  transition: opacity 0.35s ease;
}

.blog-page .menu__bg.menu__bg--active {
  opacity: 1;
}

.blog-main {
  width: min(1100px, 100% - 3rem);
  margin: 0 auto;
  padding: 6rem 0 4rem;
}

.blog-hero {
  margin-bottom: 3rem;
}

.blog-hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.blog-hero .blog-intro {
  margin: 0;
  color: var(--blog-muted);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 60ch;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(145deg, #0f0f1c, #0a0a14);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.blog-card:hover {
  border-color: rgba(219, 107, 134, 0.3);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.blog-card__image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #15151f;
}

.blog-card__body {
  padding: 1.25rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.blog-card__category {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blog-accent);
}

.blog-card__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.3;
}

.blog-card__excerpt {
  margin: 0;
  font-size: 0.9rem;
  color: var(--blog-muted);
  line-height: 1.5;
  flex: 1;
}

.blog-card__meta {
  font-size: 0.85rem;
  color: var(--blog-muted);
  margin-top: 0.5rem;
}

.blog-card__link {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--blog-accent);
}

.blog-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--blog-muted);
}

.blog-cta {
  margin-top: 3rem;
  padding: 2rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.blog-cta a {
  color: var(--blog-accent);
  text-decoration: none;
  font-weight: 500;
}

.blog-cta a:hover {
  text-decoration: underline;
}

.blog-post__breadcrumb {
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--blog-muted);
}

.blog-post__breadcrumb a {
  color: var(--blog-accent);
  text-decoration: none;
}

.blog-post__breadcrumb a:hover {
  text-decoration: underline;
}

.blog-post__image {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  background: #15151f;
}

.blog-post__header {
  margin-bottom: 1.5rem;
}

.blog-post__title {
  margin: 0.5rem 0 0.5rem;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 600;
  line-height: 1.2;
}

.blog-post__date {
  font-size: 0.9rem;
  color: var(--blog-muted);
}

.blog-post__body {
  line-height: 1.7;
  font-size: 1.05rem;
}

.blog-post__body p {
  margin: 0 0 1rem;
}

.blog-post__body a {
  color: var(--blog-accent);
  text-decoration: none;
}

.blog-post__body a:hover {
  text-decoration: underline;
}

.blog-post__cta {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 1rem;
}

.blog-post__cta a {
  color: var(--blog-accent);
  text-decoration: none;
  font-weight: 500;
}

.blog-post__cta a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .blog-main {
    padding: 5rem 0 3rem;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }
}
