/* ── Mobile (≤ 680px) ── */
/* Base Layout */
.layout { grid-template-columns: 1fr; gap: 24px; padding: 0 16px 88px; margin-top: 16px; } /* Increased bottom padding for floating bar */

/* Sidebar on mobile: Stack gracefully */
.sidebar { display: flex; flex-direction: column; gap: 24px; margin-top: 24px; }
.sidebar-ad-sticky { position: static; display: none; /* hide tall 300x600 ad on mobile */ }

/* Main Post Container */
.main-content { background: var(--white); border-radius: 12px; box-shadow: 0 4px 16px rgba(0,0,0,0.06); overflow: hidden; border: 1px solid rgba(0,0,0,0.04); }

/* Post Header */
.post-meta-top { padding: 24px 20px 0; display: flex; flex-wrap: wrap; gap: 10px; }
.post-title { font-size: 26px; font-family: 'Noto Serif Devanagari', serif; font-weight: 700; line-height: 1.35; padding: 16px 20px 12px; color: var(--text-dark); margin: 0; }
.post-subtitle { font-size: 16px; line-height: 1.5; padding: 0 20px 16px; color: var(--text-soft); }
.author-share-row { padding: 12px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.author-info { display: flex; align-items: center; gap: 10px; }
.author-avatar { width: 40px; height: 40px; border-radius: 50%; }
.author-name { font-size: 14px; font-weight: 600; color: var(--text-dark); }
.post-date { font-size: 12px; color: var(--text-soft); }
.share-buttons { display: none; } /* moved to mobile bottom bar */

/* Featured Image */
.featured-image-wrap img, .fake-hero { aspect-ratio: 16 / 9; height: auto; width: 100%; object-fit: cover; font-size: 56px; display: flex; align-items: center; justify-content: center; position: relative; }
.featured-image-wrap img { position: absolute; top: 0; left: 0; height: 100%; }
.featured-image-caption { padding: 10px 20px; font-size: 12px; color: var(--text-soft); font-style: italic; background: rgba(0,0,0,0.02); text-align: center; border-bottom: 1px solid var(--border); }

/* Post Body: Premium Reading Experience */
.post-body { padding: 24px 20px; }
.post-body p { font-size: 17px; line-height: 1.7; margin-bottom: 24px; color: #222; letter-spacing: 0.2px; }
.post-body h2 { font-size: 22px; font-family: 'Noto Serif Devanagari', serif; font-weight: 700; margin: 36px 0 16px; color: var(--text-dark); line-height: 1.4; }
.post-body h3 { font-size: 19px; font-family: 'Noto Serif Devanagari', serif; font-weight: 700; margin: 28px 0 12px; color: var(--text-dark); line-height: 1.4; }
.post-body ul, .post-body ol { font-size: 17px; line-height: 1.7; margin-bottom: 24px; margin-left: 20px; color: #222; }
.post-body li { margin-bottom: 8px; }
.post-body a { color: var(--saffron-dark); text-decoration: underline; text-decoration-color: rgba(220,105,0,0.3); text-underline-offset: 3px; }
.post-body img { border-radius: 8px; margin: 24px 0; max-width: 100%; height: auto; }

/* Table: Clean Horizontal Scroll */
.table-responsive { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 24px 0; border-radius: 8px; box-shadow: inset -10px 0 10px -10px rgba(0,0,0,0.1); }
.panchang-table { font-size: 15px; min-width: 500px; width: 100%; border-collapse: collapse; }
.panchang-table th { background: var(--saffron-light); color: var(--text-dark); font-weight: 700; text-align: left; padding: 12px 16px; }
.panchang-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); }
.panchang-table tr:last-child td { border-bottom: none; }

/* Highlight / Quote Box */
.highlight-box { padding: 20px; border-left: 4px solid var(--saffron); background: var(--saffron-light); border-radius: 0 8px 8px 0; margin: 24px 0; font-size: 17px; line-height: 1.6; font-style: italic; }
blockquote { padding: 20px 24px; border-left: 4px solid var(--maroon); background: #f9f9f9; border-radius: 0 8px 8px 0; margin: 24px 0; font-size: 18px; font-family: 'Noto Serif Devanagari', serif; color: var(--text-dark); line-height: 1.6; }

/* Tags */
.post-tags { padding: 16px 20px 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.post-tags a { font-size: 13px; padding: 6px 14px; background: var(--white); border: 1px solid var(--border); border-radius: 50px; color: var(--text-dark); font-weight: 500; transition: all 0.2s; min-height: 36px; display: inline-flex; align-items: center; justify-content: center; }
.post-tags a:active { background: var(--saffron-light); border-color: var(--saffron); color: var(--saffron-dark); }

/* Related Posts */
.related-section { padding: 24px 20px; background: #fafafa; border-top: 1px solid var(--border); }
.related-title { font-size: 20px; font-family: 'Noto Serif Devanagari', serif; font-weight: 700; margin-bottom: 16px; }
.related-grid { grid-template-columns: 1fr; gap: 16px; display: grid; }
.related-card { display: flex; gap: 12px; background: var(--white); padding: 12px; border-radius: 8px; border: 1px solid var(--border); align-items: center; box-shadow: 0 2px 8px rgba(0,0,0,0.03); }
.related-card-img { width: 120px; aspect-ratio: 16 / 9; height: auto; flex-shrink: 0; border-radius: 6px; overflow: hidden; background: var(--saffron-light); position: relative; }
.related-card-img img { width: 100%; height: 100%; object-fit: cover; position: absolute; top: 0; left: 0; }
.related-card-title { font-size: 15px; font-family: 'Noto Serif Devanagari', serif; font-weight: 700; line-height: 1.4; color: var(--text-dark); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Mobile Bottom Share Bar (App-like sticky footer) */
.mobile-bottom-bar { display: flex; position: fixed; bottom: 0; left: 0; right: 0; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid rgba(0,0,0,0.1); padding: 12px 16px; z-index: 200; box-shadow: 0 -4px 20px rgba(0,0,0,0.08); justify-content: space-between; align-items: center; gap: 12px; padding-bottom: max(12px, env(safe-area-inset-bottom)); }
.mobile-bottom-bar .share-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 14px; font-weight: 600; padding: 10px; border-radius: 8px; min-height: 44px; transition: all 0.2s; }
.mobile-bottom-bar .share-wa { background: #25D366; color: #fff; }
.mobile-bottom-bar .share-fb { background: #1877F2; color: #fff; }
.mobile-bottom-bar .share-tw { background: #000; color: #fff; }
.mobile-bottom-bar .share-btn:active { opacity: 0.8; transform: scale(0.98); }

/* Breadcrumb */
.breadcrumb-wrap { font-size: 12px; margin-top: 12px; margin-bottom: 8px; color: var(--text-soft); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.breadcrumb-wrap a { color: var(--text-dark); font-weight: 500; }
.breadcrumb-sep { font-size: 10px; opacity: 0.5; }

/* ── Very small (≤ 380px) ── */
@media (max-width: 380px) {
  .post-title { font-size: 22px; }
  .post-body p { font-size: 16px; }
  .mobile-bottom-bar .share-btn { font-size: 13px; padding: 8px; span { display: none; } } /* hide text on very small screens, show icons only */
}
