/* ═══════════════════════════════════════════════════
   ROOMSARTHI BLOG — Design System
   ═══════════════════════════════════════════════════ */

/* ── Blog Index ── */
.blog-page { max-width: 1100px; margin: 0 auto; padding: 48px 20px 80px; }
.blog-hero { margin-bottom: 40px; }
.blog-hero h1 { font-size: 2.2rem; font-weight: 800; margin-bottom: 10px; color: var(--text); }
.blog-hero p { color: var(--text-muted); font-size: 1rem; line-height: 1.6; max-width: 600px; }

.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }

.blog-card {
  background: #fff; border: 1.5px solid var(--border); border-radius: 16px;
  overflow: hidden; transition: box-shadow .25s, transform .25s; cursor: pointer;
  text-decoration: none; color: inherit; display: flex; flex-direction: column;
}
.blog-card:hover { box-shadow: 0 12px 40px rgba(37,99,235,.12); transform: translateY(-3px); }

.blog-card-img {
  width: 100%; height: 200px; object-fit: cover;
  background: linear-gradient(135deg, #DBEAFE 0%, #EEF4FF 100%);
}
.blog-card-body { padding: 22px 22px 20px; flex: 1; display: flex; flex-direction: column; }
.blog-card-tag {
  display: inline-block; font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .6px; color: var(--primary); background: var(--primary-light);
  padding: 3px 10px; border-radius: 6px; margin-bottom: 10px; width: fit-content;
}
.blog-card-title {
  font-size: 1.12rem; font-weight: 700; line-height: 1.4; margin-bottom: 8px; color: var(--text);
}
.blog-card-excerpt { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; flex: 1; margin-bottom: 14px; }
.blog-card-meta { display: flex; align-items: center; gap: 12px; font-size: 0.78rem; color: var(--text-muted); }
.blog-card-meta svg { flex-shrink: 0; }

/* ── Article Page ── */
.article-page { max-width: 760px; margin: 0 auto; padding: 48px 20px 80px; }

.article-breadcrumb {
  display: flex; align-items: center; gap: 6px; font-size: 0.82rem;
  color: var(--text-muted); margin-bottom: 24px; flex-wrap: wrap;
}
.article-breadcrumb a { color: var(--primary); font-weight: 500; }
.article-breadcrumb a:hover { text-decoration: underline; }

.article-header { margin-bottom: 36px; }
.article-tag {
  display: inline-block; font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .6px; color: var(--primary); background: var(--primary-light);
  padding: 4px 12px; border-radius: 6px; margin-bottom: 14px;
}
.article-header h1 {
  font-size: 2.1rem; font-weight: 800; line-height: 1.3; margin-bottom: 16px; color: var(--text);
}
.article-meta {
  display: flex; align-items: center; gap: 16px; font-size: 0.85rem; color: var(--text-muted);
  padding-bottom: 20px; border-bottom: 1px solid var(--border);
}
.article-meta span { display: flex; align-items: center; gap: 5px; }

/* ── Article Body ── */
.article-body { font-size: 1.05rem; line-height: 1.8; color: var(--text); }
.article-body h2 {
  font-size: 1.45rem; font-weight: 700; margin: 36px 0 16px; color: var(--text);
  padding-top: 12px; border-top: 1px solid #F1F5F9;
}
.article-body h3 {
  font-size: 1.15rem; font-weight: 700; margin: 28px 0 12px; color: var(--text);
}
.article-body p { margin-bottom: 18px; }
.article-body ul, .article-body ol { margin: 0 0 20px 24px; }
.article-body li { margin-bottom: 8px; line-height: 1.7; }
.article-body strong { font-weight: 700; color: var(--text); }
.article-body a { color: var(--primary); font-weight: 500; }
.article-body a:hover { text-decoration: underline; }

.article-body blockquote {
  margin: 24px 0; padding: 16px 20px; border-left: 4px solid var(--primary);
  background: #F8FAFC; border-radius: 0 10px 10px 0; font-style: italic;
  color: var(--text-muted);
}

/* Tip / callout box */
.article-tip {
  background: #EFF6FF; border: 1px solid #BFDBFE; border-radius: 12px;
  padding: 18px 22px; margin: 24px 0; display: flex; gap: 12px; align-items: flex-start;
}
.article-tip .tip-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; }
.article-tip .tip-text { font-size: 0.92rem; line-height: 1.6; color: #1E40AF; }

/* Checklist style */
.article-body .checklist { list-style: none; margin-left: 0; padding: 0; }
.article-body .checklist li {
  padding: 10px 0 10px 32px; border-bottom: 1px solid #F1F5F9;
  position: relative;
}
.article-body .checklist li::before {
  content: '✓'; position: absolute; left: 4px; top: 10px;
  color: #16A34A; font-weight: 700; font-size: 1rem;
}

/* ── CTA Block ── */
.article-cta {
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  color: #fff; border-radius: 16px; padding: 36px 32px; margin: 40px 0;
  text-align: center;
}
.article-cta h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 8px; }
.article-cta p { font-size: 0.95rem; opacity: .9; margin-bottom: 20px; }
.article-cta a {
  display: inline-block; background: #fff; color: var(--primary); font-weight: 700;
  padding: 12px 28px; border-radius: 10px; text-decoration: none; font-size: 0.95rem;
  transition: transform .2s, box-shadow .2s;
}
.article-cta a:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.2); }

