/* ═══════════════════════════════════════════════
   PROKLISI — Blog stylesheet
   Extends style.css. Dark glassmorphism, editorial.
═══════════════════════════════════════════════ */

/* ── HERO ── */
.blog-hero {
  position: relative;
  padding: 170px 0 70px;
  text-align: center;
  overflow: hidden;
}
.blog-hero::before {
  content: '';
  position: absolute;
  top: -40px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 620px;
  background: radial-gradient(ellipse, rgba(108,71,255,0.16) 0%, rgba(224,90,16,0.05) 45%, transparent 72%);
  pointer-events: none;
}
.blog-hero .container { position: relative; z-index: 2; }
.blog-hero h1 {
  font-family: var(--fh);
  font-size: clamp(2rem, 4.6vw, 3.5rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.02em;
  margin-bottom: 22px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.blog-hero .lede {
  color: var(--text-m);
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.08rem;
  line-height: 1.75;
}
.post-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 30px;
  font-family: var(--fh);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-s);
}
.post-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--p3); opacity: .7; }

/* ── PROGRESS BAR ── */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: var(--grd);
  z-index: 9997;
  transition: width .1s linear;
}

/* ── BREADCRUMB ── */
.breadcrumb {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 48px;
  font-size: .78rem;
  color: var(--text-s);
  letter-spacing: .02em;
}
.breadcrumb a { color: var(--text-m); transition: color .3s; }
.breadcrumb a:hover { color: var(--p3); }

/* ── ARTICLE ── */
.article-wrap { padding: 56px 0 30px; }
.article {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 48px;
}
.article > p {
  color: var(--text-m);
  font-size: 1.04rem;
  line-height: 1.85;
  margin-bottom: 22px;
}
.article > p strong, .article li strong { color: var(--text); font-weight: 600; }
.article h2 {
  font-family: var(--fh);
  font-size: clamp(1.5rem, 3vw, 2.05rem);
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--text);
  margin: 54px 0 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--glass-b);
}
.article h3 {
  font-family: var(--fh);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin: 34px 0 12px;
}
.article ul, .article ol { list-style: none; margin: 0 0 24px; padding: 0; }
.article ol { counter-reset: pk; }
.article li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 13px;
  color: var(--text-m);
  font-size: 1.01rem;
  line-height: 1.78;
}
.article ul li::before {
  content: '';
  position: absolute;
  left: 3px; top: 12px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--grd);
}
.article ol li { counter-increment: pk; }
.article ol li::before {
  content: counter(pk);
  position: absolute;
  left: 0; top: 3px;
  width: 21px; height: 21px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--p1), var(--p2));
  color: #fff;
  font-family: var(--fh);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.article a { color: var(--p3); border-bottom: 1px solid rgba(71,255,239,.3); transition: color .3s, border-color .3s; }
.article a:hover { color: var(--p2); border-color: var(--p2); }

/* ── CALLOUT ── */
.callout {
  border-left: 2px solid var(--p1);
  background: linear-gradient(90deg, rgba(108,71,255,.09), rgba(71,255,239,.02));
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 22px 26px;
  margin: 32px 0;
}
.callout p { color: var(--text-m); font-size: 1rem; line-height: 1.75; margin: 0; }
.callout p + p { margin-top: 12px; }
.callout strong { color: var(--text); }

/* ── TAKEAWAYS ── */
.takeaways {
  background: var(--glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-b);
  border-radius: var(--radius);
  padding: 28px 30px;
  margin: 36px 0;
}
.takeaways h4 {
  font-family: var(--fh);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  background: var(--grd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}
.takeaways ul { margin-bottom: 0; }
.takeaways li:last-child { margin-bottom: 0; }

/* ── TABLE ── */
.table-wrap {
  overflow-x: auto;
  margin: 32px 0;
  border: 1px solid var(--glass-b);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.02);
}
.article table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 520px; }
.article thead th {
  font-family: var(--fh);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text);
  text-align: left;
  padding: 15px 18px;
  background: rgba(108,71,255,.09);
}
.article tbody td {
  padding: 13px 18px;
  border-top: 1px solid var(--glass-b);
  color: var(--text-m);
  line-height: 1.65;
}
.article tbody tr:hover td { background: rgba(255,255,255,.02); }

