/* ================= قالب شفق (Aurora) ================= */
:root {
  --primary: #7c3aed;
  --primary-light: #a78bfa;
  --accent: #f472b6;
  --bg: #f6f5ff;
  --card-bg: #ffffff;
  --text: #211f36;
  --muted: #6b7280;
  --border: #ece9fb;
  --radius: 20px;
}

* { box-sizing: border-box; }
body {
  margin: 0; font-family: 'Vazirmatn', Tahoma, sans-serif; background: var(--bg); color: var(--text); line-height: 1.9;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* هدر با بلاب‌های گرادیانت متحرک */
.site-header {
  position: relative; overflow: hidden; color: #fff; padding: 60px 0 90px;
  background: radial-gradient(circle at 15% 20%, #a78bfa 0%, transparent 45%),
              radial-gradient(circle at 85% 0%, #f472b6 0%, transparent 40%),
              linear-gradient(135deg, #4c1d95, #7c3aed 55%, #6d28d9);
}
.header-inner { text-align: center; position: relative; z-index: 2; }
.logo { display: inline-flex; align-items: center; gap: 12px; font-size: 34px; font-weight: 900; letter-spacing: -.5px; }
.logo img { height: 52px; width: 52px; object-fit: cover; border-radius: 14px; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.tagline { margin-top: 12px; opacity: .92; font-size: 15.5px; font-weight: 300; }

.site-search { max-width: 460px; margin: 28px auto 0; display: flex; gap: 8px; }
.site-search input {
  flex: 1; padding: 14px 20px; border: none; border-radius: 40px; font-family: inherit; font-size: 14px;
  background: rgba(255,255,255,.16); color: #fff; backdrop-filter: blur(6px);
}
.site-search input::placeholder { color: rgba(255,255,255,.75); }
.site-search button {
  background: var(--accent); border: none; color: #fff; width: 50px; border-radius: 50%; cursor: pointer; font-size: 17px;
  box-shadow: 0 4px 14px rgba(244,114,182,.5);
}

.layout { display: grid; grid-template-columns: 1fr 320px; gap: 30px; margin-top: -56px; align-items: start; position: relative; z-index: 3; }

.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 24px; }
.post-card {
  background: var(--card-bg); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 10px 30px rgba(76, 29, 149, .1); transition: transform .25s, box-shadow .25s; display: flex; flex-direction: column;
  border: 1px solid var(--border);
}
.post-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(76, 29, 149, .18); }
.post-card-img { display: block; aspect-ratio: 16/10; overflow: hidden; background: #eee; }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.post-card:hover .post-card-img img { transform: scale(1.08); }
.no-image { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #ede9fe, #fdf2f8); color: var(--muted); font-size: 13px; }
.no-image.sm { aspect-ratio: 1/1; border-radius: 10px; }

.post-card-body { padding: 20px 20px 22px; flex: 1; display: flex; flex-direction: column; }
.post-date { font-size: 12px; color: var(--primary); font-weight: 600; }
.post-card-body h2 { font-size: 18px; margin: 10px 0; line-height: 1.6; }
.post-card-body h2 a:hover { color: var(--primary); }
.post-card-body p { color: var(--muted); font-size: 14px; flex: 1; margin: 0 0 14px; }
.read-more { color: var(--primary); font-weight: 700; font-size: 14px; }

.filter-note { background: #fff; padding: 14px 18px; border-radius: 14px; margin-bottom: 18px; font-size: 14px; box-shadow: 0 4px 14px rgba(76,29,149,.06); }
.empty-state { background: #fff; padding: 70px 20px; text-align: center; border-radius: var(--radius); color: var(--muted); }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 36px; flex-wrap: wrap; }
.pagination a { background: #fff; padding: 10px 16px; border-radius: 12px; font-size: 14px; box-shadow: 0 4px 12px rgba(76,29,149,.08); }
.pagination a.active { background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; }
.pagination a:hover { background: var(--primary-light); color: #fff; }
.pagination-dots { padding: 10px 6px; color: var(--muted); }

.sidebar-col { display: flex; flex-direction: column; gap: 22px; }
.widget { background: var(--card-bg); border-radius: var(--radius); padding: 22px; box-shadow: 0 10px 30px rgba(76,29,149,.08); border: 1px solid var(--border); }
.widget h3 { margin: 0 0 16px; font-size: 16px; padding-bottom: 12px; border-bottom: 2px dashed var(--border); color: var(--primary); }
.widget-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.widget-list a { display: block; padding: 9px 14px; border-radius: 10px; background: var(--bg); font-size: 14px; transition: .15s; }
.widget-list a:hover { background: var(--primary); color: #fff; }

.widget-posts { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 15px; }
.widget-posts li { display: flex; gap: 12px; align-items: center; }
.widget-post-thumb { width: 58px; height: 58px; flex-shrink: 0; border-radius: 14px; overflow: hidden; }
.widget-post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.widget-post-title { display: block; font-size: 13.5px; font-weight: 700; line-height: 1.6; }
.widget-post-title:hover { color: var(--primary); }
.widget-post-date { font-size: 11.5px; color: var(--muted); }

.single-post { background: var(--card-bg); border-radius: var(--radius); padding: 34px; box-shadow: 0 10px 30px rgba(76,29,149,.1); border: 1px solid var(--border); }
.post-category { display: inline-block; background: linear-gradient(135deg, #ede9fe, #fdf2f8); color: var(--primary); font-size: 12px; padding: 6px 14px; border-radius: 20px; margin-bottom: 14px; font-weight: 700; }
.single-post h1 { font-size: 28px; margin: 8px 0 12px; line-height: 1.6; }
.single-post-meta { color: var(--muted); font-size: 13px; margin-bottom: 20px; }
.single-post-image { width: 100%; max-height: 440px; object-fit: cover; border-radius: 16px; margin-bottom: 22px; }
.single-post-content { font-size: 16.5px; line-height: 2.1; color: #2a2f3a; }
.back-link { display: inline-block; margin-top: 30px; font-weight: 700; }

.site-footer { text-align: center; padding: 34px 0; color: var(--muted); font-size: 13px; margin-top: 46px; }

@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar-col { order: 2; }
}
@media (max-width: 480px) {
  .site-header { padding: 44px 0 70px; }
  .logo { font-size: 24px; }
  .single-post { padding: 22px; }
}
