/* ===== POST PAGE ===== */

.reading-progress {
  position: fixed;
  top: 64px;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--accent);
  z-index: 99;
  transition: width .1s linear;
}

/* HERO */
.post-hero {
  background: var(--dark);
  color: var(--white);
  padding: 120px 24px 72px;
}
.post-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: .82rem;
  color: rgba(255,255,255,.45);
}
.post-breadcrumb a { color: var(--gold); }
.post-breadcrumb a:hover { text-decoration: underline; }

.post-meta-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}
.post-read-time { font-size: .82rem; color: rgba(255,255,255,.45); }

.post-title {
  font-size: clamp(2rem, 5vw, 3.4rem);
  color: var(--white);
  margin-bottom: 24px;
  line-height: 1.12;
}
.post-title em { color: var(--gold); font-style: italic; }

.post-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,.65);
  max-width: 680px;
  line-height: 1.75;
  margin-bottom: 40px;
}

.post-author-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.author-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--dark);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .9rem;
  flex-shrink: 0;
}
.author-info { flex: 1; }
.author-info strong { display: block; color: var(--white); font-size: .95rem; }
.author-info span { font-size: .8rem; color: rgba(255,255,255,.5); }

.post-share { display: flex; gap: 8px; margin-left: auto; }
.share-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; font-weight: 700;
  transition: transform .2s, opacity .2s;
  text-decoration: none;
}
.share-btn:hover { transform: scale(1.1); }
.share-x { background: #000; color: #fff; }
.share-fb { background: #1877F2; color: #fff; }
.share-wa { background: #25D366; color: #fff; }

/* LAYOUT */
.post-layout { padding: 64px 0; }
.post-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 56px;
  align-items: start;
}

/* ARTICLE CONTENT */
.post-content {
  min-width: 0;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text);
}
.post-content h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--dark);
  margin: 56px 0 20px;
  padding-top: 16px;
  border-top: 2px solid var(--border);
}
.post-content h2:first-of-type { margin-top: 0; border-top: none; padding-top: 0; }
.post-content p { margin-bottom: 20px; color: var(--text); }
.post-content strong { color: var(--dark); }
.post-content a { color: var(--brand); text-decoration: underline; }
.post-content a:hover { color: var(--accent); }

.post-intro-box {
  background: var(--light);
  border: 1.5px solid var(--border);
  border-left: 4px solid var(--brand);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 24px 28px;
  margin-bottom: 48px;
}
.post-intro-box strong { display: block; margin-bottom: 12px; color: var(--dark); }
.post-intro-box ul { padding-left: 20px; }
.post-intro-box li { margin-bottom: 6px; font-size: .95rem; color: var(--text); }

/* CALLOUTS */
.post-callout {
  display: flex;
  gap: 16px;
  padding: 20px 24px;
  border-radius: var(--radius);
  margin: 32px 0;
  font-size: .95rem;
  line-height: 1.7;
}
.callout-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 2px; }
.callout-info { background: rgba(27,79,114,.07); border: 1px solid rgba(27,79,114,.18); }
.callout-warning { background: rgba(243,156,18,.08); border: 1px solid rgba(243,156,18,.25); }
.callout-tip { background: rgba(39,174,96,.07); border: 1px solid rgba(39,174,96,.2); }
.post-callout strong { color: var(--dark); }

/* RIGHTS GRID */
.rights-grid { display: flex; flex-direction: column; gap: 16px; margin: 24px 0 40px; }
.right-item {
  display: flex;
  gap: 20px;
  padding: 20px 24px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  align-items: start;
  background: var(--white);
  transition: box-shadow .2s;
}
.right-item:hover { box-shadow: var(--shadow); }
.right-num {
  font-family: 'Fraunces', serif;
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--accent);
  opacity: .35;
  min-width: 40px;
  line-height: 1;
  margin-top: 4px;
}
.right-item strong { display: block; color: var(--dark); margin-bottom: 6px; }
.right-item p { margin: 0; font-size: .9rem; color: var(--muted); }