/* ── INLINE CTA ── */
.inline-cta {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--glass-b);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(108,71,255,.14), rgba(224,90,16,.08));
  padding: 40px 36px;
  margin: 46px 0;
  text-align: center;
}
.inline-cta::after {
  content: '';
  position: absolute;
  top: -60%; right: -20%;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(71,255,239,.14), transparent 70%);
  pointer-events: none;
}
.inline-cta h3 {
  position: relative;
  font-family: var(--fh);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -.01em;
  margin-bottom: 12px;
}
.inline-cta p {
  position: relative;
  color: var(--text-m);
  font-size: .98rem;
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto 26px;
}
.cta-row { position: relative; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── FAQ ── */
.faq-section { max-width: 780px; margin: 0 auto; padding: 0 48px; }
.faq-section > h2 {
  font-family: var(--fh);
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -.02em;
  margin: 56px 0 24px;
}
.faq-item {
  border: 1px solid var(--glass-b);
  background: var(--glass);
  border-radius: var(--radius-sm);
  padding: 22px 26px;
  margin-bottom: 14px;
}
.faq-item h3 { font-family: var(--fh); font-size: 1.02rem; font-weight: 700; margin-bottom: 10px; }
.faq-item p { color: var(--text-m); font-size: .96rem; line-height: 1.75; }

/* ── TAGS ── */
.tag-row { display: flex; flex-wrap: wrap; gap: 9px; max-width: 780px; margin: 44px auto 0; padding: 0 48px; }
.tag {
  font-family: var(--fh);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-m);
  border: 1px solid var(--glass-b);
  background: var(--glass);
  padding: 7px 15px;
  border-radius: 100px;
}

/* ── POST CARDS ── */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 28px;
  border: 1px solid var(--glass-b);
  background: var(--glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: var(--radius);
  transition: transform .45s var(--ease), border-color .35s, box-shadow .35s;
  overflow: hidden;
}
.post-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(108,71,255,.1), transparent 60%);
  opacity: 0;
  transition: opacity .4s;
  pointer-events: none;
}
.post-card:hover { transform: translateY(-6px); border-color: rgba(108,71,255,.45); box-shadow: 0 20px 60px rgba(108,71,255,.18); }
.post-card:hover::before { opacity: 1; }
.post-card .cat {
  position: relative;
  font-family: var(--fh);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  background: var(--grd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 14px;
}
.post-card h3 {
  position: relative;
  font-family: var(--fh);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -.01em;
  margin-bottom: 11px;
}
.post-card p { position: relative; color: var(--text-m); font-size: .88rem; line-height: 1.7; flex-grow: 1; }
.post-card .read {
  position: relative;
  margin-top: 18px;
  font-family: var(--fh);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--p3);
}

/* Featured card */
.post-card.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 36px;
  align-items: center;
  padding: 46px 44px;
  background: linear-gradient(135deg, rgba(108,71,255,.16), rgba(224,90,16,.08));
}
.post-card.featured h3 { font-size: 1.9rem; line-height: 1.18; }
.post-card.featured p { font-size: .98rem; }
.featured-badge {
  display: inline-block;
  font-family: var(--fh);
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text);
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.06);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}

/* ── INDEX ── */
.blog-index-section { padding: 30px 0 100px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 46px; }
.filter-btn {
  font-family: var(--fh);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-m);
  border: 1px solid var(--glass-b);
  background: var(--glass);
  padding: 10px 20px;
  border-radius: 100px;
  transition: color .3s, border-color .3s, background .3s, transform .3s var(--ease);
}
.filter-btn:hover { transform: translateY(-2px); color: var(--text); border-color: rgba(108,71,255,.45); }
.filter-btn.active { color: #fff; background: linear-gradient(135deg, var(--p1), var(--p2)); border-color: transparent; }
.post-card.hidden { display: none; }

/* ── RELATED ── */
.related-section { padding: 80px 0 100px; border-top: 1px solid var(--glass-b); margin-top: 70px; }
.related-section h2 { font-family: var(--fh); font-size: 1.8rem; font-weight: 800; letter-spacing: -.02em; margin-bottom: 10px; }
.related-section .sub { color: var(--text-m); font-size: .95rem; margin-bottom: 38px; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .post-card.featured { grid-template-columns: 1fr; gap: 20px; padding: 34px 30px; }
  .post-card.featured h3 { font-size: 1.5rem; }
}
@media (max-width: 720px) {
  .blog-hero { padding: 140px 0 50px; }
  .article, .faq-section, .tag-row, .breadcrumb { padding-left: 24px; padding-right: 24px; }
  .post-grid { grid-template-columns: 1fr; }
  .inline-cta { padding: 30px 24px; }
  .related-section { padding: 60px 0 70px; }
}
