/* =========================================================
   ROZZYHUB SHUTDOWN NOTICE BANNER
   ========================================================= */

.rz-shutdown-banner {
    width: 100%;
    background: linear-gradient(90deg, #991b1b 0%, #dc2626 25%, #ea580c 50%, #dc2626 75%, #991b1b 100%);
    background-size: 200% 100%;
    animation: rzBannerGlow 10s ease infinite;
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.4;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 18px rgba(220, 38, 38, 0.35);
    position: relative;
    z-index: 1002;
}

@keyframes rzBannerGlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.rz-banner-inner {
    max-width: 1300px;
    margin: 0 auto;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px 18px;
    text-align: center;
}

.rz-banner-left {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.rz-banner-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #ffffff;
    color: #991b1b;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    padding: 2px 9px;
    border-radius: 999px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
    animation: rzBadgePulse 2s ease-in-out infinite;
    white-space: nowrap;
}

@keyframes rzBadgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.rz-banner-badge svg {
    width: 13px;
    height: 13px;
    fill: currentColor;
    flex-shrink: 0;
}

.rz-banner-text {
    font-weight: 600;
    letter-spacing: -0.1px;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.rz-banner-countdown {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    user-select: none;
    vertical-align: middle;
}

.rz-cd-item {
    display: inline-flex;
    align-items: baseline;
    gap: 3px;
    background: rgba(0, 0, 0, 0.38);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 2px 7px;
    border-radius: 6px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
}

.rz-cd-num {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 14px;
    font-weight: 800;
    color: #ffffff;
    min-width: 18px;
    text-align: center;
    line-height: 1.2;
}

.rz-cd-unit {
    font-size: 10.5px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    text-transform: lowercase;
}

.rz-cd-colon {
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    margin: 0 1px;
}

.rz-banner-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    color: #b91c1c !important;
    text-decoration: none !important;
    font-size: 12.5px;
    font-weight: 700;
    padding: 5px 15px;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.rz-banner-btn:hover {
    background: #fef2f2;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
    color: #991b1b !important;
}

.rz-banner-btn svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    stroke-width: 2.2;
    fill: none;
    transition: transform 0.2s ease;
}

.rz-banner-btn:hover svg {
    transform: translateX(2px);
}

/* =========================================================
   ADAPTATIONS FOR SPECIFIC PAGES
   ========================================================= */

/* Main content spacing adjustment on index.html */
body.has-rz-banner .main {
    padding-top: 130px;
}

@media (max-width: 768px) {
    body.has-rz-banner .main {
        padding-top: 155px;
    }
}

/* Adaptations for paste app */
body.paste-has-banner {
    display: flex !important;
    flex-direction: column !important;
    height: 100vh !important;
    height: 100dvh !important;
    overflow: hidden !important;
    margin: 0 !important;
}

body.paste-has-banner .rz-shutdown-banner {
    flex-shrink: 0;
}

body.paste-has-banner .app {
    flex: 1 1 0% !important;
    min-height: 0 !important;
    height: auto !important;
}

/* Responsive banner adjustments */
@media (max-width: 768px) {
    .rz-banner-inner {
        padding: 7px 12px;
        gap: 8px 12px;
    }
    .rz-banner-text {
        font-size: 12.5px;
    }
    .rz-cd-num {
        font-size: 13px;
    }
    .rz-banner-btn {
        font-size: 12px;
        padding: 4px 12px;
    }
}

@media (max-width: 480px) {
    .rz-banner-inner {
        flex-direction: column;
        gap: 6px;
    }
    .rz-banner-countdown {
        gap: 2px;
    }
}
