/* ──────────────────────────────────────────────────────────
   blog.css — Straight Outta Shimla blog-specific styles
   Inherits all design tokens from ../../styles.css
   ────────────────────────────────────────────────────────── */

/* ── Breadcrumb ──────────────────────────────────────────── */
.breadcrumb-nav {
  max-width: 860px;
  margin: 0 auto;
  padding: 24px 32px 0;
  font-size: 13px;
  color: var(--text-muted);
}
.breadcrumb-nav a {
  color: var(--gold);
  text-decoration: none;
}
.breadcrumb-nav a:hover { text-decoration: underline; }
.breadcrumb-nav span { margin: 0 6px; }

/* ── Blog listing page ───────────────────────────────────── */
.blog-listing-page {
  min-height: 100vh;
  background: var(--bg-raised);
  padding-top: 100px;
}

.blog-listing-header {
  max-width: 1280px;
  margin: 0 auto;
  padding: 60px 32px 40px;
  text-align: center;
}

.blog-listing-header .t-label {
  margin-bottom: 10px;
}

.blog-listing-header h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
  margin-bottom: 0;
}

.filter-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  max-width: 1280px;
  margin: 0 auto 40px;
  padding: 0 32px;
}

.filter-btn {
  padding: 8px 20px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s var(--ease-smooth), color 0.2s var(--ease-smooth), border-color 0.2s var(--ease-smooth);
}

.filter-btn:hover {
  border-color: var(--gold);
  color: var(--text);
}

.filter-btn.active {
  background: var(--gold);
  color: #000;
  border-color: var(--gold);
}

.blog-listing-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px 80px;
}

/* ── Blog post page wrapper ──────────────────────────────── */
.blog-post-page {
  min-height: 100vh;
  background: var(--bg);
  padding-top: 100px;
}

/* ── Post container ──────────────────────────────────────── */
.blog-post-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 32px 80px;
}

/* ── Post header ─────────────────────────────────────────── */
.post-header {
  text-align: center;
  padding: 48px 0 40px;
}

.post-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.post-header h1 {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}

.post-meta {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.post-meta-sep { opacity: 0.4; }

/* ── Hero image ──────────────────────────────────────────── */
.post-hero-wrap {
  max-width: 1100px;
  margin: 0 auto 48px;
  padding: 0 32px;
}

.post-hero-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  display: block;
}

.post-hero-caption {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 10px;
  font-style: italic;
}

/* ── Takeaway box ────────────────────────────────────────── */
.takeaway-box {
  background: rgba(255, 179, 33, 0.08);
  border: 1px solid rgba(255, 179, 33, 0.3);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin: 0 0 36px;
}

.takeaway-box h4 {
  font-family: var(--font-head);
  font-size: 16px;
  color: var(--gold);
  margin: 0 0 12px;
}

.takeaway-box p {
  font-size: 14px;
  color: var(--warm-sand);
  line-height: 1.7;
  margin: 0 0 8px;
}

.takeaway-box p:last-child { margin-bottom: 0; }

/* ── Table of contents ───────────────────────────────────── */
.toc {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin: 0 0 36px;
}

.toc h4 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 14px;
}

.toc ol {
  margin: 0;
  padding-left: 20px;
}

.toc li {
  margin-bottom: 8px;
}

.toc a {
  font-size: 14px;
  color: var(--warm-sand);
  text-decoration: none;
  transition: color 0.15s var(--ease-smooth);
}

.toc a:hover { color: var(--gold); }

/* ── Post body content ───────────────────────────────────── */
.post-content {
  font-size: 17px;
  line-height: 1.8;
  color: var(--warm-sand);
}

.post-content p {
  margin: 0 0 24px;
}

