/* prayer-timings.css
 * Same lightweight approach as ramadan-calendar.css.
 * Green (#16a34a) hero to visually distinguish prayer times pages
 * from the Ramadan calendar's blue (#2563eb).
 * Loaded only on /prayer-timings/* pages.
 */

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

.ptt-header { text-align: center; margin-bottom: 1.25rem; }
.ptt-title { font-size: 22px; font-weight: 500; margin: 0 0 6px; }
.ptt-subtitle { font-size: 13px; color: #64748b; margin: 0; }

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

/* Next-prayer countdown hero — green */
.ptt-hero { background: #16a34a; border-radius: 14px; padding: 18px 16px; margin-bottom: 10px; text-align: center; }
.ptt-hero-label { font-size: 11px; color: rgba(255,255,255,0.85); margin: 0 0 4px; }
.ptt-countdown { font-size: 32px; font-weight: 500; color: #fff; margin: 0; letter-spacing: 0.5px; }
.ptt-hero-sub { font-size: 11px; color: rgba(255,255,255,0.85); margin: 6px 0 0; }

/* Today's prayer grid — 7 cards (Imsak, Fajr, Sunrise, Dhuhr, Asr, Maghrib, Isha) */
.ptt-prayers-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 1.25rem; }
.ptt-prayer-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 10px 8px; text-align: center; }
.ptt-prayer-card.active { background: #f0fdf4; border-color: #16a34a; }
.ptt-prayer-name { font-size: 10px; color: #94a3b8; margin: 0 0 4px; text-transform: lowercase; }
.ptt-prayer-time { font-size: 15px; font-weight: 600; margin: 0; }
.ptt-prayer-card.active .ptt-prayer-name { color: #16a34a; }
.ptt-prayer-card.active .ptt-prayer-time { color: #16a34a; }

/* Monthly table */
.ptt-table-wrap { background: #fff; border-radius: 14px; border: 1px solid #e2e8f0; overflow-x: auto; margin-bottom: 1.25rem; }
.ptt-table { width: 100%; border-collapse: collapse; font-size: 12px; min-width: 520px; }
.ptt-table thead tr { background: #f8fafc; }
.ptt-table th { padding: 9px 6px; font-size: 10px; color: #94a3b8; font-weight: 500; text-align: left; white-space: nowrap; }
.ptt-table th:first-child { padding-left: 12px; }
.ptt-table td { padding: 8px 6px; border-top: 1px solid #f1f5f9; white-space: nowrap; }
.ptt-table td:first-child { padding-left: 12px; }
.ptt-table tr.today { background: #f0fdf4; box-shadow: inset 3px 0 0 0 #16a34a; }
.ptt-table tr.today td { font-weight: 600; color: #16a34a; }

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

.ptt-disclaimer { font-size: 11px; color: #94a3b8; text-align: center; margin-top: 0.75rem; line-height: 1.5; }
.ptt-footer-note { font-size: 11px; color: #94a3b8; text-align: center; margin-top: 0.5rem; }
.ptt-empty-state { background: #fff; border-radius: 14px; padding: 1.5rem; text-align: center; color: #64748b; border: 1px solid #e2e8f0; }

/* Index / landing page */
.ptt-hero-info { padding: 24px 16px; }
.ptt-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; }
.ptt-info-block { text-align: center; }
.ptt-stat-label { font-size: 11px; color: #94a3b8; margin: 0 0 4px; }
.ptt-stat-value { font-size: 20px; font-weight: 500; margin: 0; }

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

.ptt-province-title { font-size: 15px; font-weight: 600; color: #16a34a; margin: 0 0 0.5rem; }
.ptt-city-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.ptt-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; }
.ptt-city-grid a:hover { border-color: #16a34a; }

.ptt-about-card { background: #f1f5f9; border-radius: 14px; padding: 14px 16px; margin-bottom: 1.25rem; }
.ptt-about-label { font-size: 11px; color: #94a3b8; margin: 0 0 6px; }
.ptt-about-text { font-size: 13px; color: #475569; margin: 0; line-height: 1.6; }

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