/* ramadan-calendar.css
 * Hand-written, minimal, no framework. Replaces Tailwind CDN entirely.
 * Matches the approved mockup's color scheme and layout exactly.
 * Why this matters for Core Web Vitals: no JS framework parsing required
 * before styles apply -> directly helps LCP and avoids CLS layout jumps.
 * Loaded only on calendar pages (see functions.php wp_enqueue_style gate).
 */

.rct-wrap {
    max-width: 940px;
    margin: 0 auto;
    padding: 1rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Poppins, sans-serif;
    color: #1e293b;
}

.rct-header { margin-bottom: 1.25rem; }
.rct-title { font-size: 24px; font-weight: 700; margin: 0 0 6px; }
.rct-subtitle { font-size: 15px; color: #64748b; margin: 0; }

.rct-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 1rem; }
.rct-label { display: block; font-size: 17px; color: #94a3b8; margin-bottom: 4px; }
.rct-select { width: 100%; background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 10px 12px; font-weight: 500; font-size: 15px; color: #1e293b; }

/* Roza / Ashra progress card */
.rct-card { background: #f1f5f9; border-radius: 14px; padding: 14px 16px; margin-bottom: 10px; }
.rct-progress-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.rct-progress-row span:first-child { font-size: 12px; font-weight: 500; color: #475569; }
.rct-progress-row span:last-child { font-size: 11px; color: #94a3b8; }
.rct-progress-track { display: flex; gap: 3px; height: 6px; }
.rct-progress-seg { flex: 1; background: #e2e8f0; border-radius: 3px; }
.rct-progress-seg.filled { background: #2563eb; }
.rct-progress-labels { display: flex; justify-content: space-between; margin-top: 4px; }
.rct-progress-labels span { font-size: 10px; color: #94a3b8; }

/* Iftar countdown hero — blue, matches mockup */
.rct-hero { background: #2563eb; border-radius: 14px; padding: 25px 10px; margin-bottom: 10px; text-align: center; }
.rct-hero-label { font-size: 22px; color: rgba(255,255,255,0.85); margin: 0 0 12px; }
.rct-countdown { font-size: 38px; font-weight: 500; color: #fff; margin: 0; letter-spacing: 0.5px; }
.rct-hero-sub { font-size: 18px; color: rgba(255,255,255,0.85); margin: 12px 0 0; }

.rct-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 1.25rem; }
.rct-stat { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 12px; text-align: center; }
.rct-stat-label { font-size: 15px; color: #94a3b8; margin: 0 0 4px; }
.rct-stat-value { font-size: 20px; font-weight: 500; margin: 0; }

/* Action buttons */
.rct-actions { display: flex; gap: 8px; margin-bottom: 1.5rem; }
.rct-action-btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; padding: 10px 12px; background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; color: #1e293b; cursor: pointer; font-family: inherit; }
.rct-action-btn:hover { background: #f8fafc; }
.rct-action-btn svg { width: 16px; height: 16px; }
.rct-action-btn.active { background: #2563eb; color: #fff; border-color: #2563eb; }

.rct-table-wrap { background: #fff; border-radius: 14px; border: 1px solid #e2e8f0; overflow: hidden; margin-bottom: 1.25rem; }
.rct-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.rct-table thead tr { background: #f8fafc; }
.rct-table th { padding: 9px 4px; font-size: 10px; color: #94a3b8; font-weight: 500; text-align: left; }
.rct-table th.center { text-align: center; width: 36px; }
.rct-table td { padding: 8px 4px; border-top: 1px solid #e2e8f0; }
.rct-table td:first-child, .rct-table th:first-child { padding-left: 12px; }
.rct-table td:last-child, .rct-table th:last-child { padding-right: 12px; }
.rct-table tr.today { background: #eff6ff; box-shadow: inset 3px 0 0 0 #2563eb; }
.rct-table tr.today td { font-weight: 500; color: #2563eb; }
.rct-table td.center { text-align: center; color: #94a3b8; }

.rct-shift-cell { font-size: 11px; color: #94a3b8; display: flex; align-items: center; justify-content: center; gap: 2px; }
.rct-shift-cell svg { width: 12px; height: 12px; }
tr.today .rct-shift-cell { color: #2563eb; }

.rct-dua-card { background: #f1f5f9; border-radius: 14px; padding: 14px 16px; margin-bottom: 1.25rem; }
.rct-dua-label { font-size: 16px; color: #030303; margin: 0 0 6px; }
.rct-dua-text { font-size: 16px; line-height: 1.6; margin: 0; color: #475569; font-style: italic; }

.rct-city-links { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 0.5rem; }
.rct-city-links-label { font-size: 16px; color: #94a3b8; padding-top: 6px; }
.rct-city-link { font-size: 15px; padding: 5px 12px; border: 1px solid #e2e8f0; border-radius: 10px; color: #475569; text-decoration: none; }
.rct-city-link:hover { background: #f8fafc; }

.rct-comparison-note { font-size: 14px; color: #94a3b8; margin: 0 0 0.75rem; }
.rct-disclaimer { font-size: 14px; color: #94a3b8; text-align: center; margin-top: 0.75rem; line-height: 1.5; }
.rct-footer-note { font-size: 14px; color: #94a3b8; text-align: center; margin-top: 1rem; }

.rct-empty-state { background: #fff; border-radius: 14px; padding: 1.5rem; text-align: center; color: #64748b; border: 1px solid #e2e8f0; margin-bottom: 20px; }

/* Landing page / info hub — same blue scheme as city pages */
.rct-hero-info { padding: 24px 16px; }
.rct-countdown-days { font-size: 28px; }
.rct-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; background: #fff; border-radius: 14px; border: 1px solid #e2e8f0; padding: 1rem; margin-bottom: 1.25rem; }
.rct-info-block { text-align: center; }
.rct-stat-value-sm { font-size: 18px; font-weight: 500; margin: 0; }

.rct-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 1rem 0 1.25rem; }
.rct-tab { display: inline-flex; align-items: center; gap: 6px; border-radius: 10px; background: #f1f5f9; border: 1px solid transparent; color: #475569; font-size: 13px; font-weight: 500; cursor: pointer; font-family: inherit; }
.rct-tab:hover { background: #e2e8f0; }
.rct-tab.active { background: #2563eb; color: #fff; }
.rct-tab-count { font-size: 11px; opacity: 0.75; background: rgba(0,0,0,0.08); border-radius: 999px; padding: 1px 7px; }
.rct-tab.active .rct-tab-count { background: rgba(255,255,255,0.2); }

.rct-tab-panel { display: none; margin-bottom: 1.5rem; }
.rct-tab-panel.active { display: block; }
.rct-province-group { margin-bottom: 1.5rem; }
.rct-province-title { font-size: 15px; font-weight: 600; color: #2563eb; margin: 0 0 0.5rem; }
.rct-city-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.rct-city-grid a { display: block; padding: 8px 12px; background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; color: #1e293b; text-decoration: none; font-size: 13px; }
.rct-city-grid a:hover { border-color: #2563eb; }

@media (max-width: 480px) {
    .rct-countdown { font-size: 26px; }
    .rct-controls { grid-template-columns: 1fr; }
}