/* ========================================
WHITELIST ROBLOX - DARK ZOMBIE INDUSTRIAL
Theme: Post-Apocalyptic Horror
Style: Industrial/Metal/Rust/Blood
======================================== */

@import url('https://fonts.googleapis.com/css2?family=Special+Elite&family=Orbitron:wght@400;500;600;700;900&family=Share+Tech+Mono&display=swap');

:root {
    /* Base colors - Dark industrial */
    --bg-void: #0a0a0a;
    --bg-dark: #0f0f0f;
    --bg-metal: #1a1a1a;
    --bg-rust: #2a1f1f;
    --bg-card: #151515;

    /* Blood reds */
    --blood-dark: #4a0000;
    --blood-medium: #8b0000;
    --blood-bright: #cc0000;
    --blood-glow: #ff2222;
    --blood-drip: #990000;

    /* Industrial metals */
    --metal-dark: #2d2d2d;
    --metal-mid: #4a4a4a;
    --metal-light: #6a6a6a;
    --rust-dark: #5a3d3d;
    --rust-light: #8b5a5a;

    /* Accent colors */
    --toxic-green: #00ff00;
    --warning-orange: #ff6600;
    --danger-red: #ff0000;
    --infected-purple: #6b2d5b;

    /* Text colors */
    --text-primary: #e8e8e8;
    --text-secondary: #a0a0a0;
    --text-muted: #606060;
    --text-bright: #ffffff;
    --text-blood: #ff4444;

    /* Gradients */
    --gradient-blood: linear-gradient(180deg, #4a0000 0%, #8b0000 50%, #cc0000 100%);
    --gradient-metal: linear-gradient(180deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
    --gradient-rust: linear-gradient(135deg, #3d2a2a 0%, #5a3d3d 50%, #2a1f1f 100%);
    --gradient-card: linear-gradient(145deg, #1a1a1a 0%, #0f0f0f 100%);

    /* Shadows */
    --shadow-blood: 0 0 20px rgba(139, 0, 0, 0.5);
    --shadow-toxic: 0 0 20px rgba(0, 255, 0, 0.3);
    --shadow-metal: 0 4px 15px rgba(0, 0, 0, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Orbitron', sans-serif;
    background: var(--bg-void);
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* ========================================
BACKGROUND EFFECTS - FOG & PARTICLES
======================================== */

.fog-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

/* Animated fog layers */
.fog-layer {
    position: absolute;
    width: 200%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.02" numOctaves="3"/><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0"/></filter><rect width="100%" height="100%" filter="url(%23n)" opacity="0.15" fill="%23300"/></svg>');
    opacity: 0.3;
}

.fog-layer:nth-child(1) {
    animation: fog-drift 60s linear infinite;
}

.fog-layer:nth-child(2) {
    animation: fog-drift 45s linear infinite reverse;
    opacity: 0.2;
}

@keyframes fog-drift {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Blood drip effect overlay */
.blood-drip-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    background: linear-gradient(180deg, 
        transparent 0%, 
        transparent 95%, 
        rgba(139, 0, 0, 0.1) 100%
    );
}

/* Scanlines effect */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15) 0px,
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 2px
    );
    opacity: 0.3;
}

/* Noise/grain overlay */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 998;
    opacity: 0.05;
    background-image: url('data:image/svg+xml,<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="4" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noise)"/></svg>');
}

/* ========================================
ASH/EMBER PARTICLES
======================================== */

.ash-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.ash {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(255, 100, 50, 0.6);
    border-radius: 50%;
    animation: ash-fall linear infinite;
    box-shadow: 0 0 6px rgba(255, 100, 50, 0.8);
}

@keyframes ash-fall {
    0% {
        transform: translateY(-10px) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) translateX(50px) rotate(360deg);
        opacity: 0;
    }
}

/* ========================================
MAIN CONTAINER
======================================== */

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 10;
}

