/* /assets/css/calendar.css */

/* ═══════════════════════════════════════════════════════
   calendar.css — تقویم شمسی + تقویم باستانی + مدال
   نویسنده: terazo.ir
═══════════════════════════════════════════════════════ */

.info-blocks-row {
  display: flex;
  flex-direction: row;
  gap: 10px;
  padding: 10px 10px 0;
  width: 100%;
  box-sizing: border-box;
  direction: rtl;
}

.info-block {
  min-width: 0;
  border-radius: 20px;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 2px 16px rgba(108,99,255,0.10);
  overflow: hidden;
  transition: box-shadow 0.2s;
  background: #ffffff;
}

.info-block:hover {
  box-shadow: 0 4px 24px rgba(108,99,255,0.18);
}

/* بلاک راست — تقویم شمسی — کوچک‌تر */
.info-block--right {
  flex: 0 0 42%;
  max-width: 42%;
}

/* بلاک چپ — تقویم باستانی — بزرگ‌تر */
.info-block--left {
  flex: 1 1 0;
  cursor: pointer;
}




/* ────────────────────────────────────────────────────
   ۱. بلاک تاریخ شمسی
──────────────────────────────────────────────────── */
.jdate-widget {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 10px 12px;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
  gap: 2px;
  background: #fff;
  direction: rtl;
}

/* ── روز هفته — اولویت اول، برجسته ── */
.jdate-weekday-badge {
  font-size: 0.78rem;
  font-weight: 800;
  color: #6c63ff;
  background: rgba(108,99,255,0.10);
  border-radius: 20px;
  padding: 4px 12px;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

/* ── فصل — کوچک، بدون تأکید ── */
.jdate-season-badge {
  font-size: 0.62rem;
  font-weight: 600;
  color: #9c7bb5;
  background: rgba(156,123,181,0.10);
  border: 1px solid rgba(156,123,181,0.20);
  padding: 2px 10px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
  margin-bottom: 2px;
}

/* ردیف بالا: فصل و روز هفته با هم */
.jdate-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;   /* ← روبروی هم */
  width: 100%;
  margin-bottom: 6px;
  gap: 8px;
}

/* ── عدد روز ── */
.jdate-day {
  font-size: 3.6rem;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, #6c63ff 0%, #a855f7 50%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 4px 0 2px;
  filter: drop-shadow(0 2px 6px rgba(108,99,255,0.2));
}

/* ── ماه + سال ── */
.jdate-month-year {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-bottom: 4px;
}

.jdate-month {
  font-size: 1rem;
  font-weight: 800;
  color: #2d2d2d;
}

.jdate-year {
  font-size: 0.72rem;
  color: #888;
  font-weight: 500;
}

/* ── تاریخ عددی — فونت مناسب ── */
.jdate-full-numeric {
  font-size: 0.75rem;
  font-weight: 700;
  color: #555;
  background: linear-gradient(135deg, rgba(108,99,255,0.07), rgba(168,85,247,0.07));
  border: 1px solid rgba(108,99,255,0.15);
  border-radius: 10px;
  padding: 4px 12px;
  letter-spacing: 0.1em;
  direction: ltr;
  margin-bottom: 4px;
}

/* ── خط جدا ── */
.jdate-divider {
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(108,99,255,0.4), transparent);
  border-radius: 2px;
  margin: 4px auto;
}

/* ── تاریخ میلادی ── */
.jdate-gregorian {
  font-size: 0.58rem;
  color: #aaa;
  direction: ltr;
  margin-bottom: 4px;
  line-height: 1.4;
  font-family: monospace;
}

/* ── ساعت — کوچک، ساده ── */
.jdate-clock {
  font-size: 0.88rem;
  font-weight: 600;
  color: #888;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  direction: ltr;
  font-family: 'Courier New', monospace;
  /* بدون بک‌گراند و بدون border */
}

/* ────────────────────────────────────────────────────
   ۲. بلاک تقویم باستانی
──────────────────────────────────────────────────── */
#ancient-calendar-block {
  background: #ffffff;
  direction: rtl;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* هدر */
.anc-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px 8px;
  background: linear-gradient(135deg, #f5f3ff 0%, #faf5ff 100%);
  border-bottom: 1px solid rgba(108,99,255,0.10);
}

.anc-header-icon { font-size: 1.2rem; flex-shrink: 0; }

.anc-header-text { flex: 1; min-width: 0; }

.anc-header-title {
  font-size: 0.7rem;
  font-weight: 800;
  color: #6c63ff;
  letter-spacing: 0.04em;
}

.anc-header-date {
  font-size: 0.62rem;
  color: #888;
  margin-top: 1px;
}