/* ── Related Posts ── */
.related-posts { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--border); }
.related-posts h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 20px; }
.related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.related-card {
  border: 1.5px solid var(--border); border-radius: 12px; padding: 18px;
  text-decoration: none; color: inherit; transition: border-color .2s, box-shadow .2s;
}
.related-card:hover { border-color: var(--primary); box-shadow: 0 4px 16px rgba(37,99,235,.08); }
.related-card-title { font-size: 0.92rem; font-weight: 700; margin-bottom: 4px; color: var(--text); line-height: 1.4; }
.related-card-excerpt { font-size: 0.78rem; color: var(--text-muted); line-height: 1.5; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .blog-hero h1 { font-size: 1.6rem; }
  .blog-grid { grid-template-columns: 1fr; }
  .article-header h1 { font-size: 1.55rem; }
  .article-body { font-size: 0.98rem; }
  .article-body h2 { font-size: 1.25rem; }
  .related-grid { grid-template-columns: 1fr; }
  .article-cta { padding: 28px 20px; }
  .article-meta { flex-wrap: wrap; gap: 8px; }
}

/* ── Dark Mode ── */
html.dark .blog-card { background: #1C1F28 !important; border-color: #2D3140 !important; }
html.dark .blog-card:hover { box-shadow: 0 12px 40px rgba(0,0,0,.4) !important; }
html.dark .blog-card-title { color: #ECF0F6 !important; }
html.dark .blog-card-tag { background: #1E3A5F !important; color: #93C5FD !important; }
html.dark .blog-hero h1 { color: #fff !important; }

html.dark .article-header h1 { color: #ECF0F6 !important; }
html.dark .article-body h2 { color: #ECF0F6 !important; border-color: #2D3140 !important; }
html.dark .article-body h3 { color: #ECF0F6 !important; }
html.dark .article-body { color: #CBD5E1 !important; }
html.dark .article-body strong { color: #ECF0F6 !important; }
html.dark .article-body blockquote { background: #1C1F28 !important; border-color: #6B9BFF !important; color: #9BA4B5 !important; }
html.dark .article-tip { background: #1E293B !important; border-color: #334155 !important; }
html.dark .article-tip .tip-text { color: #93C5FD !important; }
html.dark .article-body .checklist li { border-color: #2D3140 !important; }
html.dark .related-card { border-color: #2D3140 !important; }
html.dark .related-card:hover { border-color: #6B9BFF !important; }
html.dark .related-card-title { color: #ECF0F6 !important; }
