/* ============================
   Blog / News Page
   Extends theme.css
   ============================ */

/* HERO */
.bl-hero {
  padding: 140px 60px 60px;
  position: relative;
}

.bl-hero::before {
  content: '';
  position: absolute;
  top: 40px;
  right: -80px;
  width: 55%;
  height: 70%;
  background: radial-gradient(ellipse at center, var(--accent-dim) 0%, transparent 65%);
  pointer-events: none;
}

.bl-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.bl-nav { margin-bottom: 24px; }

.loc-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}
.loc-back:hover { color: var(--fg); }
.loc-back svg { width: 14px; height: 14px; }

.bl-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.loc-eyebrow-tag {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}

.loc-eyebrow-sep {
  width: 32px;
  height: 1px;
  background: var(--fg-dim);
}

.bl-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 300;
  line-height: 1.05;
  color: var(--fg);
  margin-bottom: 16px;
}

.bl-title em {
  font-style: italic;
  color: var(--accent);
}

.bl-tagline {
  font-size: 1rem;
  color: var(--fg-muted);
  max-width: 520px;
  line-height: 1.7;
  margin-top: 8px;
}

/* BODY GRID */
.bl-body {
  padding: 40px 60px 80px;
}

.bl-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

/* FEATURED CARD — spans full width on first row */
.bl-card-featured {
  grid-column: 1 / -1;
}

.bl-card-featured .bl-card-link {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 360px;
}

.bl-card-featured .bl-card-img {
  height: 100%;
  min-height: 360px;
}

.bl-card-featured .bl-card-body {
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bl-card-featured .bl-card-title {
  font-size: 2rem;
}

.bl-card-featured .bl-card-excerpt {
  font-size: 1rem;
  -webkit-line-clamp: 4;
}

/* CARD */
.bl-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.bl-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 24px var(--accent-glow);
}

.bl-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

/* COVER IMAGE */
.bl-card-img {
  height: 200px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

.bl-card-img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
}

.bl-card-img-placeholder svg {
  width: 64px;
  height: 64px;
  opacity: 0.5;
}

/* CARD BODY */
.bl-card-body {
  padding: 20px 24px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bl-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  color: var(--fg-muted);
  letter-spacing: 0.04em;
}

.bl-card-date { color: var(--accent); font-weight: 500; }

.bl-card-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--fg);
  line-height: 1.3;
  margin: 0;
}

.bl-card-excerpt {
  font-size: 0.85rem;
  color: var(--fg-muted);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  flex: 1;
}

.bl-card-cta {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-top: auto;
}

/* EMPTY STATE */
.bl-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  color: var(--fg-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.bl-empty svg {
  width: 48px;
  height: 48px;
  opacity: 0.4;
}

.bl-empty p {
  font-size: 0.95rem;
  max-width: 360px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .bl-hero { padding: 100px 24px 40px; }
  .bl-body { padding: 24px 24px 60px; }
  .bl-card-featured .bl-card-link { grid-template-columns: 1fr; }
  .bl-card-featured .bl-card-img { min-height: 220px; }
  .blp-hero { padding: 100px 24px 40px; }
  .blp-title { font-size: 2rem; }
  .blp-article { padding: 32px 24px 64px; }
  .blp-share { flex-wrap: wrap; }
}

/* ============================
   Blog Post Detail Page
   ============================ */

.blp-hero {
  padding: 140px 60px 40px;
  position: relative;
}

.blp-hero::before {
  content: '';
  position: absolute;
  top: 40px;
  right: -80px;
  width: 55%;
  height: 60%;
  background: radial-gradient(ellipse at center, var(--accent-dim) 0%, transparent 65%);
  pointer-events: none;
}

.blp-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.blp-hero-img {
  display: block;
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: 4px;
  margin-top: 16px;
}

.blp-hero-img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  min-height: 320px;
}

.blp-hero-img-placeholder svg {
  width: 96px;
  height: 96px;
  opacity: 0.5;
}

.blp-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.72rem;
  color: var(--fg-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 20px;
}

.blp-meta-author {
  color: var(--fg-muted);
}

.blp-article {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 60px 80px;
}

.blp-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 600;
  line-height: 1.1;
  color: var(--fg);
  margin: 0 0 24px;
  letter-spacing: -0.01em;
}

.blp-excerpt {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--fg-muted);
  line-height: 1.6;
  max-width: 760px;
  margin: 0 0 40px;
}

.blp-body {
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.8;
  font-size: 1.05rem;
  color: var(--fg);
}

.blp-body h1,
.blp-body h2,
.blp-body h3 {
  font-family: var(--font-display);
  color: var(--fg);
  letter-spacing: -0.01em;
  margin-top: 1.6em;
  margin-bottom: 0.6em;
  line-height: 1.25;
}

.blp-body h1 { font-size: 2rem; font-weight: 600; }
.blp-body h2 { font-size: 1.6rem; font-weight: 600; }
.blp-body h3 { font-size: 1.25rem; font-weight: 600; }

.blp-body p {
  margin: 0 0 1.25em;
}

.blp-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.blp-body a:hover {
  text-decoration: none;
}

.blp-body blockquote {
  margin: 1.5em 0;
  padding: 0.5em 0 0.5em 20px;
  border-left: 3px solid var(--accent);
  font-style: italic;
  color: var(--fg-muted);
}

.blp-body img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
  margin: 1.5em auto;
}

.blp-body pre {
  background: var(--bg-card);
  padding: 16px 20px;
  border-radius: 4px;
  overflow-x: auto;
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 1.5em 0;
}

.blp-body code {
  font-family: 'SFMono-Regular', Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--bg-card);
  padding: 2px 6px;
  border-radius: 3px;
}

.blp-body pre code {
  background: none;
  padding: 0;
}

.blp-body ul,
.blp-body ol {
  margin: 0 0 1.25em;
  padding-left: 1.5em;
}

.blp-body li {
  margin-bottom: 0.4em;
}

.blp-share {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 760px;
  margin: 48px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.blp-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--border);
  background: transparent;
  border-radius: 999px;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.blp-share-btn svg {
  width: 14px;
  height: 14px;
}

.blp-share-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.blp-share-copied,
.blp-share-copied:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}