/* FearlessRP Premium Downtime Styles */

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600&family=Roboto:wght@400;500;700;900&display=swap');

:root {
    /* Brand Colors */
    --color-fearless-blue: #32D2DC;
    --color-accent-blue: #018F99;
    --color-silver-light: #EDEDED;

    /* Status Colors (Vibrant & Glowing) */
    --status-operational: #10B981;
    /* Emerald 500 */
    --status-maintenance: #32D2DC;
    /* Fearless Blue */
    --status-degraded: #F59E0B;
    /* Amber 500 */
    --status-outage: #EF4444;
    /* Red 500 */

    /* Glassmorphism Variables */
    --glass-bg: rgba(20, 25, 35, 0.75);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.03);
    --glass-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: #0f172a;
    background-image: url('../downbg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    overflow-x: hidden;
}

/* Premium Background Overlay */
.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(15, 23, 42, 0.4) 0%, rgba(15, 23, 42, 0.95) 100%);
    backdrop-filter: blur(4px);
    z-index: -1;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Roboto', sans-serif;
}

/* --- The Unified Glass Card --- */
.unified-card {
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    /* Top highlight */
    box-shadow: var(--glass-shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    overflow: hidden;
    width: 100%;
    max-width: 1100px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

@media (min-width: 1024px) {
    .unified-card {
        flex-direction: row;
        min-height: 600px;
        /* Fixed height for elegance on desktop */
    }
}

/* --- Offline Mode Styles --- */
.unified-card.mode-offline {
    max-width: 600px;
    /* Smaller card for offline message */
    min-height: auto;
    /* Auto height */
    flex-direction: column;
    /* Stack content */
    text-align: center;
    /* Center text */
}

.unified-card.mode-offline .card-hero {
    width: 100%;
    border-right: none;
    align-items: center;
    /* Center items horizontally */
    padding: 4rem 2rem;
}

.unified-card.mode-offline .card-timeline,
.unified-card.mode-offline .status-display {
    display: none;
    /* Hide timeline and status indicator */
}

.unified-card.mode-offline .hero-message {
    font-size: 1.25rem;
    max-width: 100%;
}

/* --- Left Panel (Hero) --- */
.card-hero {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 100%);
}

@media (min-width: 1024px) {
    .card-hero {
        width: 55%;
        /* Slightly larger hero area */
        border-right: 1px solid var(--glass-border);
    }
}

.logo-container {
    margin-bottom: 2rem;
}

.logo-img {
    height: 8rem;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}

.status-display {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.status-label {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.status-value {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    background: linear-gradient(to right, #fff, #ccc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    margin-left: -2px;
    /* Optical alignment for large text */
}

/* Status Glows */
.status-glow-operational {
    text-shadow: 0 0 40px rgba(16, 185, 129, 0.6);
    -webkit-text-fill-color: var(--status-operational);
}

.status-glow-maintenance {
    text-shadow: 0 0 40px rgba(50, 210, 220, 0.6);
    -webkit-text-fill-color: var(--status-maintenance);
}

.status-glow-degraded {
    text-shadow: 0 0 40px rgba(245, 158, 11, 0.6);
    -webkit-text-fill-color: var(--status-degraded);
}

.status-glow-outage {
    text-shadow: 0 0 40px rgba(239, 68, 68, 0.6);
    -webkit-text-fill-color: var(--status-outage);
}

.hero-message {
    font-size: 1.125rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
    max-width: 90%;
}

.discord-btn {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    background: #5865F2;
    color: white;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.4);
    text-decoration: none;
}

.discord-btn:hover {
    background: #4752C4;
    transform: translateY(-2px);
    box-shadow: 8px 25px rgba(88, 101, 242, 0.6);
}

/* --- Right Panel (Timeline) --- */
.card-timeline {
    padding: 3rem;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

@media (min-width: 1024px) {
    .card-timeline {
        width: 45%;
    }
}

.timeline-header {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    color: white;
}

.timeline-scroll {
    flex-grow: 1;
    overflow-y: auto;
    padding-right: 1rem;
    padding-left: 1rem;
}

/* Custom Scrollbar */
.timeline-scroll::-webkit-scrollbar {
    width: 6px;
}

.timeline-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.timeline-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.timeline-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.timeline-item {
    position: relative;
    padding-left: 2rem;
    padding-bottom: 2.5rem;
    border-left: 2px solid rgba(255, 255, 255, 0.1);
}

.timeline-item:last-child {
    border-left: 2px solid transparent;
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -6px;
    top: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-fearless-blue);
    box-shadow: 0 0 10px var(--color-fearless-blue);
}

.timeline-time {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-fearless-blue);
    margin-bottom: 0.5rem;
    display: block;
}

.timeline-title {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.5rem;
}

.timeline-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

/* Footer */
.footer {
    position: absolute;
    bottom: 1.5rem;
    width: 100%;
    text-align: center;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.4);
    pointer-events: none;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}