/* ========================================
HEADER - ZOMBIE INDUSTRIAL
======================================== */

.header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
}

.logo-skull {
    width: 90px;
    height: 90px;
    background: var(--gradient-metal);
    border: 3px solid var(--metal-mid);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 45px;
    position: relative;
    box-shadow: 
        var(--shadow-blood),
        inset 0 -5px 15px rgba(0, 0, 0, 0.5),
        inset 0 5px 15px rgba(255, 255, 255, 0.05);
    animation: skull-pulse 3s ease-in-out infinite;
}

.logo-skull::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    border: 2px solid var(--blood-medium);
    opacity: 0.5;
    animation: skull-ring 2s ease-in-out infinite;
}

@keyframes skull-pulse {
    0%, 100% {
        box-shadow: var(--shadow-blood), inset 0 -5px 15px rgba(0, 0, 0, 0.5);
    }
    50% {
        box-shadow: 0 0 40px rgba(139, 0, 0, 0.8), inset 0 -5px 15px rgba(0, 0, 0, 0.5);
    }
}

@keyframes skull-ring {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.2; }
}

.logo h1 {
    font-family: 'Special Elite', monospace;
    font-size: 3.5rem;
    color: var(--text-bright);
    text-transform: uppercase;
    letter-spacing: 6px;
    text-shadow: 
        0 0 10px rgba(139, 0, 0, 0.8),
        0 0 20px rgba(139, 0, 0, 0.5),
        0 0 40px rgba(139, 0, 0, 0.3),
        3px 3px 0 var(--blood-dark);
    position: relative;
    animation: glitch-text 4s ease-in-out infinite;
}

@keyframes glitch-text {
    0%, 90%, 100% { transform: translate(0); }
    92% { transform: translate(-2px, 1px); }
    94% { transform: translate(2px, -1px); }
    96% { transform: translate(-1px, -1px); }
    98% { transform: translate(1px, 1px); }
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-family: 'Share Tech Mono', monospace;
    opacity: 0.8;
}

/* ========================================
CARDS - INDUSTRIAL METAL
======================================== */

.card {
    background: var(--gradient-card);
    border: 2px solid var(--metal-mid);
    border-radius: 4px;
    padding: 30px;
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-metal);
}

/* Bolt corners */
.card::before,
.card::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    border: 2px solid var(--metal-light);
    border-radius: 50%;
    background: var(--metal-dark);
}

.card::before {
    top: 10px;
    left: 10px;
    box-shadow: 
        inset 2px 2px 4px rgba(255, 255, 255, 0.1),
        inset -2px -2px 4px rgba(0, 0, 0, 0.5);
}

.card::after {
    top: 10px;
    right: 10px;
    box-shadow: 
        inset 2px 2px 4px rgba(255, 255, 255, 0.1),
        inset -2px -2px 4px rgba(0, 0, 0, 0.5);
}

/* Rust texture overlay */
.card-inner {
    position: relative;
    z-index: 1;
}

.card-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.card-title-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-blood);
    border: 2px solid var(--blood-bright);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: var(--shadow-blood);
    clip-path: polygon(10% 0%, 100% 0%, 90% 100%, 0% 100%);
}

/* ========================================
FORMS - TERMINAL STYLE
======================================== */

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Share Tech Mono', monospace;
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--metal-mid);
    border-radius: 2px;
    color: var(--text-bright);
    font-family: 'Share Tech Mono', monospace;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

.form-input:focus {
    border-color: var(--blood-bright);
    box-shadow: 
        0 0 0 2px rgba(139, 0, 0, 0.3),
        0 0 20px rgba(139, 0, 0, 0.2),
        inset 0 0 10px rgba(139, 0, 0, 0.1);
}

.form-input::placeholder {
    color: var(--text-muted);
    font-style: italic;
}

.form-input:read-only {
    background: rgba(0, 255, 0, 0.05);
    border-color: var(--toxic-green);
    color: var(--toxic-green);
}

