/*
 * pages.css - temples page, text timings, empty-page state, E-Darshan, Utsav calendar, Bhajan player.
 */

/* ---------- homepage boxes ---------- */
.timing-list { list-style: none; margin: 0 0 10px; padding: 0; text-align: left; }
.timing-list li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px dashed rgba(217, 164, 65, .5); font-size: 14px; }
.timing-name { color: #3a2a1f; font-weight: 500; }
.timing-time { color: #c8102e; white-space: nowrap; font-weight: 600; }
.box-link { display: inline-block; margin-top: 4px; color: #c8102e; font-weight: 600; font-size: 14px; }
.box-links { text-align: left; }
.box-links li { margin-bottom: 8px; }

/* ---------- temples overview ---------- */
.temple-group { margin-top: 40px; }
.temple-group:first-of-type { margin-top: 10px; }
.temple-group-title {
    display: flex; align-items: center; gap: 14px; margin: 0 0 22px;
    color: #8f0b21; font: 600 24px/1.3 "Noto Sans Devanagari", Poppins, sans-serif; text-transform: none; letter-spacing: 0;
}
.temple-group-title::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, #d9a441, rgba(217,164,65,0)); }
.temple-grid { row-gap: 24px; }
.temple-card {
    display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: 16px; background: #fff;
    box-shadow: 0 8px 22px rgba(120, 60, 0, .1), inset 0 0 0 1px rgba(217, 164, 65, .4); color: #3a2a1f !important;
    transition: transform .45s cubic-bezier(.2,.65,.3,1), box-shadow .45s ease;
}
.temple-card:hover, .temple-card:focus-visible { transform: translateY(-5px); box-shadow: 0 18px 36px rgba(120, 60, 0, .2), inset 0 0 0 1px rgba(217, 164, 65, .8); }
.temple-card-media { position: relative; display: block; height: 170px; overflow: hidden; background: #f6e7cd; }
.temple-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2,.65,.3,1); }
.temple-card:hover .temple-card-media img { transform: scale(1.06); }
.temple-card-media.is-placeholder {
    display: flex; align-items: center; justify-content: center;
    background: url('../images/lotus-mandala.svg') center / 260px no-repeat, radial-gradient(circle at 50% 45%, #fff6e3, #f8dfb3);
}
.temple-card-icon { display: inline-flex; width: 78px; height: 78px; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255,255,255,.85); color: #c8102e; font-size: 42px; box-shadow: 0 0 0 4px rgba(217, 164, 65, .35); }
.temple-card-body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 18px; text-align: left; }
.temple-card-title { color: #8f0b21; font: 600 17px/1.4 "Noto Sans Devanagari", Poppins, sans-serif; }
.temple-card-text { margin-top: 6px; color: #6b5a4a; font-size: 13.5px; line-height: 1.6; }
.temple-card-cta { margin-top: auto; padding-top: 10px; color: #c8102e; font-size: 14px; font-weight: 600; }

.related-temples { background: #fffaf1; }
.related-title { color: #8f0b21; font: 600 26px/1.3 "Noto Sans Devanagari", Poppins, sans-serif; text-transform: none; letter-spacing: 0; margin: 0; }
.related-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.related-chip {
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; background: #fff; color: #7a4a1a !important;
    border: 1px solid rgba(217, 164, 65, .55); font: 500 14px/1.3 "Noto Sans Devanagari", Poppins, sans-serif; transition: all .25s ease;
}
.related-chip .nk-icon { color: #c8102e; font-size: 18px; }
.related-chip:hover { border-color: #c8102e; color: #c8102e !important; transform: translateY(-2px); }
.related-all { margin-top: 18px; }
.related-all a { color: #c8102e; font-weight: 600; }

/* ---------- empty page ("coming soon") ---------- */
.coming-soon {
    max-width: 640px; margin: 10px auto; padding: 36px 28px; border-radius: 20px; text-align: center;
    background: url('../images/lotus-mandala.svg') center / 420px no-repeat, linear-gradient(180deg, #fffcf5, #fdf1dc);
    box-shadow: 0 10px 28px rgba(120, 60, 0, .1), inset 0 0 0 1px rgba(217, 164, 65, .45);
}
.coming-soon-icon { display: inline-flex; width: 70px; height: 70px; align-items: center; justify-content: center; border-radius: 50%; background: #fff; color: #c8102e; font-size: 38px; box-shadow: 0 0 0 4px rgba(217,164,65,.3); }
.coming-soon-title { margin: 14px 0 8px; color: #8f0b21; font: 600 22px/1.35 "Noto Sans Devanagari", Poppins, sans-serif; text-transform: none; letter-spacing: 0; }
.coming-soon-text { color: #5a4a3e; margin: 0 auto 18px; max-width: 480px; text-align: center; }
.coming-soon-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px; }
.coming-soon-link { color: #c8102e; font-weight: 600; }

/* ---------- E-Darshan ---------- */
.live-frame { position: relative; max-width: 900px; margin: 0 auto 30px; padding: 10px; border-radius: 20px; background: linear-gradient(180deg, #fbe7ad, #d9a441); box-shadow: 0 20px 44px rgba(120, 60, 0, .25); }
.live-badge { position: absolute; z-index: 2; top: 22px; left: 22px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: #c8102e; color: #fff; font: 600 13px/1.4 Poppins, sans-serif; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: nkLive 1.4s ease-in-out infinite; }
@keyframes nkLive { 50% { opacity: .3; } }
.live-note, .edarshan-note { color: #6b5a4a; margin: 14px auto 26px; max-width: 640px; text-align: center; }
.edarshan-videos { row-gap: 26px; }
.edarshan-video { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; }
.edarshan-thumb { position: relative; display: block; overflow: hidden; border-radius: 14px; padding: 7px; background: #fff; box-shadow: 0 8px 22px rgba(120, 60, 0, .12), inset 0 0 0 1px rgba(217, 164, 65, .45); }
.edarshan-thumb img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 9px; transition: transform 1s cubic-bezier(.2,.65,.3,1); }
.edarshan-play { position: absolute; left: 50%; top: 50%; width: 62px; height: 62px; margin: -31px 0 0 -31px; border-radius: 50%; background: rgba(200, 16, 46, .9); box-shadow: 0 0 0 5px rgba(255, 255, 255, .6); transition: transform .3s ease; }
.edarshan-play::after { content: ''; position: absolute; left: 25px; top: 19px; border-style: solid; border-width: 12px 0 12px 19px; border-color: transparent transparent transparent #fff; }
.edarshan-video:hover .edarshan-thumb img { transform: scale(1.05); }
.edarshan-video:hover .edarshan-play { transform: scale(1.1); }
.edarshan-title { display: block; margin-top: 10px; color: #8f0b21; font: 600 16px/1.4 "Noto Sans Devanagari", Poppins, sans-serif; }
.edarshan-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 18px; margin: 34px 0 10px; }
.edarshan-info { margin-top: 40px; }

/* ---------- Utsav calendar ---------- */
.event-month { max-width: 860px; margin: 0 auto 34px; }
.event-month-title { color: #8f0b21; font: 600 22px/1.3 "Noto Sans Devanagari", Poppins, sans-serif; text-transform: none; letter-spacing: 0; margin: 0 0 16px; }
.event-list { display: grid; gap: 16px; }
.event-item { display: flex; gap: 18px; padding: 18px; border-radius: 16px; background: #fff; box-shadow: 0 8px 22px rgba(120, 60, 0, .1), inset 0 0 0 1px rgba(217, 164, 65, .4); }
.event-date { flex: 0 0 74px; height: 80px; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: linear-gradient(135deg, #e0701b, #c8102e); color: #fff; }
.event-day { font: 700 30px/1 "Roboto Condensed", sans-serif; }
.event-weekday { font-size: 13px; margin-top: 4px; }
.event-body { flex: 1; text-align: left; }
.event-title { margin: 0 0 4px; font: 600 19px/1.35 "Noto Sans Devanagari", Poppins, sans-serif; text-transform: none; letter-spacing: 0; }
.event-title a { color: #8f0b21; }
.event-meta { margin: 0 0 6px; color: #9a6b1f; font-size: 14px; }
.event-text { margin: 0 0 8px; color: #5a4a3e; font-size: 14.5px; }
.event-ics { display: inline-flex; align-items: center; gap: 6px; color: #c8102e; font-size: 14px; font-weight: 600; }

/* ---------- Bhajan player ---------- */
.bhajan-player {
    clear: both; margin: 10px 0 28px; padding: 22px; border-radius: 20px; color: #3a2a1f;
    background: url('../images/lotus-mandala.svg') right -80px center / 340px no-repeat, linear-gradient(135deg, #fffaf0, #fdecc8);
    box-shadow: 0 12px 30px rgba(120, 60, 0, .14), inset 0 0 0 1px rgba(217, 164, 65, .5);
}
.bp-now { display: flex; align-items: center; gap: 16px; }
.bp-art { flex: 0 0 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #e0701b, #c8102e); color: #fff; box-shadow: 0 0 0 4px rgba(243, 213, 138, .6); }
.bp-art svg { width: 38px; height: 38px; }
.bhajan-player.is-playing .bp-art { animation: nkBreath 3s ease-in-out infinite; }
@keyframes nkBreath { 50% { transform: scale(1.06); box-shadow: 0 0 0 8px rgba(243, 213, 138, .35); } }
.bp-label { display: block; color: #9a6b1f; font-size: 13px; }
.bp-title { display: block; color: #8f0b21; font: 600 19px/1.35 "Noto Sans Devanagari", Poppins, sans-serif; }
.bp-controls { display: flex; justify-content: center; align-items: center; gap: 14px; margin: 16px 0 8px; }
.bp-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #fff; color: #8f0b21; box-shadow: inset 0 0 0 1px rgba(217, 164, 65, .6); cursor: pointer; transition: transform .2s ease; }
.bp-btn svg { width: 22px; height: 22px; }
.bp-btn:hover { transform: scale(1.06); }
.bp-play { width: 58px; height: 58px; background: linear-gradient(135deg, #e0701b, #c8102e); color: #fff; box-shadow: 0 8px 18px rgba(200, 16, 46, .3); }
.bp-play svg { width: 28px; height: 28px; }
.bp-progress { display: flex; align-items: center; gap: 10px; }
.bp-time { min-width: 42px; color: #6b5a4a; font-size: 13px; font-variant-numeric: tabular-nums; text-align: center; }
.bp-seek { flex: 1; accent-color: #c8102e; cursor: pointer; }
.bp-list { list-style: none; margin: 16px 0 0; padding: 0; counter-reset: none; }
.bp-item { display: flex; align-items: center; gap: 8px; border-top: 1px dashed rgba(217, 164, 65, .55); }
.bp-pick { flex: 1; display: flex; align-items: center; gap: 12px; padding: 10px 6px; border: 0; background: none; text-align: left; color: #3a2a1f; cursor: pointer; font: 500 15px/1.4 "Noto Sans Devanagari", Poppins, sans-serif; }
.bp-num { flex: 0 0 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #fff; color: #9a6b1f; font-size: 13px; box-shadow: inset 0 0 0 1px rgba(217, 164, 65, .6); }
.bp-item.is-active .bp-pick { color: #c8102e; font-weight: 600; }
.bp-item.is-active .bp-num { background: #c8102e; color: #fff; box-shadow: none; }
.bp-download { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 50%; color: #9a6b1f; }
.bp-download svg { width: 20px; height: 20px; }
.bp-download:hover { background: #fff; color: #c8102e; }

@media (prefers-reduced-motion: reduce) {
    .bhajan-player.is-playing .bp-art, .live-dot { animation: none; }
}
