/* ─── Telisco Blog Styles ─────────────────────────────────────────────────── */

/* ─── Blog Hero ───────────────────────────────────────────────────────────── */
.blog-hero {
  max-width: 700px; margin: 0 auto;
  padding: 4rem 2rem 2rem; text-align: center;
}
.blog-hero h1 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.15; font-weight: 400; letter-spacing: -0.5px;
  margin: 0.5rem 0 1rem;
}
.blog-hero p { font-size: 16px; color: var(--text-muted); margin-bottom: 2rem; }

.tag-filters { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.tag-btn {
  font-size: 13px; padding: 6px 14px;
  border: 0.5px solid var(--border); border-radius: 20px;
  background: var(--bg); color: var(--text-muted);
  cursor: pointer; font-family: inherit; transition: all 0.15s;
}
.tag-btn:hover { border-color: var(--blue); color: var(--blue); }
.tag-btn.active { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ─── Blog Grid ───────────────────────────────────────────────────────────── */
.blog-main { max-width: 1040px; margin: 0 auto; padding: 2rem 2rem 4rem; }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px; margin-bottom: 2rem;
}

/* ─── Post Card ───────────────────────────────────────────────────────────── */
.post-card {
  border: 0.5px solid var(--border); border-radius: var(--radius-lg);
  background: var(--bg); overflow: hidden; cursor: pointer;
  text-decoration: none; color: inherit; display: flex; flex-direction: column;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.post-card:hover { border-color: var(--blue); box-shadow: 0 4px 20px rgba(26,111,244,0.07); }
.post-cover {
  height: 180px; background: var(--bg-alt);
  background-size: cover; background-position: center;
  display: flex; align-items: center; justify-content: center;
}
.post-cover-placeholder { font-size: 36px; opacity: 0.25; }
.post-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.post-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 0.75rem; }
.post-tag {
  font-size: 11px; font-weight: 500; padding: 2px 8px; border-radius: 20px;
  background: var(--blue-light); color: var(--blue);
}
.post-title { font-size: 16px; font-weight: 500; line-height: 1.4; margin-bottom: 0.5rem; }
.post-excerpt { font-size: 13px; color: var(--text-muted); line-height: 1.6; flex: 1; margin-bottom: 1rem; }
.post-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-hint); }

/* ─── Skeleton ────────────────────────────────────────────────────────────── */
.post-skeleton {
  border-radius: var(--radius-lg); height: 320px;
  background: linear-gradient(90deg, var(--bg-alt) 25%, #f0f2f5 50%, var(--bg-alt) 75%);
  background-size: 200% 100%; animation: shimmer 1.4s infinite;
}
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

.no-posts { text-align: center; padding: 4rem; color: var(--text-muted); }
.load-more-wrap { display: flex; justify-content: center; margin-top: 1rem; }
.btn-ghost-outline {
  padding: 11px 28px; border: 0.5px solid var(--border);
  border-radius: var(--radius); background: var(--bg);
  font-size: 14px; cursor: pointer; color: var(--text-muted);
  font-family: inherit; transition: all 0.15s;
}
.btn-ghost-outline:hover { border-color: var(--blue); color: var(--blue); }

/* ─── Article Hero ────────────────────────────────────────────────────────── */
.article-hero {
  background: var(--bg-alt);
  background-size: cover; background-position: center;
  padding: 4rem 2rem 3rem; position: relative;
}
.article-hero.has-image {
  min-height: 380px; display: flex; align-items: flex-end;
}
.article-hero.has-image::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.1) 60%);
}
.article-hero.has-image .article-hero-inner { position: relative; }
.article-hero.has-image h1,
.article-hero.has-image .article-meta { color: #fff; }
.article-hero.has-image .post-tag { background: rgba(255,255,255,0.2); color: #fff; }

.article-hero-inner { max-width: 760px; margin: 0 auto; }
.article-hero h1 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(26px, 4vw, 44px); font-weight: 400;
  line-height: 1.2; letter-spacing: -0.5px;
  margin: 0.75rem 0 1rem;
}
.article-meta { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); flex-wrap: wrap; }
.meta-dot { color: var(--text-hint); }

/* ─── Article Layout ──────────────────────────────────────────────────────── */
.article-layout {
  display: grid; grid-template-columns: 1fr 280px;
  gap: 3rem; max-width: 1040px; margin: 3rem auto;
  padding: 0 2rem;
}

/* ─── Article Body (rich text) ───────────────────────────────────────────── */
.article-body { min-width: 0; }
.article-body h2 { font-size: 22px; font-weight: 500; margin: 2rem 0 1rem; letter-spacing: -0.3px; }
.article-body h3 { font-size: 18px; font-weight: 500; margin: 1.75rem 0 0.75rem; }
.article-body p  { font-size: 16px; line-height: 1.8; color: #333; margin-bottom: 1.25rem; }
.article-body ul, .article-body ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.article-body li { font-size: 16px; line-height: 1.8; color: #333; margin-bottom: 0.4rem; }
.article-body a  { color: var(--blue); text-decoration: underline; }
.article-body strong { font-weight: 500; }
.article-body blockquote {
  border-left: 3px solid var(--blue); padding: 0.75rem 1.25rem;
  background: var(--blue-light); border-radius: 0 8px 8px 0;
  margin: 1.5rem 0; font-style: italic; color: var(--text-muted);
}
.article-body img { max-width: 100%; border-radius: var(--radius); margin: 1.5rem 0; }
.article-body hr { border: none; border-top: 0.5px solid var(--border); margin: 2rem 0; }
.article-body table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; font-size: 14px; }
.article-body th { background: var(--bg-alt); padding: 8px 12px; text-align: left; font-weight: 500; border-bottom: 0.5px solid var(--border); }
.article-body td { padding: 8px 12px; border-bottom: 0.5px solid var(--border); }

/* ─── Sidebar ─────────────────────────────────────────────────────────────── */
.article-sidebar { position: sticky; top: 80px; height: fit-content; }
.sidebar-cta {
  background: var(--blue); color: #fff;
  border-radius: var(--radius-lg); padding: 1.5rem;
  margin-bottom: 1rem;
}
.sidebar-cta-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.7; margin-bottom: 0.5rem; }
.sidebar-cta h4 { font-size: 17px; font-weight: 500; line-height: 1.3; margin-bottom: 0.5rem; }
.sidebar-cta p { font-size: 13px; opacity: 0.8; }
.sidebar-cta .btn-primary { background: #fff; color: var(--blue); }
.sidebar-cta .btn-primary:hover { background: var(--blue-light); }

.sidebar-related { background: var(--bg); border: 0.5px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem; }
.sidebar-related h4 { font-size: 14px; font-weight: 500; margin-bottom: 1rem; }
.related-item { display: flex; flex-direction: column; gap: 2px; padding: 10px 0; border-bottom: 0.5px solid var(--border); text-decoration: none; }
.related-item:last-child { border-bottom: none; }
.related-title { font-size: 13px; color: var(--text); line-height: 1.4; }
.related-title:hover { color: var(--blue); }
.related-date { font-size: 11px; color: var(--text-hint); }

/* ─── Nav Blog Link ───────────────────────────────────────────────────────── */
.nav-links a[href="/blog"] { color: var(--blue); }

/* ─── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .article-layout { grid-template-columns: 1fr; gap: 2rem; }
  .article-sidebar { position: static; }
}
