/* =========================================
   DARKHORSE.AL — Blog / Tips Styles
   /sq/tips/post.css
   ========================================= */

/* ── Post hero ──────────────────────────────────────────── */
.post-hero {
  padding: 160px 0 80px;
  position: relative;
  overflow: hidden;
  background: var(--bg-deeper);
  border-bottom: 1px solid var(--border);
}
.post-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 70% at 70% 40%, rgba(101,59,20,0.18) 0%, transparent 65%),
    radial-gradient(ellipse 40% 40% at 10% 80%, rgba(91,64,33,0.1) 0%, transparent 55%);
}
.post-hero-inner { position: relative; z-index: 2; }

.post-category {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(101,59,20,0.2);
  border: 1px solid var(--border-glow);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
}

.post-title {
  font-family: var(--font-head);
  font-size: clamp(36px, 5.5vw, 72px);
  line-height: 1.05; letter-spacing: -1.5px;
  color: var(--text-light);
  max-width: 800px;
  margin-bottom: 24px;
}
.post-title em { font-style: normal; color: var(--accent); }

.post-excerpt {
  font-size: 18px; color: var(--text-muted);
  line-height: 1.75; max-width: 620px;
  margin-bottom: 36px; font-weight: 300;
}

.post-meta {
  display: flex; align-items: center; gap: 24px;
  flex-wrap: wrap;
}
.post-meta-author {
  display: flex; align-items: center; gap: 12px;
}
.author-avatar-sm {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-size: 16px; color: #fff;
  flex-shrink: 0;
}
.author-info-name {
  font-size: 14px; font-weight: 600; color: var(--text-light);
  display: block;
}
.author-info-role {
  font-size: 12px; color: var(--text-dim);
  display: block; margin-top: 1px;
}
.post-meta-divider {
  width: 1px; height: 32px;
  background: var(--border); flex-shrink: 0;
}
.post-meta-item {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--text-dim);
}
.post-meta-item span:first-child { font-size: 15px; }

/* ── Post layout ────────────────────────────────────────── */
.post-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 60px;
  align-items: start;
  padding: 80px 0 100px;
}

/* ── Article body ───────────────────────────────────────── */
.post-body { min-width: 0; }

.post-body h2 {
  font-family: var(--font-head);
  font-size: clamp(24px, 3vw, 36px);
  letter-spacing: -0.5px;
  color: var(--text-light);
  margin: 56px 0 20px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.post-body h2:first-child { margin-top: 0; border-top: none; }

.post-body h3 {
  font-family: var(--font-head);
  font-size: 22px; color: var(--text-light);
  margin: 36px 0 14px;
}

.post-body p {
  font-size: 16px; color: var(--text-muted);
  line-height: 1.85; margin-bottom: 22px;
}

.post-body strong { color: var(--text-light); font-weight: 600; }

.post-body a {
  color: var(--accent); border-bottom: 1px solid rgba(139,102,56,0.35);
  transition: border-color 0.3s, color 0.3s;
}
.post-body a:hover { color: var(--text-light); border-color: var(--text-light); }

.post-body ul, .post-body ol {
  margin: 0 0 22px 0; padding-left: 0;
  list-style: none;
}
.post-body ul li, .post-body ol li {
  position: relative;
  padding: 10px 0 10px 28px;
  font-size: 16px; color: var(--text-muted);
  line-height: 1.7;
  border-bottom: 1px solid rgba(139,102,56,0.08);
}
.post-body ul li:last-child,
.post-body ol li:last-child { border-bottom: none; }
.post-body ul li::before {
  content: '→';
  position: absolute; left: 0;
  color: var(--accent); font-weight: 700;
}
.post-body ol { counter-reset: ol-counter; }
.post-body ol li { counter-increment: ol-counter; }
.post-body ol li::before {
  content: counter(ol-counter) '.';
  position: absolute; left: 0;
  color: var(--accent); font-weight: 700; font-size: 14px;
}

/* Callout / tip box */
.callout {
  background: rgba(101,59,20,0.12);
  border: 1px solid var(--border-glow);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: 20px 24px;
  margin: 32px 0;
}
.callout p { margin: 0; color: var(--text-muted); font-size: 15px; line-height: 1.75; }
.callout-label {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); display: block; margin-bottom: 8px;
}