.input-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.input-row .form-group {
    flex: 1;
    min-width: 200px;
}

/* ========================================
BUTTONS - INDUSTRIAL ALARM
======================================== */

.btn {
    padding: 14px 28px;
    border: none;
    border-radius: 2px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    font-weight: 600;
}

/* Primary button - Blood red */
.btn-primary {
    background: var(--gradient-blood);
    color: var(--text-bright);
    border: 2px solid var(--blood-bright);
    box-shadow: 
        var(--shadow-blood),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -3px 0 rgba(0, 0, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 0 30px rgba(139, 0, 0, 0.8),
        0 6px 20px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary:active {
    transform: translateY(1px);
}

.btn-primary:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Blood drip animation on primary buttons */
.btn-primary::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 2px;
    height: 0;
    background: var(--blood-glow);
    transition: height 0.3s ease;
}

.btn-primary:hover::after {
    height: 100%;
    opacity: 0.3;
}

/* Danger button */
.btn-danger {
    background: var(--bg-metal);
    color: var(--blood-glow);
    border: 2px solid var(--blood-medium);
    padding: 10px 18px;
    font-size: 0.8rem;
}

.btn-danger:hover {
    background: var(--blood-dark);
    border-color: var(--blood-glow);
    box-shadow: var(--shadow-blood);
}

/* Logout button */
.btn-logout {
    background: transparent;
    border: 1px solid var(--metal-light);
    color: var(--text-muted);
    padding: 8px 20px;
    font-size: 0.75rem;
}

.btn-logout:hover {
    border-color: var(--blood-bright);
    color: var(--blood-glow);
}

/* ========================================
ALERTS
======================================== */

.alert {
    padding: 15px 20px;
    border-radius: 2px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.9rem;
    border-left: 3px solid;
    animation: alert-appear 0.4s ease;
}

@keyframes alert-appear {
    from { 
        opacity: 0; 
        transform: translateX(-10px); 
    }
    to { 
        opacity: 1; 
        transform: translateX(0); 
    }
}

.alert-success {
    background: rgba(0, 255, 0, 0.08);
    border-color: var(--toxic-green);
    color: var(--toxic-green);
}

.alert-error {
    background: rgba(139, 0, 0, 0.15);
    border-color: var(--blood-bright);
    color: var(--blood-glow);
}

.alert-icon {
    font-size: 1.3rem;
}

/* ========================================
USER LIST - ZOMBIE STYLE
======================================== */

.user-list {
    list-style: none;
}

.user-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--metal-dark);
    border-radius: 2px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    position: relative;
}

.user-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--blood-dark);
    transition: all 0.3s ease;
}

.user-item:hover {
    background: rgba(139, 0, 0, 0.1);
    border-color: var(--blood-dark);
}

.user-item:hover::before {
    background: var(--blood-bright);
    box-shadow: 0 0 10px var(--blood-glow);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar {
    width: 50px;
    height: 50px;
    background: var(--gradient-blood);
    border: 2px solid var(--blood-medium);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--text-bright);
    box-shadow: var(--shadow-blood);
    font-family: 'Orbitron', sans-serif;
}

.user-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-primary);
    font-family: 'Orbitron', sans-serif;
}

.user-id {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: 'Share Tech Mono', monospace;
    letter-spacing: 1px;
}

.user-actions {
    display: flex;
    gap: 10px;
}

.user-count {
    text-align: center;
    padding: 25px;
    color: var(--text-muted);
    font-family: 'Share Tech Mono', monospace;
}

.user-count span {
    color: var(--blood-glow);
    font-weight: 700;
    font-family: 'Orbitron', sans-serif;
}

/* ========================================
STATUS INDICATOR
======================================== */

.status {
    font-size: 0.9rem;
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 2px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--metal-dark);
    font-family: 'Share Tech Mono', monospace;
}

.status-pending { 
    color: var(--text-muted); 
}

