/* تقویم رویدادهای کلیسا — استایل اصلی */

.chc-app{
  --bg:transparent;
  --ink:#1F1E1B;
  --ink-2:rgba(31,30,27,.62);
  --ink-3:rgba(31,30,27,.40);
  --edge:rgba(31,30,27,.10);
  --panel:rgba(255,255,255,.6);
  --sage:#6F8060;
  --sage-ink:#4A5B3E;
  --sage-soft:rgba(111,128,96,.14);
  --rail:#1B1C1E;
  --r-sm:10px;--r-md:16px;--r-lg:22px;
  --ease:cubic-bezier(.22,.61,.36,1);
  --shadow-md:0 10px 26px rgba(31,30,27,.08);
  --shadow-lg:0 24px 54px rgba(31,30,27,.16);

  direction:rtl;
  font-family:'Vazirmatn',system-ui,sans-serif;
  font-weight:300;
  color:var(--ink);
  max-width:980px;
  margin:0 auto;
  padding:16px 4px 50px;
}
.chc-app *{box-sizing:border-box}
.chc-app svg{flex:none}
.chc-app button{font-family:inherit}

/* ───────── دکمه‌ها ───────── */
.chc-btn{
  display:inline-flex;align-items:center;gap:8px;border:1.5px solid transparent;
  border-radius:999px;padding:12px 24px;font-family:inherit;font-size:13.5px;
  cursor:pointer;transition:all .2s var(--ease);-webkit-appearance:none;appearance:none;text-decoration:none;
}
.chc-btn svg{width:14px;height:14px;stroke:currentColor;fill:none;stroke-width:1.8}
.chc-btn-dark{background:linear-gradient(155deg,#26272B,var(--rail) 70%);color:#fff;box-shadow:0 6px 16px rgba(27,28,30,.2)}
.chc-btn-dark:hover{transform:translateY(-1px);box-shadow:0 10px 20px rgba(27,28,30,.26)}
.chc-btn-ghost{background:var(--panel);border-color:var(--edge);color:var(--ink-2)}
.chc-btn-ghost:hover{background:#fff;color:var(--ink)}

/* ───────── هدر ───────── */
.chc-header{margin-bottom:22px;text-align:center}
.chc-title{font-size:28px;font-weight:500;margin:0 0 8px}
.chc-sub{font-size:13.5px;color:var(--ink-2);margin:0}

/* ───────── نوار ابزار ───────── */
.chc-toolbar{
  display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;
  background:var(--panel);border:1px solid var(--edge);border-radius:var(--r-md);
  padding:12px 16px;margin-bottom:20px;
}
.chc-nav{display:flex;align-items:center;gap:8px}
.chc-nav-btn{
  width:34px;height:34px;border-radius:50%;border:1px solid var(--edge);background:#fff;
  color:var(--ink-2);cursor:pointer;display:grid;place-items:center;transition:all .2s;
}
.chc-nav-btn svg{width:15px;height:15px;stroke:currentColor;fill:none;stroke-width:1.8}
.chc-nav-btn:hover{background:var(--sage-soft);color:var(--sage-ink)}
.chc-today-btn{
  border:1px solid var(--edge);background:#fff;border-radius:999px;padding:8px 16px;
  font-family:inherit;font-size:12.5px;cursor:pointer;color:var(--ink-2);
}
.chc-today-btn:hover{background:var(--sage-soft);color:var(--sage-ink)}
.chc-current-label{font-size:16px;font-weight:500;margin-inline-start:8px;white-space:nowrap;display:flex;flex-direction:column;line-height:1.4}
.chc-sub-date{font-size:10.5px;font-weight:400;color:var(--ink-3);letter-spacing:.2px}

.chc-switches{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.chc-select{
  border:1.5px solid var(--edge);border-radius:999px;background:#fff;padding:8px 14px;
  font-family:inherit;font-size:12.5px;color:var(--ink-2);cursor:pointer;
}
.chc-btn-group{display:flex;border:1.5px solid var(--edge);border-radius:999px;padding:2px;background:#fff}
.chc-sw-btn{
  -webkit-appearance:none;appearance:none;border:0;background:transparent;cursor:pointer;
  padding:7px 14px;border-radius:999px;font-family:inherit;font-size:12px;color:var(--ink-3);
  transition:all .2s var(--ease);
}
.chc-sw-btn.is-on{background:var(--rail);color:#fff}
.chc-sw-btn:hover:not(.is-on){color:var(--ink)}

@media(max-width:640px){
  .chc-toolbar{flex-direction:column;align-items:stretch}
  .chc-nav{justify-content:center}
  .chc-switches{justify-content:center}
}

.chc-loading{padding:50px 10px;text-align:center;font-size:13px;color:var(--ink-3)}

/* ───────── نمای ماهانه ───────── */
.chc-month-grid{
  display:grid;grid-template-columns:repeat(7,1fr);gap:1px;
  background:var(--edge);border:1px solid var(--edge);border-radius:var(--r-md);overflow:hidden;
}
.chc-month-dow{
  background:rgba(255,255,255,.7);padding:10px 4px;text-align:center;font-size:12.5px;
  color:var(--ink-3);font-weight:600;
}
.chc-month-cell{
  background:#fff;min-height:92px;padding:8px 6px;position:relative;
}
.chc-month-cell-empty{background:rgba(255,255,255,.35)}
.chc-month-cell.is-today{background:var(--sage-soft)}
.chc-month-daynum{font-size:12.5px;color:var(--ink-2);margin-bottom:4px}
.chc-month-cell.is-today .chc-month-daynum{color:var(--sage-ink);font-weight:600}
.chc-month-events{display:flex;flex-direction:column;gap:3px}
.chc-month-event-dot{
  -webkit-appearance:none;appearance:none;border:0;text-align:right;cursor:pointer;
  background:color-mix(in srgb, var(--chc-accent) 16%, white);
  color:var(--chc-accent);border-inline-start:3px solid var(--chc-accent);
  border-radius:6px;padding:4px 7px;font-size:11px;font-family:inherit;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.chc-month-more{font-size:10px;color:var(--ink-3);padding:0 4px}
@media(max-width:640px){
  .chc-month-cell{min-height:64px;padding:5px 3px}
  .chc-month-event-dot{font-size:9px;padding:2px 4px}
}

/* ───────── نمای هفتگی ───────── */
.chc-week-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:8px}
@media(max-width:760px){.chc-week-grid{grid-template-columns:1fr;gap:10px}}
.chc-week-col{
  background:var(--panel);border:1px solid var(--edge);border-radius:var(--r-md);
  padding:12px;min-height:140px;
}
.chc-week-col.is-today{border-color:var(--sage);background:var(--sage-soft)}
.chc-week-col-head{text-align:center;margin-bottom:10px;padding-bottom:8px;border-bottom:1px solid var(--edge)}
.chc-week-dow{font-size:11px;color:var(--ink-3)}
.chc-week-daynum{font-size:17px;font-weight:500;margin-top:2px}
.chc-week-events{display:flex;flex-direction:column;gap:6px}
.chc-week-empty{text-align:center;color:var(--ink-3);font-size:11px;padding:10px 0}
.chc-week-event{
  -webkit-appearance:none;appearance:none;border:0;text-align:right;cursor:pointer;
  display:flex;flex-direction:column;gap:2px;width:100%;
  background:color-mix(in srgb, var(--chc-accent) 14%, white);
  border-inline-start:3px solid var(--chc-accent);border-radius:7px;padding:7px 9px;
  font-family:inherit;
}
.chc-week-event-time{font-size:10px;color:var(--chc-accent);font-weight:500}
.chc-week-event-title{font-size:12.5px;color:var(--ink)}

/* ───────── کارت فلایر (لیست/ویجت) ───────── */
.chc-widget-head{margin-bottom:16px}
.chc-widget-head h2{font-size:18px;font-weight:500;margin:0}

.chc-flyer-list{display:flex;flex-direction:column;gap:14px}
.chc-flyer-list-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
@media(max-width:680px){.chc-flyer-list-grid{grid-template-columns:1fr}}

.chc-flyer-card{
  display:flex;text-decoration:none;color:inherit;cursor:pointer;
  background:var(--panel);border:1px solid var(--edge);border-radius:var(--r-lg);
  overflow:hidden;transition:all .25s var(--ease);box-shadow:var(--shadow-md);
  -webkit-appearance:none;appearance:none;text-align:right;font-family:inherit;width:100%;padding:0;
}
.chc-flyer-card:hover{transform:translateY(-3px);box-shadow:var(--shadow-lg);border-color:color-mix(in srgb, var(--chc-accent) 30%, var(--edge))}
.chc-flyer-list-grid .chc-flyer-card{flex-direction:column}

.chc-flyer-img{
  position:relative;flex:0 0 150px;background:var(--sage-soft);overflow:hidden;
}
.chc-flyer-list-grid .chc-flyer-img{flex:none;height:150px}
.chc-flyer-img img{width:100%;height:100%;object-fit:cover;display:block}
.chc-flyer-placeholder{width:100%;height:100%;display:grid;place-items:center;font-size:34px}
.chc-flyer-date-badge{
  position:absolute;top:10px;right:10px;background:#fff;border-radius:10px;padding:6px 10px;
  text-align:center;box-shadow:0 4px 10px rgba(0,0,0,.12);line-height:1.3;
}
.chc-fdb-day{display:block;font-size:16px;font-weight:600;color:var(--chc-accent)}
.chc-fdb-month{display:block;font-size:9.5px;color:var(--ink-3)}

.chc-flyer-info{flex:1;padding:16px 18px;display:flex;flex-direction:column;min-width:0}
.chc-flyer-title{font-size:15px;font-weight:500;margin-bottom:6px}
.chc-flyer-desc{font-size:12.5px;color:var(--ink-2);line-height:1.8;margin-bottom:8px}
.chc-flyer-meta{font-size:12.5px;color:var(--ink-3);margin-bottom:10px}
.chc-flyer-arrow{
  margin-top:auto;display:flex;align-items:center;gap:6px;font-size:12px;
  color:var(--chc-accent);font-weight:500;
}
.chc-flyer-arrow svg{width:12px;height:12px;stroke:currentColor;fill:none;stroke-width:2}

@media(max-width:520px){
  .chc-flyer-card{flex-direction:column}
  .chc-flyer-img{flex:none;height:150px}
}

/* ───────── مودال جزئیات ───────── */
.chc-modal{
  position:fixed;inset:0;z-index:9990;display:flex;align-items:center;justify-content:center;padding:20px;
  background:rgba(31,30,27,.4);opacity:0;pointer-events:none;transition:opacity .25s var(--ease);
}
.chc-modal[hidden]{display:none!important}
.chc-modal.is-on{opacity:1;pointer-events:auto}
.chc-modal-in{
  position:relative;width:min(480px,100%);max-height:88vh;overflow-y:auto;
  background:#fff;border-radius:var(--r-lg);box-shadow:var(--shadow-lg);
  transform:translateY(14px);transition:transform .25s var(--ease);
}
.chc-modal.is-on .chc-modal-in{transform:none}
.chc-modal-close{
  position:absolute;top:14px;left:14px;z-index:2;width:32px;height:32px;border-radius:50%;
  border:0;background:rgba(255,255,255,.85);color:var(--ink-2);cursor:pointer;
  display:grid;place-items:center;backdrop-filter:blur(4px);
}
.chc-modal-close svg{width:14px;height:14px;stroke:currentColor;fill:none;stroke-width:2}
.chc-modal-flyer{aspect-ratio:16/9;overflow:hidden;background:var(--sage-soft)}
.chc-modal-flyer img{width:100%;height:100%;object-fit:cover}
.chc-modal-content{padding:24px}
.chc-modal-date{font-size:12px;color:var(--sage-ink);margin-bottom:8px}
.chc-modal-title{font-size:19px;font-weight:500;margin:0 0 12px;line-height:1.6}
.chc-modal-desc{font-size:13px;color:var(--ink-2);line-height:1.9;margin:0 0 12px}
.chc-modal-row{font-size:12.5px;color:var(--ink-2);margin-bottom:16px}
.chc-modal-actions{display:flex;gap:10px}

/* ═══════════════════════════════════════════
   صفحهٔ تک‌رویداد
   ═══════════════════════════════════════════ */
.chc-single-event{max-width:640px}
.chc-single-flyer{
  border-radius:var(--r-lg);overflow:hidden;margin-bottom:24px;box-shadow:var(--shadow-lg);
  border-bottom:4px solid var(--chc-accent);
}
.chc-single-flyer img{width:100%;display:block;max-height:420px;object-fit:cover}
.chc-single-cat{
  display:inline-block;font-size:12px;color:var(--chc-accent);
  background:color-mix(in srgb, var(--chc-accent) 14%, white);
  padding:5px 14px;border-radius:999px;margin-bottom:14px;
}
.chc-single-title{font-size:26px;font-weight:500;margin:0 0 20px;line-height:1.5}

.chc-single-datebox{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:12px;
  background:var(--panel);border:1px solid var(--edge);border-radius:var(--r-md);
  padding:16px 18px;margin-bottom:16px;
}
.chc-sdi-label{font-size:11px;color:var(--ink-3);margin-bottom:4px}
.chc-sdi-value{font-size:13.5px;font-weight:500}

.chc-countdown{
  display:flex;align-items:center;gap:10px;background:var(--sage-soft);color:var(--sage-ink);
  border-radius:var(--r-md);padding:14px 18px;margin-bottom:20px;font-size:13px;
}
.chc-countdown-num{font-size:22px;font-weight:600}
.chc-countdown-today{background:#FBF3E3;color:#7A5A1E;font-size:14px;font-weight:500}
.chc-countdown-past{background:rgba(31,30,27,.05);color:var(--ink-3)}

.chc-single-row{font-size:13.5px;color:var(--ink-2);margin-bottom:16px}
.chc-single-desc{font-size:14px;line-height:2;color:var(--ink-2);margin-bottom:28px}
.chc-single-desc p{margin:0 0 14px}
.chc-single-actions{display:flex;flex-wrap:wrap;gap:10px}

@media(prefers-reduced-motion:reduce){
  .chc-app *{transition-duration:.001s!important}
}

/* ═══════════════════════════════════════════
   تاریخ دوگانه (زیرنویس میلادی زیر شمسی)
   ═══════════════════════════════════════════ */
.chc-fdb-sub{display:block;font-size:9px;color:var(--ink-3);margin-top:1px;direction:ltr}
.chc-single-date-main{position:relative}
.chc-sdi-sub{font-size:11.5px;color:var(--ink-3);margin-top:4px;direction:ltr}

/* ═══════════════════════════════════════════
   چیپ‌های ساعت چند کشور
   ═══════════════════════════════════════════ */
.chc-tz-section{margin-bottom:20px}
.chc-tz-section-label{font-size:12px;color:var(--ink-3);margin-bottom:10px}
.chc-tz-chips{display:flex;flex-wrap:wrap;gap:10px}
.chc-tz-chip{
  display:flex;align-items:center;gap:10px;
  background:var(--panel);border:1px solid var(--edge);border-radius:var(--r-md);
  padding:10px 14px;transition:all .2s var(--ease);
}
.chc-tz-chip:hover{border-color:var(--sage);transform:translateY(-1px);box-shadow:var(--shadow-md)}
.chc-tz-flag{font-size:22px;line-height:1}
.chc-tz-info{display:flex;flex-direction:column;gap:1px}
.chc-tz-time{font-size:16px;font-weight:600;color:var(--ink);direction:ltr;text-align:right}
.chc-tz-label{font-size:11px;color:var(--ink-3)}
.chc-tz-diff{
  font-size:9.5px;color:#8A6A2E;background:rgba(181,134,47,.14);
  padding:2px 8px;border-radius:999px;white-space:nowrap;align-self:flex-start;
}

/* در مودال، چیپ‌ها کمی جمع‌وجورتر باشند */
.chc-modal-content .chc-tz-chips{margin:14px 0}
.chc-modal-content .chc-tz-chip{padding:8px 11px}
.chc-modal-content .chc-tz-flag{font-size:18px}
.chc-modal-content .chc-tz-time{font-size:14px}

/* ═══════════════════════════════════════════
   سوپرایز ۱: پالس «امروز» در نمای ماهانه
   ═══════════════════════════════════════════ */
.chc-month-cell.is-today .chc-month-daynum{
  position:relative;display:inline-flex;align-items:center;justify-content:center;
  width:22px;height:22px;border-radius:50%;background:var(--sage);color:#fff!important;
}
.chc-month-cell.is-today .chc-month-daynum::after{
  content:'';position:absolute;inset:-3px;border-radius:50%;border:1.5px solid var(--sage);
  animation:chcPulse 2.2s ease-out infinite;
}
@keyframes chcPulse{
  0%{transform:scale(.85);opacity:.9}
  70%{transform:scale(1.5);opacity:0}
  100%{opacity:0}
}
.chc-week-col.is-today .chc-week-daynum{color:var(--sage-ink)}

/* ═══════════════════════════════════════════
   سوپرایز ۲: راهنمای رنگ دسته‌بندی (Legend)
   ═══════════════════════════════════════════ */
.chc-legend{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 18px;padding:0 2px}
.chc-legend-item{
  display:flex;align-items:center;gap:6px;font-size:11.5px;color:var(--ink-2);
  background:rgba(255,255,255,.5);border:1px solid var(--edge);border-radius:999px;padding:5px 12px;
}
.chc-legend-dot{width:8px;height:8px;border-radius:50%;background:var(--chc-accent);flex:none}

/* ═══════════════════════════════════════════
   سوپرایز ۳: گذار نرم بین نماها
   ═══════════════════════════════════════════ */
.chc-body{animation:chcFadeIn .35s var(--ease)}
@keyframes chcFadeIn{
  from{opacity:0;transform:translateY(6px)}
  to{opacity:1;transform:none}
}

/* ═══════════════════════════════════════════
   خوانایی بهتر — بزرگ‌تر کردن چند عنصر کلیدی
   ═══════════════════════════════════════════ */
.chc-flyer-title{font-size:16px}
.chc-flyer-desc{font-size:13px}
.chc-modal-title{font-size:21px}
.chc-modal-desc{font-size:13.5px}
.chc-sdi-value{font-size:15px}
.chc-month-daynum{font-size:13.5px}
.chc-week-daynum{font-size:18px}
