/* ============================================
   SIPO API Global Styles — Mornington Thai
   ============================================
   Premium styling for:
   - Status Strip
   - Closed / Offer Modals
   - Dynamic Menu Integration
   ============================================ */

:root {
    --color-status-green: #22c55e;
    --color-status-red: #ef4444;
    --color-gold: #e1be45;
    --color-purple: #5619b3;
    --modal-bg: #1a1a1a;
    --modal-text: #ffffff;
}

/* ═══════════ STATUS STRIP ═══════════ */
.status-strip {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10001;
    background: #0f172a;
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 0;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: transform 0.3s ease;
}

.status-strip-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.status-strip-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-status-red);
    box-shadow: 0 0 10px var(--color-status-red);
}

.status-strip.open .status-strip-dot {
    background: var(--color-status-green);
    box-shadow: 0 0 10px var(--color-status-green);
}

.countdown-timer {
    color: var(--color-gold);
    font-variant-numeric: tabular-nums;
}

/* ═══════════ MODAL OVERLAY ═══════════ */
.sipo-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10002;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.sipo-modal-overlay.active {
    display: flex;
    opacity: 1;
}

/* ═══════════ SIPO MODAL ═══════════ */
.sipo-modal {
    background: var(--modal-bg);
    color: var(--modal-text);
    border-radius: 24px;
    width: 100%;
    max-width: 480px;
    padding: 50px 40px;
    position: relative;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.sipo-modal-overlay.active .sipo-modal {
    transform: translateY(0);
}

.sipo-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.05);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
}

.sipo-modal-close:hover {
    background: rgba(255,255,255,0.1);
    transform: rotate(90deg);
}

.sipo-modal-icon {
    width: 64px;
    height: 64px;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.sipo-modal-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.sipo-modal-text {
    font-size: 16px;
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 32px;
}

.sipo-modal-btn {
    background: var(--color-gold);
    color: #1a1a1a;
    padding: 16px 32px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    width: 100%;
    transition: 0.3s;
}

.sipo-modal-btn:hover {
    background: #f1d374;
    transform: scale(1.02);
}

/* ═══════════ ADJUST BODY ═══════════ */
body.has-status-strip {
    /* Class injected when status strip is active */
    outline: none; 
}

@media (max-width: 768px) {
    .sipo-modal {
        padding: 40px 24px;
    }
    .sipo-modal-title {
        font-size: 24px;
    }
}