.status-success { 
    color: var(--toxic-green); 
    background: rgba(0, 255, 0, 0.05);
    border-color: rgba(0, 255, 0, 0.3);
}

.status-error { 
    color: var(--blood-glow); 
    background: rgba(139, 0, 0, 0.1);
    border-color: rgba(139, 0, 0, 0.4);
}

.status-loading { 
    color: var(--warning-orange); 
    background: rgba(255, 102, 0, 0.05);
    border-color: rgba(255, 102, 0, 0.3);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-dot.pending { 
    background: var(--text-muted); 
}

.status-dot.success { 
    background: var(--toxic-green); 
    box-shadow: 0 0 8px var(--toxic-green); 
}

.status-dot.error { 
    background: var(--blood-glow); 
    box-shadow: 0 0 8px var(--blood-glow); 
}

.status-dot.loading { 
    background: var(--warning-orange); 
    box-shadow: 0 0 8px var(--warning-orange); 
    animation: pulse-loading 1s ease-in-out infinite; 
}

@keyframes pulse-loading {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.6; }
}

/* ========================================
LOGIN PAGE
======================================== */

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo {
    width: 100px;
    height: 100px;
    background: var(--gradient-blood);
    border: 3px solid var(--blood-bright);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    margin: 0 auto 25px;
    box-shadow: 
        var(--shadow-blood),
        0 0 60px rgba(139, 0, 0, 0.4);
    animation: login-pulse 2s ease-in-out infinite;
}

@keyframes login-pulse {
    0%, 100% {
        box-shadow: var(--shadow-blood), 0 0 40px rgba(139, 0, 0, 0.3);
    }
    50% {
        box-shadow: 0 0 60px rgba(139, 0, 0, 0.6), 0 0 100px rgba(139, 0, 0, 0.3);
    }
}

/* ========================================
GAME LINK BUTTON - APOCALYPSE STYLE
======================================== */

.game-card {
    padding: 10px;
    background: var(--bg-metal);
    border-color: var(--metal-light);
}

.game-link-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 18px 25px;
    background: linear-gradient(135deg, #2a1a1a 0%, #4a0000 50%, #2a1a1a 100%);
    border: 2px solid var(--blood-medium);
    border-radius: 2px;
    text-decoration: none;
    color: var(--text-bright);
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-blood);
    position: relative;
    overflow: hidden;
}

.game-link-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 0, 0, 0.2), transparent);
    transition: left 0.5s ease;
}

.game-link-btn:hover::before {
    left: 100%;
}

.game-link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 0 30px rgba(139, 0, 0, 0.6),
        0 0 60px rgba(139, 0, 0, 0.3);
    border-color: var(--blood-glow);
}

.game-emoji {
    font-size: 1.5rem;
    animation: game-icon-shake 2s ease-in-out infinite;
}

@keyframes game-icon-shake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
}

.game-text {
    flex: 1;
    text-align: center;
}

.game-arrow {
    font-size: 1.3rem;
    opacity: 0.7;
}

/* ========================================
FOOTER
======================================== */

.footer {
    text-align: center;
    margin-top: 50px;
    padding: 20px;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-family: 'Share Tech Mono', monospace;
    border-top: 1px solid var(--metal-dark);
}

.footer span {
    color: var(--blood-glow);
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 1px;
}

/* ========================================
RESPONSIVE
======================================== */

@media (max-width: 600px) {
    .container {
        padding: 25px 15px;
    }

    .logo h1 {
        font-size: 2.2rem;
        letter-spacing: 3px;
    }

    .logo-skull {
        width: 70px;
        height: 70px;
        font-size: 35px;
    }

    .card {
        padding: 20px;
    }

    .input-row {
        flex-direction: column;
    }

    .input-row .form-group {
        min-width: 100%;
    }

    .user-item {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .user-info {
        flex-direction: column;
    }

    .game-link-btn {
        flex-direction: column;
        gap: 10px;
    }
}
