/* ============================================================
   style.css — Zeph's Plex Status Landing Page
   Dark cinematic theme with Plex orange (#e5a00d) accents
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
}

body {
    background-color: #111111;
    color: #e0e0e0;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
}

/* --- Background subtle vignette --- */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(ellipse at center, #1c1c1c 0%, #0a0a0a 100%);
    z-index: -1;
}

/* --- Main container --- */
.container {
    text-align: center;
    max-width: 600px;
    width: 100%;
}

/* --- Branding --- */
.brand {
    margin-bottom: 2.5rem;
}

/* Homelab logo image */
.brand-logo-img {
    width: 180px;
    height: auto;
    margin-bottom: 1.25rem;
    opacity: 0.95;
    filter: drop-shadow(0 0 20px rgba(229, 160, 13, 0.35));
}

.brand-logo {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #e5a00d;
    text-shadow: 0 0 40px rgba(229, 160, 13, 0.3);
    line-height: 1;
}

.brand-tagline {
    margin-top: 0.5rem;
    font-size: 1rem;
    color: #888888;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* --- Divider --- */
.divider {
    width: 60px;
    height: 2px;
    background: #e5a00d;
    margin: 2rem auto;
    opacity: 0.6;
}

/* --- Status indicator --- */
.status-section {
    margin-bottom: 2.5rem;
}

.status-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #666666;
    margin-bottom: 0.75rem;
}

/* Prominent badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: #1a1a1a;
    border: 2px solid #2a2a2a;
    border-radius: 999px;
    padding: 0.75rem 1.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

/* Dot */
.status-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #555555; /* default/loading state */
    flex-shrink: 0;
}

/* Online state */
.status-badge.online {
    border-color: rgba(229, 160, 13, 0.6);
    box-shadow: 0 0 24px rgba(229, 160, 13, 0.2), inset 0 0 12px rgba(229, 160, 13, 0.05);
}

.status-badge.online .status-dot {
    background: #e5a00d;
    animation: pulse 2s infinite;
}

.status-badge.online .status-text {
    color: #e5a00d;
}

/* Offline state */
.status-badge.offline {
    border-color: rgba(204, 51, 51, 0.5);
    box-shadow: 0 0 24px rgba(204, 51, 51, 0.15), inset 0 0 12px rgba(204, 51, 51, 0.05);
}

.status-badge.offline .status-dot {
    background: #cc3333;
}

.status-badge.offline .status-text {
    color: #cc3333;
}

/* Subtext below badge */
.status-subtext {
    margin-top: 0.6rem;
    font-size: 0.8rem;
    color: #555555;
    letter-spacing: 0.05em;
}

/* Pulse animation for online dot */
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(229, 160, 13, 0.6); }
    50%       { box-shadow: 0 0 0 8px rgba(229, 160, 13, 0); }
}

/* --- Buttons --- */
.buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.btn {
    display: inline-block;
    width: 100%;
    max-width: 320px;
    padding: 0.9rem 2rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    cursor: pointer;
}

/* Primary button — Request Media */
.btn-primary {
    background: #e5a00d;
    color: #111111;
    box-shadow: 0 4px 20px rgba(229, 160, 13, 0.25);
}

.btn-primary:hover {
    background: #f0ad18;
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(229, 160, 13, 0.4);
}

/* Secondary button — Open Plex */
.btn-secondary {
    background: transparent;
    color: #cccccc;
    border: 1px solid #333333;
}

.btn-secondary:hover {
    background: #1e1e1e;
    border-color: #555555;
    color: #ffffff;
    transform: translateY(-2px);
}

/* --- Footer --- */
.footer {
    margin-top: 3rem;
    font-size: 0.75rem;
    color: #444444;
    letter-spacing: 0.05em;
}

/* --- Responsive --- */
@media (max-width: 480px) {
    .brand-logo-img {
        width: 130px;
    }

    .brand-logo {
        font-size: 1.8rem;
    }

    .status-badge {
        font-size: 1.1rem;
        padding: 0.65rem 1.4rem;
    }

    .btn {
        max-width: 100%;
    }
}
