/* =================================================
   ROOT VARIABLES
================================================= */

:root {
    --navbar-height: 64px;
    --status-bar-height: 42px;

    --primary-purple: #6d28d9;
    --success-green: #22c55e;
    --danger-red: #dc2626;
    --warning-orange: #f59e0b;
}

/* =================================================
   STATUS BAR – ENTERPRISE VERSION
================================================= */

.status-bar {
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    width: 100%;
    height: var(--status-bar-height);
    display: flex;
    align-items: center;
    overflow: hidden;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.2px;
    z-index: 1500;
    backdrop-filter: blur(10px);
    transition: all .3s ease;
}

/* Gradient Themes */

.status-open {
    background: linear-gradient(90deg, #16a34a, #22c55e);
}

.status-closed {
    background: linear-gradient(90deg, #b91c1c, #dc2626);
}

.status-maintenance {
    background: linear-gradient(90deg, #d97706, #f59e0b);
}

.status-warning {
    background: linear-gradient(90deg, #c2410c, #f97316);
}

/* Marquee */

.status-marquee {
    width: 100%;
    overflow: hidden;
}

.status-track {
    display: flex;
    width: max-content;
    transform: translateX(100%);
    animation: marquee-scroll 28s linear infinite;
}

.status-bar:hover .status-track {
    animation-play-state: paused;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    padding: 0 50px;
}

.status-item strong {
    font-weight: 700;
}

.status-item::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    margin-right: 8px;
    animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
    0% { opacity: .4; transform: scale(.9); }
    50% { opacity: 1; transform: scale(1.15); }
    100% { opacity: .4; transform: scale(.9); }
}

@keyframes marquee-scroll {
    from { transform: translateX(100%); }
    to { transform: translateX(-100%); }
}

/* =================================================
   MAINTENANCE OVERLAY – ENTERPRISE
================================================= */

.maintenance-overlay {
    position: fixed;
    inset: 0;
    background: linear-gradient(-45deg,
        #1e293b,
        #0f172a,
        #111827,
        #1f2937);
    background-size: 400% 400%;
    animation: gradientShift 12s ease infinite;
    backdrop-filter: blur(10px);
    z-index: 9998;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    animation: fadeInOverlay .6s ease forwards;
}

/* Animated Background */

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes fadeInOverlay {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Floating Particles */

.maintenance-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.particle {
    position: absolute;
    bottom: -10px;
    width: 6px;
    height: 6px;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    animation: floatParticle 12s linear infinite;
}

@keyframes floatParticle {
    0% {
        transform: translateY(0);
        opacity: 0;
    }
    10% { opacity: 1; }
    100% {
        transform: translateY(-100vh);
        opacity: 0;
    }
}

/* =================================================
   MAINTENANCE CARD
================================================= */

.maintenance-card {
    position: relative;
    z-index: 2;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(18px);
    padding: 50px 40px;
    border-radius: 24px;
    text-align: center;
    max-width: 520px;
    width: 90%;
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 30px 80px rgba(0,0,0,.45);
    animation: slideUp .8s ease forwards;
}

@keyframes slideUp {
    from { transform: translateY(40px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Icon Animation */

.maintenance-icon {
    font-size: 48px;
    color: var(--warning-orange);
    margin-bottom: 20px;
    animation: rotateIcon 4s linear infinite;
}

@keyframes rotateIcon {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Title */

.maintenance-title {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
}

/* Message */

.maintenance-message {
    color: #e5e7eb;
    font-size: 15px;
    margin-bottom: 20px;
}

/* Time Range */

.maintenance-time {
    font-size: 13px;
    color: #cbd5e1;
    margin-bottom: 20px;
}

/* =================================================
   COUNTDOWN BLOCKS
================================================= */

.maintenance-countdown-blocks {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
}

.time-box {
    background: rgba(255,255,255,0.1);
    padding: 15px 18px;
    border-radius: 14px;
    min-width: 75px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.15);
    transition: transform .3s ease;
}

.time-box:hover {
    transform: translateY(-4px);
}

.time-box span {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
}

.time-box small {
    font-size: 11px;
    color: #cbd5e1;
}

/* =================================================
   PROGRESS BAR
================================================= */

.maintenance-progress {
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.15);
    border-radius: 50px;
    overflow: hidden;
}

.maintenance-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg,
        var(--primary-purple),
        #8b5cf6);
    transition: width 1s linear;
}

.bar-complete {
    background: linear-gradient(90deg,
        var(--success-green),
        #4ade80);
}

/* Footer */

.maintenance-footer-note {
    margin-top: 20px;
    font-size: 12px;
    color: #94a3b8;
}

/* =================================================
   CLICK MODAL (Optional Extra Protection)
================================================= */

.maintenance-click-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.maintenance-click-modal.show {
    display: flex;
}

.click-card {
    background: #fff;
    padding: 30px;
    border-radius: 14px;
    text-align: center;
    width: 320px;
    animation: fadeInOverlay .4s ease;
}

.click-card button {
    margin-top: 15px;
    background: var(--primary-purple);
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: .3s ease;
}

.click-card button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(109,40,217,.3);
}

/* =================================================
   RESPONSIVE
================================================= */

@media (max-width: 768px) {

    :root {
        --navbar-height: 60px;
        --status-bar-height: 38px;
    }

    .status-bar {
        font-size: 13px;
    }

    .status-item {
        padding: 0 30px;
    }

    .status-track {
        animation-duration: 34s;
    }

    .maintenance-card {
        padding: 40px 25px;
    }

    .maintenance-countdown-blocks {
        gap: 12px;
    }

    .time-box {
        min-width: 60px;
        padding: 12px;
    }
}

