/* Design4Future — Blog (/insights/) styles.
   Loaded only by the insights index and blog post pages (post.njk / insights.njk).
   Palette matches the site's locked dark theme (see styles/main.css). */

.blog-wrap {
  /* Top padding must clear the fixed header (--nav-height: 96px desktop,
     72px under the <=768px rules in main.css) plus breathing room —
     plain 3.5rem left the breadcrumb hidden behind the header. */
  padding: calc(var(--nav-height) + 2rem) 0 4.5rem;
}

.post-container {
  max-width: 820px;
}

/* ---------- Index ---------- */

.blog-index-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.blog-index-title {
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0.75rem 0 0.5rem;
}

.blog-index-intro {
  color: #9ca3af;
  font-size: 1.1rem;
  max-width: 640px;
  margin: 0 auto;
}

.insights-list {
  display: grid;
  gap: 1.25rem;
  max-width: 820px;
  margin: 0 auto;
}

.insight-card {
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1.5rem 1.75rem;
}

.insight-card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #9ca3af;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.insight-lang-badge {
  border: 1px solid rgba(0, 240, 255, 0.35);
  color: #00f0ff;
  border-radius: 999px;
  padding: 1px 10px;
  font-size: 0.8rem;
}

.insight-card-title {
  font-size: 1.45rem;
  line-height: 1.3;
  margin: 0 0 0.5rem;
}

.insight-card-title a {
  color: inherit;
  text-decoration: none;
}

.insight-card-title a:hover {
  color: #00f0ff;
}

.insight-card-excerpt {
  color: #9ca3af;
  margin: 0 0 0.75rem;
  line-height: 1.65;
}

.insight-read-more {
  color: #00f0ff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.insights-empty {
  color: #9ca3af;
  text-align: center;
  padding: 2rem 0;
}

/* ---------- Single post ---------- */

.post-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  color: #9ca3af;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.post-breadcrumb a {
  color: #9ca3af;
  text-decoration: none;
}

.post-breadcrumb a:hover {
  color: #00f0ff;
}

.post-breadcrumb-sep {
  font-size: 0.65rem;
}

.post-meta {
  color: #9ca3af;
  font-size: 0.95rem;
  margin: 0 0 0.5rem;
}

.post-meta-sep {
  margin: 0 0.4rem;
}

.post-article {
  line-height: 1.75;
  font-size: 1.05rem;
}

.post-article h1 {
  font-size: clamp(1.8rem, 4.5vw, 2.5rem);
  line-height: 1.25;
  margin: 0.5rem 0 1.25rem;
}

.post-article h2 {
  font-size: 1.5rem;
  margin: 2.25rem 0 0.75rem;
}

.post-article h3 {
  font-size: 1.2rem;
  margin: 1.75rem 0 0.5rem;
}

.post-article p {
  margin: 0 0 1.1rem;
}

.post-article a {
  color: #00f0ff;
}

.post-article ul,
.post-article ol {
  margin: 0 0 1.1rem;
  padding-left: 1.4rem;
}

.post-article li {
  margin-bottom: 0.4rem;
}

.post-article table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0 1.5rem;
  font-size: 0.98rem;
}

.post-article th,
.post-article td {
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.65rem 0.9rem;
  text-align: left;
  vertical-align: top;
}

.post-article th {
  background: #0d1420;
  color: #00f0ff;
}

.post-article blockquote {
  border-left: 3px solid #00f0ff;
  margin: 1.25rem 0;
  padding: 0.25rem 0 0.25rem 1rem;
  color: #d1d5db;
}

.post-share {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.post-share-label {
  color: #9ca3af;
  font-weight: 600;
  margin-right: 0.25rem;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #111827;
  color: #e5e7eb;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
}

.share-btn:hover {
  border-color: rgba(0, 240, 255, 0.5);
  color: #00f0ff;
}

.post-lang-switch {
  margin-top: 2.5rem;
}

.post-lang-switch a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(0, 240, 255, 0.35);
  color: #00f0ff;
  border-radius: 999px;
  padding: 0.55rem 1.2rem;
  text-decoration: none;
  font-weight: 600;
}

.post-back {
  margin-top: 1.5rem;
}

.post-back a {
  color: #9ca3af;
  text-decoration: none;
}

.post-back a:hover {
  color: #00f0ff;
}
