/* ===============================
   Blog Styles
   =============================== */

/* --- Blog Container --- */
.blog-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Breadcrumb --- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  padding-top: 24px;
}

.breadcrumb a {
  color: var(--text-muted);
  transition: var(--transition);
}

.breadcrumb a:hover {
  color: var(--sky);
}

.breadcrumb-sep {
  color: var(--text-muted);
  opacity: 0.4;
}

/* --- Blog Hero (listing page) --- */
.blog-hero {
  padding: 120px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.blog-hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(126, 200, 227, 0.12), transparent 70%);
  pointer-events: none;
}

.blog-hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(248, 165, 194, 0.1), transparent 70%);
  pointer-events: none;
}

.blog-hero h1 {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
  position: relative;
  z-index: 1;
}

.blog-hero p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 500px;
  margin: 0 auto;
  line-height: 2;
  position: relative;
  z-index: 1;
}

/* --- Blog Grid (listing page) --- */
.blog-grid-section {
  padding: 0 0 80px;
}

.blog-grid {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* --- Blog Card --- */
.blog-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.03);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(126, 200, 227, 0.15);
}

.card-cover-link {
  display: block;
  text-decoration: none;
}

.card-cover {
  width: 100%;
  height: 200px;
  display: block;
}

.card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.card-body time {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.card-body h2 {
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.5;
}

.card-body h2 a {
  color: var(--text);
  transition: var(--transition);
}

.card-body h2 a:hover {
  color: var(--sky);
}

.card-body p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.8;
  flex: 1;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--sky);
  transition: var(--transition);
  width: fit-content;
}

.read-more:hover {
  gap: 10px;
  color: #5ab0d0;
}

/* --- Single Post Page --- */
.blog-post {
  padding: 100px 0 60px;
  min-height: 100vh;
}

/* Post Header */
.post-header {
  margin-bottom: 32px;
}

.post-header h1 {
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: -0.02em;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.post-meta time {
  font-weight: 500;
}

.reading-time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--sky-light);
  color: #4a9ec0;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
}

/* Post Cover */
.post-cover {
  width: 100%;
  height: 360px;
  border-radius: var(--radius);
  margin-bottom: 40px;
}

/* Post Content */
.post-content {
  font-size: 1.05rem;
  line-height: 2.1;
  color: var(--text);
}

.post-content h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-top: 48px;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.post-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-top: 32px;
  margin-bottom: 12px;
}

.post-content p {
  margin-bottom: 20px;
}

.post-content ul,
.post-content ol {
  margin-bottom: 20px;
  padding-right: 24px;
}

.post-content li {
  margin-bottom: 8px;
}

.post-content ul li {
  list-style-type: disc;
}

.post-content ol li {
  list-style-type: decimal;
}

.post-content strong {
  font-weight: 800;
}

.post-content blockquote {
  border-right: 4px solid var(--sky);
  padding: 16px 24px;
  margin: 24px 0;
  background: var(--sky-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: normal;
  color: var(--text);
}

.post-content blockquote p {
  margin-bottom: 0;
}

.post-content a {
  color: var(--sky);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: var(--transition);
}

.post-content a:hover {
  color: #5ab0d0;
}

.post-content img {
  border-radius: var(--radius-sm);
  margin: 32px 0;
  box-shadow: var(--shadow);
}

/* --- Post Footer --- */
.post-footer {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

/* Related Posts */
.related-posts h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 24px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.related-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(0, 0, 0, 0.03);
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}

.related-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.related-cover {
  width: 100%;
  height: 120px;
}

.related-title {
  padding: 0 16px 16px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.6;
}

/* --- Cover Patterns (CSS-only gradients) --- */
.pattern-1 {
  background: linear-gradient(135deg, #7ec8e3 0%, #f8a5c2 50%, #f3a683 100%);
}

.pattern-2 {
  background: linear-gradient(135deg, #f8a5c2 0%, #f3a683 50%, #7ec8e3 100%);
}

.pattern-3 {
  background: linear-gradient(135deg, #f3a683 0%, #7ec8e3 50%, #f8a5c2 100%);
}

.pattern-4 {
  background: linear-gradient(135deg, #7ec8e3 0%, #5ab0d0 50%, #4a9ec0 100%);
}

.pattern-5 {
  background: linear-gradient(135deg, #a78bfa 0%, #f8a5c2 50%, #fef0f5 100%);
}

.pattern-6 {
  background: linear-gradient(135deg, #f3a683 0%, #fddb92 50%, #f8a5c2 100%);
}

.pattern-7 {
  background: linear-gradient(135deg, #4a9ec0 0%, #7ec8e3 50%, #d4f0f9 100%);
}

.pattern-8 {
  background: linear-gradient(135deg, #f8a5c2 0%, #f472b6 50%, #fef0f5 100%);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .post-header h1 {
    font-size: 1.8rem;
  }

  .post-cover {
    height: 280px;
  }
}

@media (max-width: 700px) {
  .blog-hero {
    padding: 100px 0 40px;
  }

  .blog-hero h1 {
    font-size: 1.8rem;
  }

  .blog-hero p {
    font-size: 0.95rem;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
  }

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

  .post-header h1 {
    font-size: 1.4rem;
  }

  .post-cover {
    height: 200px;
  }

  .post-content {
    font-size: 0.95rem;
  }

  .post-content h2 {
    font-size: 1.3rem;
  }

  .card-cover {
    height: 160px;
  }

  .blog-post {
    padding: 80px 0 40px;
  }
}
