/* ============================================
   RAMADAN POPUP STYLES
   Dipisah dari inline di app.blade.php
   ============================================ */

/* ── Utility ──────────────────────────────────────── */
.hidden {
    display: none !important;
}

/* ── AdSense Container ───────────────────────────── */
.adsense-container {
    text-align: center;
    padding: 16px 0;
    max-width: 970px;
    margin: 0 auto;
}

/* ── Ramadan Navbar Button ──────────────────────── */
.nav-ramadan-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 8px;
    line-height: 1;
    transition: background 0.2s;
    align-items: center;
    margin-right: 4px;
}

.nav-ramadan-btn:hover {
    background: rgba(0, 0, 0, 0.07);
}

/* ── Ramadan Popup Overlay ──────────────────────────────── */
#ramadanOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    backdrop-filter: blur(3px);
}

#ramadanOverlay.active {
    opacity: 1 !important;
    visibility: visible !important;
}

#ramadanCard {
    position: relative;
    background: #fff;
    border-radius: 24px;
    padding: 0;
    max-width: 380px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(24px) scale(0.97);
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

#ramadanOverlay.active #ramadanCard {
    transform: translateY(0) scale(1);
}

.rm-pop-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    font-size: 26px;
    line-height: 1;
    color: rgba(255, 255, 255, 0.75);
    cursor: pointer;
    z-index: 2;
    transition: color 0.2s;
}

.rm-pop-close:hover {
    color: #fff;
}

.rm-pop-header {
    background: linear-gradient(160deg, #0F2E1A 0%, #1b4332 60%, #2D6A4F 100%);
    padding: 32px 24px 24px;
}

.rm-pop-icon {
    font-size: 40px;
    display: block;
    margin-bottom: 10px;
}

.rm-pop-title {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 4px;
    font-family: 'Cormorant Garamond', Georgia, serif;
}

.rm-pop-sub {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
    letter-spacing: 0.5px;
}

/* ── Today Block ──────────────────────────────────── */
.rm-today-block {
    background: linear-gradient(160deg, #0F2E1A 0%, #1b4332 60%, #2D6A4F 100%);
    padding: 0 24px 20px;
    border-bottom: 1px solid rgba(201, 168, 76, 0.2);
}

.rm-time-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(201, 168, 76, 0.25);
    border-radius: 16px;
    overflow: hidden;
}

.rm-time-cell {
    flex: 1;
    padding: 14px 8px;
}

.rm-time-divider {
    width: 1px;
    background: rgba(201, 168, 76, 0.2);
    align-self: stretch;
}

.rm-time-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #C9A84C;
    margin-bottom: 4px;
}

.rm-time-val {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.rm-today-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    margin: 8px 0 0;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ── Actions ───────────────────────────────────────── */
.rm-pop-actions {
    padding: 20px 24px 24px;
}

.rm-pop-desc {
    font-size: 13px;
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 16px;
}

.rm-btn-notif {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: linear-gradient(135deg, #0F2E1A, #1b4332);
    color: #C9A84C;
    border: none;
    padding: 13px 20px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
}

.rm-btn-notif:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.rm-pop-footer-links {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
}

.rm-link-full {
    font-size: 13px;
    color: #1b4332;
    font-weight: 600;
    text-decoration: none;
}

.rm-link-full:hover {
    text-decoration: underline;
}

.rm-btn-dismiss {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 13px;
    cursor: pointer;
    padding: 4px 0;
}

.rm-btn-dismiss:hover {
    color: #475569;
}

/* ── States ────────────────────────────────────────── */
.rm-state-success {
    margin: 0 24px 20px;
    background: #d1fae5;
    color: #065f46;
    padding: 14px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
}

.rm-state-error {
    margin: 0 24px 20px;
    background: #fee2e2;
    color: #991b1b;
    padding: 14px;
    border-radius: 10px;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.5;
}

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 480px) {
    #ramadanOverlay {
        padding: 16px;
    }

    #ramadanCard {
        border-radius: 20px;
    }

    .rm-pop-header {
        padding: 28px 20px 20px;
    }

    .rm-today-block {
        padding: 0 20px 16px;
    }

    .rm-time-val {
        font-size: 24px;
    }

    .rm-pop-actions {
        padding: 16px 20px 20px;
    }

    .rm-pop-footer-links {
        flex-direction: column;
        gap: 12px;
    }
}