/* TWO COL LIST */
.two-col-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 24px 0 40px;
}
.col-list {
  border-radius: var(--radius);
  padding: 20px 24px;
  border: 1.5px solid var(--border);
}
.col-list-ok { border-color: rgba(39,174,96,.3); background: rgba(39,174,96,.04); }
.col-list-no { border-color: rgba(231,76,60,.25); background: rgba(231,76,60,.04); }
.col-list-header {
  font-weight: 600;
  font-size: .9rem;
  margin-bottom: 14px;
  color: var(--dark);
}
.col-list ul { padding-left: 18px; margin: 0; }
.col-list li { font-size: .9rem; color: var(--muted); margin-bottom: 8px; line-height: 1.55; }

/* DOCS TABLE */
.docs-table { margin: 24px 0 40px; border-radius: var(--radius); overflow: hidden; border: 1.5px solid var(--border); }
.doc-row {
  display: grid;
  grid-template-columns: 32px 160px 1fr 160px;
  gap: 0;
  border-bottom: 1px solid var(--border);
}
.doc-row:last-child { border-bottom: none; }
.doc-header {
  background: var(--dark);
  color: var(--white);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.doc-row > * { padding: 14px 16px; font-size: .88rem; }
.doc-row:not(.doc-header):hover { background: var(--light); }
.doc-num { font-family: 'Fraunces', serif; font-weight: 900; color: var(--accent); font-size: 1.1rem; text-align: center; }
.doc-name { font-weight: 600; color: var(--dark); }
.doc-row:not(.doc-header) > *:nth-child(3) { color: var(--muted); line-height: 1.55; }
.doc-row:not(.doc-header) > *:last-child { color: var(--brand); font-size: .82rem; }

/* ERRORS */
.errors-list { display: flex; flex-direction: column; gap: 20px; margin: 24px 0 40px; }
.error-item {
  border: 1.5px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 24px 28px;
}
.error-header { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.error-num {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  background: var(--accent);
  color: var(--white);
  padding: 3px 10px;
  border-radius: 4px;
  white-space: nowrap;
}
.error-title { font-size: 1.05rem; font-weight: 600; color: var(--dark); }
.error-item > p { color: var(--muted); font-size: .92rem; margin-bottom: 14px; }
.error-fix {
  background: rgba(39,174,96,.06);
  border: 1px solid rgba(39,174,96,.2);
  border-radius: 6px;
  padding: 12px 16px;
  font-size: .88rem;
  color: var(--text);
  line-height: 1.6;
}

/* STEPS */
.steps-list { display: flex; flex-direction: column; gap: 0; margin: 24px 0 40px; position: relative; }
.steps-list::before {
  content: '';
  position: absolute;
  left: 19px; top: 20px; bottom: 20px;
  width: 2px;
  background: var(--border);
}
.step-item {
  display: flex;
  gap: 20px;
  padding: 0 0 28px;
  position: relative;
}
.step-item:last-child { padding-bottom: 0; }
.step-circle {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .95rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.step-item strong { display: block; color: var(--dark); margin-bottom: 6px; }
.step-item p { margin: 0; font-size: .9rem; color: var(--muted); line-height: 1.6; }

/* POST CTA */
.post-cta-box {
  background: var(--dark);
  color: var(--white);
  border-radius: 16px;
  padding: 40px 44px;
  margin: 48px 0;
  text-align: center;
}
.post-cta-box h3 { color: var(--white); margin-bottom: 12px; font-size: 1.5rem; }
.post-cta-box p { color: rgba(255,255,255,.65); margin-bottom: 24px; max-width: 480px; margin-left: auto; margin-right: auto; }

/* REFERENCES */
.post-references {
  border-top: 1px solid var(--border);
  padding-top: 32px;
  margin-top: 48px;
}
.post-references h4 { color: var(--dark); margin-bottom: 16px; font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; }
.post-references ol { padding-left: 20px; }
.post-references li { font-size: .82rem; color: var(--muted); margin-bottom: 10px; line-height: 1.6; }
.post-references a { color: var(--brand); }

/* SIDEBAR */
.post-sidebar { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 20px; }
.sidebar-card {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--white);
}

.author-big-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--dark);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.1rem;
  margin: 0 auto 16px;
}
.author-card { text-align: center; }
.author-card h4 { color: var(--dark); margin-bottom: 8px; }
.author-card p { font-size: .85rem; color: var(--muted); line-height: 1.6; margin-bottom: 16px; }

