/* ============================================
   MAINTENANCE MODAL STYLES
   For mobile shopping cart button
   ============================================ */

/* Modal Overlay */
.maintenance-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.maintenance-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Modal Card */
.maintenance-modal-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 40px 30px;
    max-width: 380px;
    width: 100%;
    text-align: center;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    position: relative;
    transform: translateY(20px) scale(0.95);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), 
                opacity 0.3s ease;
}

.maintenance-modal-overlay.active .maintenance-modal-card {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* Close Button */
.maintenance-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: #666;
}

.maintenance-modal-close:hover {
    background: rgba(255, 99, 71, 0.1);
    color: var(--primary, #ff6347);
    transform: rotate(90deg);
}

.maintenance-modal-close svg {
    width: 18px;
    height: 18px;
}

/* Icon Container */
.maintenance-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, rgba(255, 99, 71, 0.1) 0%, rgba(255, 99, 71, 0.2) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 99, 71, 0.4);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(255, 99, 71, 0);
    }
}

.maintenance-icon-wrapper svg {
    width: 40px;
    height: 40px;
    color: var(--primary, #ff6347);
    animation: rotate-gear 8s linear infinite;
}

@keyframes rotate-gear {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Title */
.maintenance-modal-title {
    font-family: var(--font-heading, 'Barlow', sans-serif);
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

/* Description */
.maintenance-modal-desc {
    font-family: var(--font-primary, 'Inter', sans-serif);
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Countdown Container */
.maintenance-countdown {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 28px;
}

/* Countdown Item */
.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.countdown-value {
    background: linear-gradient(135deg, var(--primary, #ff6347) 0%, #ff7a63 100%);
    color: #fff;
    font-family: var(--font-heading, 'Barlow', sans-serif);
    font-size: 24px;
    font-weight: 700;
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(255, 99, 71, 0.3);
    position: relative;
    overflow: hidden;
}

.countdown-value::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px 12px 0 0;
}

.countdown-label {
    font-family: var(--font-primary, 'Inter', sans-serif);
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 8px;
    font-weight: 600;
}

/* Separator */
.countdown-separator {
    font-family: var(--font-heading, 'Barlow', sans-serif);
    font-size: 24px;
    font-weight: 700;
    color: var(--primary, #ff6347);
    display: flex;
    align-items: center;
    padding-bottom: 20px;
    animation: blink 1s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

/* Footer Text */
.maintenance-modal-footer {
    font-family: var(--font-primary, 'Inter', sans-serif);
    font-size: 13px;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.maintenance-modal-footer svg {
    width: 14px;
    height: 14px;
    color: var(--primary, #ff6347);
}

/* Mobile Cart Button Override (only visible on mobile) */
@media (max-width: 991px) {
    .mobile-cart-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        color: #333333;
        background: none;
        border: none;
        padding: 0;
        cursor: pointer;
        transition: color 0.3s ease;
        position: relative;
    }

    .mobile-cart-btn:hover,
    .mobile-cart-btn:active {
        color: var(--primary, #ff6347);
    }

    .mobile-cart-btn svg {
        width: 22px;
        height: 22px;
    }
}

/* Responsive Adjustments */
@media (max-width: 360px) {
    .maintenance-modal-card {
        padding: 30px 20px;
    }

    .maintenance-modal-title {
        font-size: 20px;
    }

    .maintenance-modal-desc {
        font-size: 14px;
    }

    .countdown-item {
        min-width: 50px;
    }

    .countdown-value {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }

    .maintenance-countdown {
        gap: 8px;
    }
}

/* Body scroll lock when modal is open */
body.maintenance-modal-open {
    overflow: hidden;
}

/* Desktop Pesan Button Override (when converted to button) */
button.pesan-btn {
    border: none;
    cursor: pointer;
    font-family: var(--font-primary, 'Inter', sans-serif);
}

/* Join Member Button Override (when converted to button) */
button.btn-join-now {
    border: none;
    cursor: pointer;
    font-family: var(--font-primary, 'Inter', sans-serif);
    background: linear-gradient(135deg, var(--primary, #ff6347) 0%, #ff7a63 100%);
    color: #fff;
    padding: 16px 32px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(255, 99, 71, 0.3);
}

button.btn-join-now:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 99, 71, 0.4);
}

button.btn-join-now .btn-arrow {
    transition: transform 0.3s ease;
}

button.btn-join-now:hover .btn-arrow {
    transform: translateX(4px);
}