.post-content h2 {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 52px 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.post-content h3 {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin: 36px 0 14px;
}

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

.post-content em { font-style: italic; }

.post-content ul,
.post-content ol {
  margin: 0 0 24px;
  padding-left: 24px;
}

.post-content li {
  margin-bottom: 10px;
  line-height: 1.7;
}

.post-content a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.post-content a:hover { opacity: 0.8; }

/* ── Comparison table ────────────────────────────────────── */
.post-content .table-wrap {
  overflow-x: auto;
  margin: 0 0 32px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.post-content table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-elevated);
  font-size: 15px;
}

.post-content thead {
  background: rgba(255, 179, 33, 0.15);
}

.post-content th {
  padding: 14px 18px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

.post-content td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  color: var(--warm-sand);
  line-height: 1.5;
}

.post-content tbody tr:last-child td { border-bottom: none; }

.post-content tbody tr:hover { background: rgba(255,179,33,0.04); }

/* ── Inline CTA ──────────────────────────────────────────── */
.cta-inline {
  background: var(--bg-raised);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  margin: 40px 0;
}

.cta-inline h3 {
  font-family: var(--font-head);
  font-size: 1.4rem;
  color: var(--text);
  margin: 0 0 10px;
}

.cta-inline p {
  font-size: 15px;
  color: var(--warm-sand);
  margin: 0 0 20px;
}

/* ── FAQ ─────────────────────────────────────────────────── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 0 32px;
}

.faq-item {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 20px 24px;
}

.faq-item h3 {
  font-family: var(--font-head);
  font-size: 1.05rem;
  color: var(--text);
  margin: 0 0 10px;
  font-weight: 600;
}

.faq-item p {
  font-size: 14px;
  color: var(--warm-sand);
  line-height: 1.7;
  margin: 0;
}

/* ── Location block ──────────────────────────────────────── */
.location-block {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin: 32px 0;
}

.location-block h3 {
  font-family: var(--font-head);
  font-size: 1.4rem;
  color: var(--gold);
  margin: 0 0 20px;
}

.location-block p {
  font-size: 15px;
  color: var(--warm-sand);
  line-height: 1.7;
  margin: 0 0 10px;
}

.location-block p:last-of-type { margin-bottom: 24px; }

.location-block a { color: var(--gold); }

.location-block ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.location-block li {
  font-size: 15px;
  color: var(--warm-sand);
  margin-bottom: 6px;
  padding-left: 16px;
  position: relative;
}

.location-block li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 12px;
}

/* ── Related articles ────────────────────────────────────── */
.related-section {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.related-section h3 {
  font-family: var(--font-head);
  font-size: 1.5rem;
  color: var(--text);
  margin: 0 0 24px;
}

.related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.related-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.2s var(--ease-spring), border-color 0.2s var(--ease-smooth);
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.related-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
}

.related-card-img {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.related-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s var(--ease-smooth);
}

.related-card:hover .related-card-img img { transform: scale(1.04); }

.related-card-body {
  padding: 16px 20px 20px;
}

.related-card-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 8px;
}

.related-card-title {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  margin: 0 0 10px;
}

.related-card-cta {
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
}

/* ── Share row ───────────────────────────────────────────── */
.post-footer {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.post-footer h4 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 16px;
}

.share-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.share-btn {
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s var(--ease-spring), opacity 0.15s;
}

.share-btn:hover { transform: translateY(-2px); opacity: 0.9; }
.share-btn.facebook { background: #1877f2; color: #fff; }
.share-btn.twitter  { background: #1da1f2; color: #fff; }
.share-btn.linkedin { background: #0077b5; color: #fff; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 700px) {
  .blog-post-container { padding: 0 20px 60px; }
  .post-hero-wrap { padding: 0 20px; }
  .breadcrumb-nav { padding: 20px 20px 0; }
  .related-grid { grid-template-columns: 1fr; }
  .share-row { flex-direction: column; align-items: center; }
  .blog-listing-header { padding: 40px 20px 24px; }
  .filter-row { padding: 0 20px; }
  .blog-listing-grid { padding: 0 20px 60px; }
  .post-content { font-size: 16px; }
}