.author-social { display: flex; flex-direction: column; gap: 8px; }
.social-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: .85rem;
  font-weight: 500;
  transition: opacity .2s, transform .15s;
  text-decoration: none;
}
.social-link:hover { opacity: .85; transform: translateX(2px); }
.social-link span { font-size: 1rem; width: 20px; text-align: center; }
.social-x { background: #000; color: #fff; }
.social-fb { background: #1877F2; color: #fff; }
.social-yt { background: #FF0000; color: #fff; }

.follow-card { background: var(--light); text-align: center; }
.follow-icon { font-size: 2rem; margin-bottom: 12px; }
.follow-card h4 { color: var(--dark); margin-bottom: 8px; font-size: 1rem; }
.follow-card p { font-size: .82rem; color: var(--muted); margin-bottom: 16px; line-height: 1.6; }
.follow-btns { display: flex; flex-direction: column; gap: 8px; }
.follow-btn {
  padding: 10px 16px;
  border-radius: 8px;
  font-size: .85rem;
  font-weight: 600;
  text-align: center;
  transition: opacity .2s;
  text-decoration: none;
}
.follow-btn:hover { opacity: .85; }
.follow-btn-x { background: #000; color: #fff; }
.follow-btn-fb { background: #1877F2; color: #fff; }
.follow-btn-yt { background: #FF0000; color: #fff; }

.toc-card h4 { color: var(--dark); margin-bottom: 14px; font-size: .88rem; text-transform: uppercase; letter-spacing: .08em; }
.toc-nav { display: flex; flex-direction: column; gap: 2px; }
.toc-nav a {
  font-size: .83rem;
  color: var(--muted);
  padding: 7px 10px;
  border-radius: 6px;
  transition: background .15s, color .15s;
  text-decoration: none;
  line-height: 1.4;
}
.toc-nav a:hover { background: var(--light); color: var(--brand); }
.toc-nav a.active { background: rgba(27,79,114,.08); color: var(--brand); font-weight: 500; }

.brief-card { background: var(--dark); color: var(--white); border-color: var(--dark); }
.brief-badge {
  display: inline-block;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: var(--gold);
  color: var(--dark);
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
}
.brief-card h4 { color: var(--white); margin-bottom: 8px; }
.brief-card p { font-size: .85rem; color: rgba(255,255,255,.65); margin-bottom: 0; line-height: 1.6; }

/* SHARE FINAL */
.post-share-section { background: var(--light); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 32px 0; }
.share-final { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.share-final-text { flex: 1; }
.share-final-text strong { display: block; color: var(--dark); margin-bottom: 4px; }
.share-final-text span { font-size: .88rem; color: var(--muted); }
.share-final-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.share-btn-lg {
  padding: 11px 20px;
  border-radius: 8px;
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity .2s, transform .15s;
  white-space: nowrap;
}
.share-btn-lg:hover { opacity: .85; transform: translateY(-1px); }
.share-x-lg { background: #000; color: #fff; }
.share-fb-lg { background: #1877F2; color: #fff; }
.share-wa-lg { background: #25D366; color: #fff; }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .post-grid { grid-template-columns: 1fr; }
  .post-sidebar { position: static; }
  .doc-row { grid-template-columns: 32px 140px 1fr; }
  .doc-row > *:last-child { display: none; }
}
@media (max-width: 640px) {
  .post-hero { padding: 100px 20px 56px; }
  .two-col-list { grid-template-columns: 1fr; }
  .doc-row { grid-template-columns: 32px 1fr; }
  .doc-row > *:nth-child(3) { display: none; }
  .share-final { flex-direction: column; align-items: flex-start; }
  .post-cta-box { padding: 28px 24px; }
}
