/* ── Blog article styles ── */

/* Breadcrumb */
.article-breadcrumb {
  padding: 5.5rem clamp(1rem, 5vw, 3rem) 0;
  max-width: 760px;
  margin: 0 auto;
}
.article-breadcrumb a {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  transition: color 0.2s;
}
.article-breadcrumb a:hover {
  color: var(--text);
}
.article-breadcrumb a svg {
  flex-shrink: 0;
  transition: transform 0.2s;
}
.article-breadcrumb a:hover svg {
  transform: translateX(-3px);
}
.article-breadcrumb span {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Article layout */
.article-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem clamp(1rem, 5vw, 3rem) 5rem;
}

/* Header */
.article-header {
  margin-bottom: 2.5rem;
}

.article-header .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.article-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--blue);
}

.article-title {
  font-family: "Unbounded", sans-serif;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.article-meta {
  color: var(--text-muted);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.article-meta time::before {
  content: "📅\00A0";
}
.article-meta .read-time::before {
  content: "⌛\00A0";
}

.article-cover {
  width: 100%;
  border-radius: 1rem;
  margin: 1.5rem 0 2.5rem;
  aspect-ratio: 16/9;
  object-fit: cover;
}

/* Prose */
.article-body {
  line-height: 1.8;
  font-size: 1.05rem;
}

.article-body h2 {
  font-family: "Unbounded", sans-serif;
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  font-weight: 800;
  margin: 2.5rem 0 0.75rem;
  line-height: 1.3;
}
.article-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 2rem 0 0.5rem;
}

.article-body p {
  margin-bottom: 1.25rem;
}
.article-body p:last-child {
  margin-bottom: 0;
}

.article-body a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.article-body a:hover {
  color: var(--pink);
}

.article-body ul,
.article-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}
.article-body li {
  margin-bottom: 0.4rem;
}

.article-body blockquote {
  border-left: 3px solid var(--blue);
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  background: rgba(81, 112, 255, 0.07);
  border-radius: 0 0.5rem 0.5rem 0;
  color: var(--text-muted);
  font-style: italic;
}
.article-body blockquote p {
  margin-bottom: 0;
}

.article-body img {
  width: 100%;
  border-radius: 0.75rem;
  margin: 1.5rem 0;
}

.article-body code {
  background: rgba(255, 255, 255, 0.08);
  padding: 0.15em 0.4em;
  border-radius: 0.3rem;
  font-size: 0.9em;
  font-family: "JetBrains Mono", "Fira Code", monospace;
}
.article-body pre {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 0.75rem;
  padding: 1.25rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}
.article-body pre code {
  background: none;
  padding: 0;
  font-size: 0.875rem;
}

.article-body hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin: 2.5rem 0;
}

/* CTA block at article end */
.article-cta {
  margin-top: 3rem;
  padding: 2rem;
  background: var(--bg-card);
  border-radius: 1.25rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.article-cta p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}
.article-cta a {
  display: inline-block;
  background: var(--grad);
  color: #fff;
  text-decoration: none;
  padding: 0.7rem 1.75rem;
  border-radius: 2rem;
  font-weight: 700;
  font-size: 0.95rem;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.article-cta a:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 24px rgba(81, 112, 255, 0.35);
}

/* ── Blog listing page ── */
.blog-hero {
  padding: clamp(7rem, 14vh, 10rem) clamp(1rem, 5vw, 3rem) clamp(2rem, 5vw, 4rem);
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}
.blog-hero h1 {
  font-family: "Unbounded", sans-serif;
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}
.blog-hero p {
  color: var(--text-muted);
  font-size: 1rem;
}

.blog-grid-section {
  padding: 0 clamp(1rem, 5vw, 3rem) clamp(4rem, 8vw, 7rem);
  max-width: 1200px;
  margin: 0 auto;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 1.5rem;
  padding: 1.75rem;
  text-decoration: none;
  color: inherit;
  transition:
    transform 0.3s,
    box-shadow 0.3s,
    border-color 0.3s;
  position: relative;
  overflow: hidden;
}
.blog-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad);
  opacity: 0;
  transition: opacity 0.3s;
}
.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.12);
}
.blog-card:hover::before {
  opacity: 1;
}

.blog-card-tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.6rem;
}
.blog-card h2 {
  font-family: "Unbounded", sans-serif;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 0.6rem;
}
.blog-card p {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1rem;
}
.blog-card-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  gap: 0.75rem;
}
.blog-card-meta span:first-child::before { content: '⌛\00A0'; }
.blog-card-meta span:nth-child(2) {
  color: var(--blue);
  font-weight: 700;
  background: rgba(81, 112, 255, 0.12);
  padding: 0.1em 0.5em;
  border-radius: 1em;
}

/* Practice block */
.practice-block {
  background: rgba(81, 112, 255, 0.07);
  border: 1px solid rgba(81, 112, 255, 0.2);
  border-radius: 1rem;
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
}
.practice-block h2 {
  margin-top: 0;
}

.blog-empty {
  color: var(--text-muted);
  text-align: center;
  padding: 4rem 0;
  font-size: 0.95rem;
}

/* ── Related article block ── */
.article-related {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.article-related-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.article-related-link {
  font-family: "Unbounded", sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  line-height: 1.35;
  transition: color 0.2s;
}
.article-related-link:hover {
  color: var(--blue);
}