/* بدنه */
.anc-body-main {
  padding: 10px 12px 6px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

/* ردیف ایزد اصلی */
.anc-deity-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: linear-gradient(135deg, #f5f3ff 0%, #fdf4ff 100%);
  border-radius: 12px;
  border: 1px solid rgba(108,99,255,0.12);
}

.anc-deity-icon-lg {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 10px;
  border: 1px solid rgba(108,99,255,0.15);
  box-shadow: 0 2px 8px rgba(108,99,255,0.1);
}

.anc-deity-info { flex: 1; min-width: 0; }

.anc-deity-name {
  font-size: 1rem;
  font-weight: 800;
  color: #1a1a2e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.anc-deity-type-label {
  font-size: 0.58rem;
  font-weight: 700;
  color: #6c63ff;
  background: rgba(108,99,255,0.10);
  border-radius: 20px;
  padding: 1px 7px;
  display: inline-block;
  margin-top: 2px;
}

.anc-deity-ancient-name {
  font-size: 0.6rem;
  color: #aaa;
  font-style: italic;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

/* chip‌های اطلاعات */
.anc-info-chips {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.anc-info-chip {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 0.67rem;
  color: #444;
  line-height: 1.4;
  background: #f8f8fb;
  border-radius: 8px;
  padding: 5px 8px;
  border: 1px solid rgba(0,0,0,0.06);
}

.anc-info-chip-lbl {
  font-weight: 700;
  color: #555;
  flex-shrink: 0;
  font-size: 0.63rem;
  min-width: 62px;
}

.anc-info-chip-val {
  flex: 1;
  color: #333;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* فوتر */
.anc-body-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0 2px;
  border-top: 1px solid rgba(0,0,0,0.05);
  margin-top: 2px;
}

.anc-event-chip {
  font-size: 0.58rem;
  font-weight: 700;
  color: #b45309;
  background: rgba(251,191,36,0.12);
  border: 1px solid rgba(251,191,36,0.30);
  border-radius: 20px;
  padding: 2px 8px;
  max-width: 58%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.anc-tap-hint {
  font-size: 0.57rem;
  color: #bbb;
  white-space: nowrap;
}

/* حالت خالی */
.anc-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px;
  gap: 6px;
}

.anc-empty-icon { font-size: 2.4rem; opacity: 0.3; }
.anc-empty-text { font-size: 0.82rem; font-weight: 700; color: #333; }
.anc-empty-sub  { font-size: 0.65rem; color: #aaa; }
.anc-error      { padding: 16px; text-align: center; font-size: 0.8rem; color: #e53e3e; line-height: 1.6; }

/* ────────────────────────────────────────────────────
   ۳. Overlay مدال
──────────────────────────────────────────────────── */

/* ────────────────────────────────────────────────────
   ۳. Overlay مدال
──────────────────────────────────────────────────── */
.anc-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: none;
  align-items: flex-end;
  justify-content: center;
}

.anc-modal-overlay.anc-modal-active {
  display: flex;
}

/* ────────────────────────────────────────────────────
   ۴. Sheet مدال
──────────────────────────────────────────────────── */
.anc-modal-sheet {
  width: 100%;
  max-width: 540px;
  height: 90vh;
  background: #f7f7fc;
  border-radius: 24px 24px 0 0;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.32,0.72,0,1),
              opacity 0.25s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 -8px 40px rgba(0,0,0,0.15);
  direction: rtl;
}

.anc-modal-overlay.anc-modal-active .anc-modal-sheet {
  transform: translateY(0);
  opacity: 1;
}

/* drag handle */
.anc-modal-drag {
  width: 44px;
  height: 4px;
  background: rgba(0,0,0,0.12);
  border-radius: 2px;
  margin: 12px auto 0;
  flex-shrink: 0;
}

/* ────────────────────────────────────────────────────
   ۵. هدر مدال
──────────────────────────────────────────────────── */
.anc-modal-header-wrap {
  padding: 8px 16px 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  flex-shrink: 0;
  background: #fff;
}

.anc-modal-header-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 10px;
}

.anc-modal-header-icon { font-size: 1.8rem; line-height: 1; }

.anc-modal-header-texts { flex: 1; min-width: 0; }

.anc-modal-header-title {
  font-size: 1rem;
  font-weight: 900;
  color: #1a1a2e;
}

.anc-modal-header-subtitle {
  font-size: 0.7rem;
  color: #6c63ff;
  margin-top: 2px;
  font-weight: 600;
}

.anc-modal-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f0f0f5;
  border: 1px solid rgba(0,0,0,0.08);
  color: #555;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.15s;
}

.anc-modal-close-btn:hover {
  background: #e0e0ec;
  transform: scale(1.05);
}

/* ────────────────────────────────────────────────────
   تب‌بار مدال — ۳ تب اصلی
──────────────────────────────────────────────────── */
.anc-tab-bar {
  display: flex;
  gap: 0;
  border-bottom: 2px solid rgba(108,99,255,0.10);
  background: #fff;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.anc-tab-bar::-webkit-scrollbar { display: none; }

.anc-tab-btn {
  flex: 1;
  min-width: 80px;
  padding: 10px 8px;
  border: none;
  background: none;
  font-size: 0.72rem;
  font-weight: 700;
  color: #999;
  cursor: pointer;
  border-bottom: 2.5px solid transparent;
  margin-bottom: -2px;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.anc-tab-btn.active {
  color: #6c63ff;
  border-bottom-color: #6c63ff;
}

/* تب‌بار ثانویه (روز/ماه داخل زرتشتی و هخامنشی) */
.anc-sub-tab-bar {
  display: flex;
  gap: 6px;
  padding: 10px 14px 0;
  background: #f7f7fc;
  flex-shrink: 0;
}

.anc-sub-tab-btn {
  flex: 1;
  padding: 7px 10px;
  border: 1.5px solid rgba(108,99,255,0.20);
  border-radius: 20px;
  background: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  color: #888;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.anc-sub-tab-btn.active {
  background: #6c63ff;
  border-color: #6c63ff;
  color: #fff;
}

/* ────────────────────────────────────────────────────
   ۶. بدنه مدال
──────────────────────────────────────────────────── */
.anc-modal-body {
  flex: 1;
  overflow-y: scroll;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 14px 12px 36px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.anc-modal-body::-webkit-scrollbar { width: 3px; }
.anc-modal-body::-webkit-scrollbar-track { background: transparent; }
.anc-modal-body::-webkit-scrollbar-thumb {
  background: rgba(108,99,255,0.25);
  border-radius: 2px;
}

/* پنل‌های تب */
.anc-tab-panel { display: none; }
.anc-tab-panel.active { display: flex; flex-direction: column; gap: 12px; }
.anc-sub-panel  { display: none; }
.anc-sub-panel.active  { display: flex; flex-direction: column; gap: 12px; }

/* ────────────────────────────────────────────────────
   ۷. بنر امروز
──────────────────────────────────────────────────── */
.anc-today-banner {
  background: linear-gradient(135deg, #6c63ff 0%, #a855f7 100%);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 16px rgba(108,99,255,0.25);
}

.anc-today-banner-icon { font-size: 2.2rem; flex-shrink: 0; }

.anc-today-banner-texts { flex: 1; min-width: 0; }

.anc-today-banner-title {
  font-size: 1rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.3;
}

.anc-today-banner-sub {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.80);
  margin-top: 3px;
  line-height: 1.5;
}

/* ────────────────────────────────────────────────────
   ۸. کارت مدال
──────────────────────────────────────────────────── */
.anc-modal-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.07);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.anc-modal-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px 12px;
  background: linear-gradient(135deg, #f5f3ff 0%, #fdf4ff 100%);
  border-bottom: 1px solid rgba(108,99,255,0.10);
  border-right: 4px solid #6c63ff;
}

.anc-modal-card-icon { font-size: 2.2rem; flex-shrink: 0; line-height: 1; }

.anc-modal-card-head-texts { flex: 1; min-width: 0; }

.anc-modal-card-name {
  font-size: 1rem;
  font-weight: 900;
  color: #1a1a2e;
  line-height: 1.2;
  word-break: break-word;
}

.anc-modal-card-name-alt {
  font-size: 0.68rem;
  color: #888;
  font-style: italic;
  margin-top: 2px;
}

.anc-modal-card-romanize {
  font-size: 0.6rem;
  color: #bbb;
  direction: ltr;
  text-align: left;
  font-style: italic;
  margin-top: 2px;
}

.anc-modal-card-type-badge {
  font-size: 0.58rem;
  font-weight: 800;
  border-radius: 20px;
  padding: 3px 9px;
  flex-shrink: 0;
  white-space: nowrap;
}

/* grid اطلاعات پایه */
.anc-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 12px 14px;
  background: #fafafa;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.anc-modal-grid-item {
  background: #fff;
  border-radius: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(0,0,0,0.06);
}

.anc-modal-grid-label {
  font-size: 0.58rem;
  font-weight: 700;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 3px;
}

.anc-modal-grid-value {
  font-size: 0.75rem;
  font-weight: 700;
  color: #2d2d2d;
  line-height: 1.3;
  word-break: break-word;
}

/* بخش‌های متنی */
.anc-modal-section {
  padding: 0 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.anc-modal-section:first-of-type { padding-top: 12px; }

.anc-modal-section-title {
  font-size: 0.65rem;
  font-weight: 800;
  color: #6c63ff;
  display: flex;
  align-items: center;
  gap: 5px;
  letter-spacing: 0.03em;
}

.anc-modal-section-text {
  font-size: 0.78rem;
  color: #333;
  line-height: 1.75;
  word-break: break-word;
  white-space: pre-wrap;
  background: #f8f8fb;
  border-radius: 10px;
  padding: 9px 12px;
  border: 1px solid rgba(0,0,0,0.05);
}

.anc-modal-lucky .anc-modal-section-title { color: #16a34a; }
.anc-modal-lucky .anc-modal-section-text {
  background: rgba(34,197,94,0.05);
  border-color: rgba(34,197,94,0.20);
}

.anc-modal-avoid .anc-modal-section-title { color: #dc2626; }
.anc-modal-avoid .anc-modal-section-text {
  background: rgba(239,68,68,0.05);
  border-color: rgba(239,68,68,0.20);
}

.anc-modal-extra .anc-modal-section-title { color: #7c3aed; }

.anc-modal-extra-grid {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.anc-modal-extra-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: #f8f8fb;
  border-radius: 8px;
  padding: 6px 10px;
  border: 1px solid rgba(0,0,0,0.05);
}

.anc-modal-extra-key {
  font-size: 0.6rem;
  font-weight: 800;
  color: #6c63ff;
  flex-shrink: 0;
  min-width: 70px;
  padding-top: 1px;
}

.anc-modal-extra-val {
  font-size: 0.72rem;
  color: #444;
  line-height: 1.5;
  word-break: break-word;
}

/* جداکننده */
.anc-modal-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0;
  color: rgba(108,99,255,0.30);
  font-size: 0.7rem;
}

.anc-modal-divider::before,
.anc-modal-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(108,99,255,0.15);
}

/* پیام خالی */
.anc-modal-no-data {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px;
  gap: 10px;
  text-align: center;
}

.anc-modal-no-data-icon { font-size: 3rem; opacity: 0.3; }
.anc-modal-no-data-text { font-size: 1rem; font-weight: 700; color: #666; }
.anc-modal-no-data-sub  { font-size: 0.75rem; color: #aaa; }

/* ────────────────────────────────────────────────────
   جداکننده بخش‌ها
──────────────────────────────────────────────────── */
.anc-section-divider {
  font-size: 0.66rem;
  font-weight: 800;
  color: #6c63ff;
  letter-spacing: 0.06em;
  padding: 4px 0;
  border-bottom: 1px solid rgba(108,99,255,0.15);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.anc-section-divider::before {
  content: '';
  width: 3px;
  height: 13px;
  background: linear-gradient(180deg, #6c63ff, #a855f7);
  border-radius: 2px;
  flex-shrink: 0;
}












/* ────────────────────────────────────────────────────
   ۸. کارت رویداد
──────────────────────────────────────────────────── */
.anc-event-card {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

/* هدر کارت */
.anc-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px 12px;
  background: linear-gradient(135deg, #f5f3ff 0%, #fdf4ff 100%);
  border-bottom: 1px solid rgba(108,99,255,0.10);
}

.anc-card-icon {
  font-size: 2.2rem;
  line-height: 1;
  flex-shrink: 0;
}

.anc-card-head-texts { flex: 1; min-width: 0; }

.anc-card-title {
  font-size: 1rem;
  font-weight: 900;
  color: #1a1a2e;
  word-break: break-word;
  line-height: 1.2;
}

.anc-card-subtitle {
  font-size: 0.66rem;
  color: #888;
  font-style: italic;
  margin-top: 2px;
}

.anc-card-romanize {
  font-size: 0.6rem;
  color: #bbb;
  direction: ltr;
  text-align: left;
  font-style: italic;
  margin-top: 1px;
}

.anc-card-type-pill {
  font-size: 0.6rem;
  font-weight: 800;
  border: 1px solid;
  border-radius: 20px;
  padding: 3px 9px;
  flex-shrink: 0;
  white-space: nowrap;
}

/* بدنه کارت */
.anc-card-body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* توضیح اصلی */
.anc-card-desc {
  font-size: 0.8rem;
  color: #333;
  line-height: 1.75;
  word-break: break-word;
  white-space: pre-wrap;
  border-right: 3px solid rgba(108,99,255,0.3);
  padding-right: 10px;
}

/* ────────────────────────────────────────────────────
   ۹. ردیف‌های اطلاعات
──────────────────────────────────────────────────── */
.anc-info-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.anc-info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 9px 12px;
  border-radius: 12px;
  background: #f8f8fb;
  border: 1px solid rgba(0,0,0,0.06);
  transition: background 0.15s;
}

.anc-info-item:hover { background: #f0f0f8; }

.anc-info-item-label {
  font-size: 0.6rem;
  font-weight: 800;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  display: flex;
  align-items: center;
  gap: 4px;
}

.anc-info-item-text {
  font-size: 0.78rem;
  color: #2d2d2d;
  line-height: 1.65;
  word-break: break-word;
  white-space: pre-wrap;
}

/* رنگ‌بندی انواع */
.anc-info-item.lucky   { border-color:rgba(34,197,94,0.25);  background:rgba(34,197,94,0.06); }
.anc-info-item.lucky   .anc-info-item-label { color:#16a34a; }

.anc-info-item.avoid   { border-color:rgba(239,68,68,0.25);  background:rgba(239,68,68,0.05); }
.anc-info-item.avoid   .anc-info-item-label { color:#dc2626; }

.anc-info-item.meaning { border-color:rgba(234,179,8,0.30);  background:rgba(234,179,8,0.06); }
.anc-info-item.meaning .anc-info-item-label { color:#ca8a04; }

.anc-info-item.cultural{ border-color:rgba(139,92,246,0.25); background:rgba(139,92,246,0.05); }
.anc-info-item.cultural .anc-info-item-label { color:#7c3aed; }

.anc-info-item.historical { border-color:rgba(59,130,246,0.25); background:rgba(59,130,246,0.05); }
.anc-info-item.historical .anc-info-item-label { color:#1d4ed8; }

.anc-info-item.etymology  { border-color:rgba(234,88,12,0.25); background:rgba(234,88,12,0.05); }
.anc-info-item.etymology  .anc-info-item-label { color:#c2410c; }

.anc-info-item.symbolism  { border-color:rgba(219,39,119,0.22); background:rgba(219,39,119,0.05); }
.anc-info-item.symbolism  .anc-info-item-label { color:#be185d; }

.anc-info-item.zodiac     { border-color:rgba(124,58,237,0.22); background:rgba(124,58,237,0.05); }
.anc-info-item.zodiac     .anc-info-item-label { color:#6d28d9; }

.anc-info-item.deity      { border-color:rgba(202,138,4,0.28);  background:rgba(202,138,4,0.06); }
.anc-info-item.deity      .anc-info-item-label { color:#92400e; }

.anc-info-item.element-row{ border-color:rgba(5,150,105,0.25);  background:rgba(5,150,105,0.05); }
.anc-info-item.element-row .anc-info-item-label { color:#065f46; }

.anc-info-item.source     { border-color:rgba(100,116,139,0.22); background:rgba(100,116,139,0.05); }
.anc-info-item.source     .anc-info-item-label { color:#475569; }

/* ────────────────────────────────────────────────────
   ۱۰. جشن‌های مرتبط
──────────────────────────────────────────────────── */
.anc-related-festivals {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.anc-festival-tag {
  font-size: 0.64rem;
  font-weight: 600;
  background: rgba(202,138,4,0.10);
  border: 1px solid rgba(202,138,4,0.28);
  color: #92400e;
  border-radius: 20px;
  padding: 3px 10px;
  transition: background 0.15s;
}

.anc-festival-tag:hover { background: rgba(202,138,4,0.18); }

/* ────────────────────────────────────────────────────
   ۱۱. تگ‌های extra_data
──────────────────────────────────────────────────── */
.anc-extra-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 2px;
}

.anc-extra-tag {
  font-size: 0.6rem;
  font-weight: 600;
  background: rgba(108,99,255,0.08);
  border: 1px solid rgba(108,99,255,0.20);
  color: #6c63ff;
  border-radius: 20px;
  padding: 3px 9px;
}

/* ────────────────────────────────────────────────────
   ۱۲. نقطه رنگ ایزد
──────────────────────────────────────────────────── */
.anc-deity-color-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1.5px solid rgba(0,0,0,0.15);
}

/* ────────────────────────────────────────────────────
   ۱۳. محتوای اضافی مدال
──────────────────────────────────────────────────── */
.anc-card-enriched-section {
  background: linear-gradient(135deg, #f5f3ff 0%, #fdf4ff 100%);
  border: 1px solid rgba(108,99,255,0.12);
  border-radius: 12px;
  padding: 12px;
}

.anc-card-enriched-title {
  font-size: 0.65rem;
  font-weight: 800;
  color: #6c63ff;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.anc-card-enriched-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.anc-card-enriched-item {
      background: #fff;
  border-radius: 8px;
  padding: 7px 10px;
  border: 1px solid rgba(0,0,0,0.06);
}

.anc-card-enriched-item-label {
  font-size: 0.56rem;
  font-weight: 700;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.anc-card-enriched-item-val {
  font-size: 0.72rem;
  font-weight: 600;
  color: #2d2d2d;
}

/* ────────────────────────────────────────────────────
   ۱۴. بنر خلاصه امروز
──────────────────────────────────────────────────── */
.anc-today-banner {
  background: linear-gradient(135deg, #6c63ff 0%, #a855f7 100%);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
  box-shadow: 0 4px 16px rgba(108,99,255,0.25);
}

.anc-today-banner-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.anc-today-banner-texts { flex: 1; min-width: 0; }

.anc-today-banner-title {
  font-size: 0.95rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
}

.anc-today-banner-sub {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.78);
  margin-top: 2px;
}

/* ────────────────────────────────────────────────────
   ۱۵. کارت مدال
──────────────────────────────────────────────────── */
.anc-modal-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.07);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.anc-modal-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px 12px;
  background: linear-gradient(135deg, #f5f3ff 0%, #fdf4ff 100%);
  border-bottom: 1px solid rgba(108,99,255,0.10);
  border-right: 4px solid #6c63ff;
}

.anc-modal-card-icon {
  font-size: 2.2rem;
  flex-shrink: 0;
  line-height: 1;
}

.anc-modal-card-head-texts { flex: 1; min-width: 0; }

.anc-modal-card-name {
  font-size: 1rem;
  font-weight: 900;
  color: #1a1a2e;
  line-height: 1.2;
  word-break: break-word;
}

.anc-modal-card-name-alt {
  font-size: 0.68rem;
  color: #888;
  font-style: italic;
  margin-top: 1px;
}

.anc-modal-card-romanize {
  font-size: 0.6rem;
  color: #bbb;
  direction: ltr;
  text-align: left;
  font-style: italic;
  margin-top: 1px;
}

.anc-modal-card-type-badge {
  font-size: 0.58rem;
  font-weight: 800;
  border-radius: 20px;
  padding: 3px 9px;
  flex-shrink: 0;
  white-space: nowrap;
}

/* grid اطلاعات پایه */
.anc-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 12px 14px;
  background: #fafafa;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.anc-modal-grid-item {
  background: #fff;
  border-radius: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(0,0,0,0.06);
}

.anc-modal-grid-label {
  font-size: 0.58rem;
  font-weight: 700;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 3px;
}

.anc-modal-grid-value {
  font-size: 0.75rem;
  font-weight: 700;
  color: #2d2d2d;
  line-height: 1.3;
  word-break: break-word;
}

/* بخش‌های مدال */
.anc-modal-section {
  padding: 0 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.anc-modal-section:first-of-type { padding-top: 12px; }

.anc-modal-section-title {
  font-size: 0.65rem;
  font-weight: 800;
  color: #6c63ff;
  display: flex;
  align-items: center;
  gap: 5px;
  letter-spacing: 0.03em;
}

.anc-modal-section-text {
  font-size: 0.78rem;
  color: #333;
  line-height: 1.75;
  word-break: break-word;
  white-space: pre-wrap;
  background: #f8f8fb;
  border-radius: 10px;
  padding: 9px 12px;
  border: 1px solid rgba(0,0,0,0.05);
}

/* بخش‌های رنگی */
.anc-modal-lucky .anc-modal-section-title { color: #16a34a; }
.anc-modal-lucky .anc-modal-section-text  {
  background: rgba(34,197,94,0.05);
  border-color: rgba(34,197,94,0.20);
}

.anc-modal-avoid .anc-modal-section-title { color: #dc2626; }
.anc-modal-avoid .anc-modal-section-text  {
  background: rgba(239,68,68,0.05);
  border-color: rgba(239,68,68,0.20);
}

.anc-modal-extra .anc-modal-section-title { color: #7c3aed; }

/* grid extra_data */
.anc-modal-extra-grid {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.anc-modal-extra-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: #f8f8fb;
  border-radius: 8px;
  padding: 6px 10px;
  border: 1px solid rgba(0,0,0,0.05);
}

.anc-modal-extra-key {
  font-size: 0.6rem;
  font-weight: 800;
  color: #6c63ff;
  flex-shrink: 0;
  min-width: 70px;
  padding-top: 1px;
}

.anc-modal-extra-val {
  font-size: 0.72rem;
  color: #444;
  line-height: 1.5;
  word-break: break-word;
}

/* جداکننده بین کارت‌ها */
.anc-modal-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0;
  color: rgba(108,99,255,0.30);
  font-size: 0.7rem;
}

.anc-modal-divider::before,
.anc-modal-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(108,99,255,0.15);
}

/* ────────────────────────────────────────────────────
   ۱۶. پیام خالی بودن
──────────────────────────────────────────────────── */
.anc-modal-no-data {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px;
  gap: 10px;
  text-align: center;
}

.anc-modal-no-data-icon { font-size: 3rem; opacity: 0.3; }
.anc-modal-no-data-text { font-size: 1rem; font-weight: 700; color: #666; }
.anc-modal-no-data-sub  { font-size: 0.75rem; color: #aaa; }


/* ────────────────────────────────────────────────────
   کارت‌های ایزد روز / ایزد ماه در تب امروز
──────────────────────────────────────────────────── */
.anc-deity-summary-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.anc-deity-mini-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(108,99,255,0.12);
  padding: 10px 14px;
  box-shadow: 0 2px 8px rgba(108,99,255,0.07);
}

.anc-deity-mini-card--zoro {
  border-left: 4px solid #f97316;
}

.anc-deity-mini-card--ach {
  border-left: 4px solid #ca8a04;
}

.anc-deity-mini-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f3ff;
  border-radius: 10px;
}

.anc-deity-mini-info {
  flex: 1;
  min-width: 0;
}

.anc-deity-mini-label {
  font-size: 0.58rem;
  font-weight: 800;
  color: #888;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
  text-transform: uppercase;
}

.anc-deity-mini-name {
  font-size: 0.88rem;
  font-weight: 900;
  color: #1a1a2e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.anc-deity-mini-sub {
  font-size: 0.62rem;
  color: #888;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* هایلایت امروز */
.anc-today-highlight-wrap {
  position: relative;
}

.anc-today-highlight-badge {
  font-size: 0.62rem;
  font-weight: 800;
  color: #6c63ff;
  background: rgba(108,99,255,0.10);
  border: 1px solid rgba(108,99,255,0.20);
  border-radius: 20px;
  padding: 3px 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 6px;
}





/* ══════════════════════════════════════════════════════
   دارک مد — calendar.css
══════════════════════════════════════════════════════ */

[data-theme="dark"] .info-block {
  background: #1e1e2e;
  border-color: #2a2a3e;
}

[data-theme="dark"] .jdate-widget {
  background: #1e1e2e;
}

[data-theme="dark"] .jdate-month {
  color: #e8eaed;
}

[data-theme="dark"] .jdate-year {
  color: #9aa0a6;
}

[data-theme="dark"] .jdate-full-numeric {
  color: #c5c8d0;
  background: rgba(108,99,255,0.12);
  border-color: rgba(108,99,255,0.20);
}

[data-theme="dark"] .jdate-gregorian {
  color: #6b7280;
}

[data-theme="dark"] .jdate-clock {
  color: #9aa0a6;
}

/* ── تقویم باستانی ── */
[data-theme="dark"] #ancient-calendar-block {
  background: #1e1e2e;
}

[data-theme="dark"] .anc-header {
  background: linear-gradient(135deg, #1a1730 0%, #1e1a2e 100%);
  border-bottom-color: rgba(108,99,255,0.15);
}

[data-theme="dark"] .anc-header-title {
  color: #a78bfa;
}

[data-theme="dark"] .anc-header-date {
  color: #6b7280;
}

[data-theme="dark"] .anc-deity-row {
  background: linear-gradient(135deg, #1a1730 0%, #1e1a2e 100%);
  border-color: rgba(108,99,255,0.18);
}

[data-theme="dark"] .anc-deity-icon-lg {
  background: #2a2a3e;
  border-color: rgba(108,99,255,0.20);
}

[data-theme="dark"] .anc-deity-name {
  color: #e8eaed;
}

[data-theme="dark"] .anc-deity-ancient-name {
  color: #6b7280;
}

[data-theme="dark"] .anc-info-chip {
  background: #252535;
  border-color: rgba(255,255,255,0.06);
  color: #c5c8d0;
}

[data-theme="dark"] .anc-info-chip-lbl {
  color: #9aa0a6;
}

[data-theme="dark"] .anc-info-chip-val {
  color: #d1d5db;
}

[data-theme="dark"] .anc-body-footer {
  border-top-color: rgba(255,255,255,0.06);
}

[data-theme="dark"] .anc-tap-hint {
  color: #4b5563;
}

/* ── مدال ── */
[data-theme="dark"] .anc-modal-sheet {
  background: #13131f;
}

[data-theme="dark"] .anc-modal-drag {
  background: rgba(255,255,255,0.15);
}

[data-theme="dark"] .anc-modal-header-wrap {
  background: #1e1e2e;
  border-bottom-color: rgba(255,255,255,0.07);
}

[data-theme="dark"] .anc-modal-header-title {
  color: #e8eaed;
}

[data-theme="dark"] .anc-modal-close-btn {
  background: #2a2a3e;
  border-color: rgba(255,255,255,0.08);
  color: #9aa0a6;
}

[data-theme="dark"] .anc-modal-close-btn:hover {
  background: #333350;
}

[data-theme="dark"] .anc-tab-bar {
  background: #1e1e2e;
  border-bottom-color: rgba(108,99,255,0.15);
}

[data-theme="dark"] .anc-tab-btn {
  color: #6b7280;
}

[data-theme="dark"] .anc-tab-btn.active {
  color: #a78bfa;
  border-bottom-color: #a78bfa;
}

[data-theme="dark"] .anc-sub-tab-bar {
  background: #13131f;
}

[data-theme="dark"] .anc-sub-tab-btn {
  background: #1e1e2e;
  border-color: rgba(108,99,255,0.25);
  color: #6b7280;
}

[data-theme="dark"] .anc-sub-tab-btn.active {
  background: #6c63ff;
  border-color: #6c63ff;
  color: #fff;
}

[data-theme="dark"] .anc-modal-body::-webkit-scrollbar-thumb {
  background: rgba(108,99,255,0.35);
}

/* ── کارت‌های مدال ── */
[data-theme="dark"] .anc-modal-card,
[data-theme="dark"] .anc-event-card {
  background: #1e1e2e;
  border-color: rgba(255,255,255,0.07);
}

[data-theme="dark"] .anc-modal-card-header,
[data-theme="dark"] .anc-card-head {
  background: linear-gradient(135deg, #1a1730 0%, #1e1a2e 100%);
  border-bottom-color: rgba(108,99,255,0.15);
}

[data-theme="dark"] .anc-modal-card-name,
[data-theme="dark"] .anc-card-title {
  color: #e8eaed;
}

[data-theme="dark"] .anc-modal-card-name-alt,
[data-theme="dark"] .anc-card-subtitle,
[data-theme="dark"] .anc-modal-card-romanize,
[data-theme="dark"] .anc-deity-mini-card,
[data-theme="dark"] .anc-card-romanize {
  color: #6b7280;
}

[data-theme="dark"] .anc-modal-grid,
[data-theme="dark"] .anc-deity-mini-card {
  background: #181828;
  border-bottom-color: rgba(255,255,255,0.05);
}

[data-theme="dark"] .anc-modal-grid-item,
[data-theme="dark"] .anc-card-enriched-item {
  background: #1e1e2e;
  border-color: rgba(255,255,255,0.07);
}

[data-theme="dark"] .anc-modal-grid-label,
[data-theme="dark"] .anc-card-enriched-item-label {
  color: #6b7280;
}

[data-theme="dark"] .anc-modal-grid-value,
[data-theme="dark"] .anc-card-enriched-item-val {
  color: #d1d5db;
}

[data-theme="dark"] .anc-modal-section-text {
  background: #252535;
  border-color: rgba(255,255,255,0.06);
  color: #c5c8d0;
}

[data-theme="dark"] .anc-card-desc {
  color: #c5c8d0;
  border-right-color: rgba(108,99,255,0.35);
}

[data-theme="dark"] .anc-card-enriched-section {
  background: linear-gradient(135deg, #1a1730 0%, #1e1a2e 100%);
  border-color: rgba(108,99,255,0.18);
}

/* ── ردیف‌های info ── */
[data-theme="dark"] .anc-info-item {
  background: #252535;
  border-color: rgba(255,255,255,0.07);
}

[data-theme="dark"] .anc-info-item:hover {
  background: #2a2a40;
}

[data-theme="dark"] .anc-info-item-text {
  color: #c5c8d0;
}

[data-theme="dark"] .anc-info-item.lucky   { background: rgba(34,197,94,0.08);  border-color: rgba(34,197,94,0.20); }
[data-theme="dark"] .anc-info-item.avoid   { background: rgba(239,68,68,0.08);  border-color: rgba(239,68,68,0.20); }
[data-theme="dark"] .anc-info-item.meaning { background: rgba(234,179,8,0.08);  border-color: rgba(234,179,8,0.22); }
[data-theme="dark"] .anc-info-item.cultural{ background: rgba(139,92,246,0.08); border-color: rgba(139,92,246,0.22); }
[data-theme="dark"] .anc-info-item.historical { background: rgba(59,130,246,0.08); border-color: rgba(59,130,246,0.20); }
[data-theme="dark"] .anc-info-item.etymology  { background: rgba(234,88,12,0.08);  border-color: rgba(234,88,12,0.20); }
[data-theme="dark"] .anc-info-item.symbolism  { background: rgba(219,39,119,0.08); border-color: rgba(219,39,119,0.18); }
[data-theme="dark"] .anc-info-item.zodiac     { background: rgba(124,58,237,0.08); border-color: rgba(124,58,237,0.20); }
[data-theme="dark"] .anc-info-item.deity      { background: rgba(202,138,4,0.08);  border-color: rgba(202,138,4,0.22); }
[data-theme="dark"] .anc-info-item.element-row{ background: rgba(5,150,105,0.08);  border-color: rgba(5,150,105,0.20); }
[data-theme="dark"] .anc-info-item.source     { background: rgba(100,116,139,0.08); border-color: rgba(100,116,139,0.18); }

/* ── extra / tags ── */
[data-theme="dark"] .anc-modal-extra-item {
  background: #252535;
  border-color: rgba(255,255,255,0.06);
}

[data-theme="dark"] .anc-modal-extra-val {
  color: #c5c8d0;
}

[data-theme="dark"] .anc-festival-tag {
  background: rgba(202,138,4,0.12);
  border-color: rgba(202,138,4,0.25);
}

[data-theme="dark"] .anc-extra-tag {
  background: rgba(108,99,255,0.12);
  border-color: rgba(108,99,255,0.25);
}

/* ── ماه و متا ── */
[data-theme="dark"] .anc-month-row {
  background: linear-gradient(135deg, #1a1730 0%, #1e1a2e 100%);
  border-color: rgba(124,58,237,0.18);
}

[data-theme="dark"] .anc-month-row-desc {
  color: #6b7280;
}

/* ── no-data ── */
[data-theme="dark"] .anc-modal-no-data-text {
  color: #9aa0a6;
}

[data-theme="dark"] .anc-empty-text {
  color: #9aa0a6;
}