/* Stat highlight */
.stat-highlight {
  display: flex; gap: 24px; flex-wrap: wrap;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px; margin: 36px 0;
}
.stat-highlight-item { flex: 1; min-width: 120px; text-align: center; }
.stat-highlight-num {
  font-family: var(--font-head);
  font-size: 40px; color: var(--accent);
  display: block; line-height: 1;
}
.stat-highlight-label {
  font-size: 12px; color: var(--text-dim);
  text-transform: uppercase; letter-spacing: 0.1em;
  margin-top: 6px; display: block;
}

/* Step cards */
.steps { display: flex; flex-direction: column; gap: 16px; margin: 32px 0; }
.step-card {
  display: flex; gap: 20px; align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px; padding: 24px 28px;
  transition: border-color 0.3s, transform 0.3s;
}
.step-card:hover {
  border-color: var(--border-glow);
  transform: translateX(4px);
}
.step-num {
  font-family: var(--font-head);
  font-size: 32px; color: rgba(139,102,56,0.35);
  line-height: 1; flex-shrink: 0; width: 40px;
}
.step-content h4 {
  font-family: var(--font-head);
  font-size: 17px; color: var(--text-light);
  margin-bottom: 6px;
}
.step-content p {
  margin: 0; font-size: 14px;
  color: var(--text-muted); line-height: 1.7;
}

/* ── Sidebar ────────────────────────────────────────────── */
.post-sidebar { position: sticky; top: 100px; }

.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px; padding: 28px;
  margin-bottom: 24px; position: relative; overflow: hidden;
}
.sidebar-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.sidebar-card h4 {
  font-family: var(--font-head);
  font-size: 14px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--white);
  margin-bottom: 16px;
}

/* TOC */
.toc-list { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.toc-list li a {
  display: block; padding: 8px 12px;
  font-size: 13px; color: var(--text-muted);
  border-radius: 6px; border-bottom: none;
  transition: background 0.25s, color 0.25s;
}
.toc-list li a:hover,
.toc-list li a.active {
  background: rgba(101,59,20,0.15);
  color: var(--accent);
}

/* Related posts */
.related-post {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid rgba(139,102,56,0.1);
}
.related-post:last-child { border-bottom: none; padding-bottom: 0; }
.related-post-icon {
  width: 40px; height: 40px; border-radius: 8px;
  background: rgba(101,59,20,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.related-post-title {
  font-size: 13px; color: var(--text-muted);
  line-height: 1.5; transition: color 0.3s;
}
.related-post:hover .related-post-title { color: var(--accent); }

/* CTA sidebar */
.sidebar-cta {
  background: linear-gradient(135deg, var(--dark-accent), var(--primary));
}
.sidebar-cta p {
  font-size: 14px; color: rgba(245,239,231,0.75);
  line-height: 1.65; margin-bottom: 20px;
}
.sidebar-cta .btn {
  width: 100%; justify-content: center;
  font-size: 13px; padding: 13px 20px;
}

/* ── Post footer / tags ─────────────────────────────────── */
.post-tags {
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap; margin-top: 56px;
  padding-top: 32px; border-top: 1px solid var(--border);
}
.post-tag-label {
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-dim);
}
.tag-pill {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 12px; color: var(--text-muted);
  transition: 0.3s;
}
.tag-pill:hover { border-color: var(--border-glow); color: var(--accent); }

/* ── Tips index ─────────────────────────────────────────── */
.tips-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.tip-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden;
  transition: transform 0.35s, border-color 0.35s, box-shadow 0.35s;
  position: relative;
}
.tip-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-glow);
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
}
.tip-card-thumb {
  height: 180px;
  display: flex; align-items: center; justify-content: center;
  font-size: 64px; position: relative; overflow: hidden;
}
.tip-card-body { padding: 24px; }
.tip-card-cat {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 8px; display: block;
}
.tip-card-title {
  font-family: var(--font-head);
  font-size: 18px; color: var(--text-light);
  margin-bottom: 10px; line-height: 1.2;
}
.tip-card-excerpt {
  font-size: 13px; color: var(--text-muted);
  line-height: 1.65; margin-bottom: 20px;
}
.tip-card-meta {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--text-dim);
}
.tip-card-read {
  color: var(--accent); font-weight: 600;
  font-size: 12px; letter-spacing: 0.08em;
  transition: gap 0.3s;
}
.tip-card:hover .tip-card-read::after { content: ' →'; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1000px) {
  .post-layout { grid-template-columns: 1fr; }
  .post-sidebar { position: static; }
  .tips-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .tips-grid { grid-template-columns: 1fr; }
  .stat-highlight { flex-direction: column; }
  .post-meta { gap: 14px; }
  .post-meta-divider { display: none; }
}
