/* ─── ZemZem Prayer Times – Frontend Styles ──────────── */

/* ════════════════════════════════════════════════════════
   HOMEPAGE WIDGET
   ════════════════════════════════════════════════════════ */

.zpt-widget {
    background: var(--color-white, #ffffff);
    border-radius: var(--radius-lg, 18px);
    overflow: hidden;
    box-shadow: var(--shadow-md, 0 10px 30px rgba(0,0,0,0.08));
    max-width: 420px;
    width: 100%;
    position: relative;
}

.zpt-widget-header {
    background: linear-gradient(135deg, #258c77 0%, #1f7462 100%);
    color: #fff;
    padding: 35px 24px 16px;
    text-align: center;
    position: relative;
}

.zpt-widget-title {
    margin: 0 0 4px;
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.zpt-widget-date {
    font-size: 0.82rem;
    opacity: 0.85;
}

/* ── Language Switcher ──────────────────────────────────── */
.zpt-lang-switch {
    position: absolute;
    top: 12px;
    right: 14px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 20px;
    padding: 4px 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: background 0.25s;
    font-size: 1rem;
    line-height: 1;
}

.zpt-lang-switch:hover {
    background: rgba(255,255,255,0.25);
}

.zpt-lang-flag {
    opacity: 0.5;
    transition: opacity 0.25s;
    font-size: 1.1rem;
}

.zpt-lang-flag.active {
    opacity: 1;
}

/* ── Prayer Rows ────────────────────────────────────────── */
.zpt-widget-times {
    padding: 6px 0;
}

.zpt-time-row {
    display: flex;
    align-items: center;
    padding: 11px 24px;
    transition: background 0.25s;
    gap: 10px;
}

.zpt-time-row:hover {
    background: rgba(37,140,119,0.04);
}

.zpt-time-row--next {
    background: rgba(37,140,119,0.08) !important;
    border-left: 3px solid #258c77;
    padding-left: 21px;
}

.zpt-time-row--sunrise {
    opacity: 0.65;
}

.zpt-time-row--mosque {
    background: rgba(212,168,67,0.06);
    border-left: 3px solid #d4a843;
    padding-left: 21px;
}

.zpt-time-row--teravija {
    background: linear-gradient(90deg, rgba(212,168,67,0.08), rgba(37,140,119,0.04));
    border-left: 3px solid #d4a843;
    padding-left: 21px;
}

.zpt-time-icon {
    font-size: 1.15rem;
    width: 28px;
    text-align: center;
    flex-shrink: 0;
}

.zpt-time-name {
    flex: 1;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--color-text, #1f2a2e);
}

.zpt-time-value {
    font-size: 1.05rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--color-text, #1f2a2e);
    min-width: 45px;
    text-align: right;
}

.zpt-time-badge {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #258c77;
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    white-space: nowrap;
}

.zpt-mosque-countdown {
    font-size: 0.72rem;
    font-weight: 600;
    color: #d4a843;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* ── Countdown ──────────────────────────────────────────── */
.zpt-countdown {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #258c77 0%, #1f7462 100%);
    color: #fff;
}

.zpt-countdown-label {
    font-size: 0.82rem;
    opacity: 0.85;
}

.zpt-countdown-timer {
    font-size: 1.15rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

/* ── Clock ──────────────────────────────────────────────── */
.zpt-widget-clock {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px;
    background: #fafafa;
    border-top: 1px solid rgba(0,0,0,0.04);
}

.zpt-clock-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-muted, #5a6b72);
}

.zpt-current-time {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-muted, #5a6b72);
    font-variant-numeric: tabular-nums;
}
.zpt-current-time-text {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-muted, #5a6b72);
    font-variant-numeric: tabular-nums;
}

/* ── Style Variations ──────────────────────────────────── */
.zpt-widget--inline {
    max-width: 100%;
    border-radius: var(--radius-md, 12px);
}

.zpt-widget--inline .zpt-widget-header {
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.zpt-widget--inline .zpt-lang-switch {
    position: static;
}

.zpt-widget--inline .zpt-widget-times {
    display: flex;
    flex-wrap: wrap;
    padding: 12px 16px;
    gap: 4px;
}

.zpt-widget--inline .zpt-time-row {
    flex: 1 0 140px;
    padding: 8px 12px;
    border-radius: 8px;
}

.zpt-widget--minimal {
    background: transparent;
    box-shadow: none;
    max-width: 100%;
}

.zpt-widget--minimal .zpt-widget-header {
    background: transparent;
    color: inherit;
    padding: 0 0 10px;
}

.zpt-widget--minimal .zpt-widget-title {
    color: var(--color-text, #1f2a2e);
}

.zpt-widget--minimal .zpt-widget-date {
    color: var(--color-muted, #5a6b72);
    opacity: 1;
}

.zpt-widget--minimal .zpt-lang-switch {
    background: rgba(0,0,0,0.05);
    border-color: rgba(0,0,0,0.1);
}

.zpt-widget--minimal .zpt-widget-clock {
    display: none;
}

/* ── No times ──────────────────────────────────────────── */
.zpt-no-times {
    padding: 30px 24px;
    text-align: center;
    color: var(--color-muted, #5a6b72);
    font-style: italic;
}


/* ════════════════════════════════════════════════════════
   KIOSK EMBED (shortcode version)
   ════════════════════════════════════════════════════════ */

.zpt-kiosk-embed {
    background: linear-gradient(135deg, #0a1628 0%, #132743 50%, #0d1f3c 100%);
    color: #fff;
    border-radius: var(--radius-lg, 18px);
    padding: clamp(20px, 3vw, 40px);
    overflow: hidden;
}

.zpt-kiosk-header {
    text-align: center;
    margin-bottom: 24px;
}

.zpt-kiosk-mosque {
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    font-weight: 700;
}

.zpt-kiosk-date {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    margin-top: 4px;
}

.zpt-kiosk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.zpt-kiosk-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 16px 10px;
    text-align: center;
    transition: all 0.3s;
    position: relative;
}

.zpt-kiosk-card--active {
    background: rgba(37,140,119,0.2);
    border-color: #258c77;
    box-shadow: 0 0 20px rgba(37,140,119,0.3);
}

.zpt-kiosk-card--sunrise {
    opacity: 0.7;
}

.zpt-kiosk-card--mosque {
    background: rgba(212,168,67,0.1);
    border-color: rgba(212,168,67,0.3);
}

.zpt-kiosk-card--teravija {
    background: linear-gradient(135deg, rgba(212,168,67,0.12), rgba(37,140,119,0.08));
    border-color: rgba(212,168,67,0.3);
}

.zpt-kiosk-card-icon {
    font-size: 1.5rem;
    margin-bottom: 6px;
}

.zpt-kiosk-card-arabic {
    font-size: 0.85rem;
    color: #d4a843;
    font-family: 'Amiri', serif;
    margin-bottom: 2px;
}

.zpt-kiosk-card-name {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 6px;
}

.zpt-kiosk-card-time {
    font-size: 1.3rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.zpt-kiosk-card-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #258c77;
    color: #fff;
    font-size: 0.55rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.zpt-kiosk-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.zpt-kiosk-clock {
    font-size: 1.5rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.zpt-kiosk-countdown .zpt-countdown-label {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
    display: block;
    text-align: right;
}

.zpt-kiosk-countdown .zpt-countdown-timer {
    font-size: 1.3rem;
    font-weight: 600;
    color: #258c77;
    font-variant-numeric: tabular-nums;
}

.zpt-kiosk-empty {
    text-align: center;
    padding: 40px;
    color: rgba(255,255,255,0.5);
}

.zpt-mosque-countdown {
    display: block;
    font-size: 0.7rem;
    font-weight: 500;
    color: #d4a843;
    margin-top: 4px;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 768px) {
    .zpt-kiosk-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .zpt-kiosk-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ── Prayer Alert Overlay (Kiosk only) ─────────────────── */
.zpt-prayer-alert {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zpt-prayer-alert-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(10,22,40,0.97) 0%, rgba(5,12,25,0.99) 100%);
    animation: zpt-alert-bg-in 0.6s ease-out;
}

.zpt-prayer-alert-content {
    position: relative;
    z-index: 1;
    text-align: center;
    animation: zpt-alert-content-in 0.8s ease-out;
}

.zpt-prayer-alert-icon {
    font-size: clamp(4rem, 8vw, 8rem);
    margin-bottom: 2vh;
    animation: zpt-alert-pulse 2s infinite ease-in-out;
}

.zpt-prayer-alert-name {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2rem, 5vw, 4.5rem);
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 3vh;
}

.zpt-prayer-alert-timer {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(5rem, 12vw, 12rem);
    font-weight: 700;
    color: #258c77;
    font-variant-numeric: tabular-nums;
    letter-spacing: 6px;
    text-shadow: 0 0 60px rgba(37,140,119,0.5), 0 0 120px rgba(37,140,119,0.2);
    animation: zpt-timer-glow 1.5s infinite alternate ease-in-out;
}

.zpt-prayer-alert-arrived {
    animation: zpt-arrived-in 0.8s ease-out;
}

.zpt-prayer-alert-arrived-text {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 700;
    color: #d4a843;
    text-transform: uppercase;
    letter-spacing: 4px;
    text-shadow: 0 0 40px rgba(212,168,67,0.4);
    animation: zpt-arrived-pulse 1.5s infinite ease-in-out;
}

@keyframes zpt-alert-bg-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zpt-alert-content-in {
    from { opacity: 0; transform: scale(0.8) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes zpt-alert-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes zpt-timer-glow {
    from { text-shadow: 0 0 40px rgba(37,140,119,0.3), 0 0 80px rgba(37,140,119,0.1); }
    to { text-shadow: 0 0 80px rgba(37,140,119,0.6), 0 0 160px rgba(37,140,119,0.3); }
}

@keyframes zpt-arrived-in {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes zpt-arrived-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.85; transform: scale(1.03); }
}
