/* HEALINSH SERVER - CORE STYLES
   Style: Industrial / Brutalist / Rust-Inspired
*/

:root {
    --rust-red: #ce422b;
    --rust-red-glow: rgba(206, 66, 43, 0.4);
    --bg-dark: #080808;
    --panel-bg: rgba(17, 17, 17, 0.9);
    --glass-border: rgba(255, 255, 255, 0.05);
}

/* Pamata iestatījumi */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; 
}

body {
    background-color: var(--bg-dark);
    color: #ccc;
    overflow-x: hidden;
    line-height: 1.5;
}

/* Rust fonts un galvenie akcenti */
.font-rust {
    font-family: 'Bebas Neue', cursive;
    letter-spacing: 0.05em;
}

/* CRT Scanline efekts autentiskumam */
.scanline {
    width: 100%;
    height: 100px;
    z-index: 99;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0) 0%, rgba(255, 255, 255, 0.02) 50%, rgba(0, 0, 0, 0) 100%);
    opacity: 0.1;
    position: fixed;
    bottom: 100%;
    pointer-events: none;
    animation: scanline 8s linear infinite;
}

@keyframes scanline {
    0% { bottom: 100%; }
    100% { bottom: -100px; }
}

/* Industriālās pogas un robežas */
.rust-border {
    position: relative;
    border: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.rust-border::before {
    content: '';
    position: absolute;
    top: -1px; left: -1px;
    width: 10px; height: 10px;
    border-top: 2px solid var(--rust-red);
    border-left: 2px solid var(--rust-red);
}

.btn-rust {
    background: var(--rust-red);
    color: #000 !important;
    font-weight: 900;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    position: relative;
}

.btn-rust:hover {
    transform: scale(1.05) skewX(-6deg);
    box-shadow: 0 0 20px var(--rust-red-glow);
    filter: brightness(1.2);
}

/* Stila kartītes (Glassmorphism) */
.glass-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, border-color 0.3s ease;
}
 

/* Teksta spīdums */
.glow-text {
    text-shadow: 0 0 15px var(--rust-red-glow);
}

/* Ritināšanas josla (Scrollbar) */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: #222;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--rust-red);
}

/* Animācijas skaitļiem */
.count-up {
    font-variant-numeric: tabular-nums;
}

/* Responsīvie labojumi maziem ekrāniem */
@media (max-width: 768px) {
    .rust-border {
        padding: 1rem !important;
    }
    
    .font-rust {
        letter-spacing: 0.02em;
    }
}

/* Fona faktūra - oglekļa šķiedras vai punktu režģis */
body::after {
    content: "";
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 0);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: -1;
}

/* Leaderboard */

.status-dot {
            position: absolute; bottom: -2px; right: -2px;
            width: 10px; height: 10px; border: 2px solid var(--panel);
        }
        .status-online { background: #4ade80; box-shadow: 0 0 10px #4ade80; animation: pulse 2s infinite; }
        .status-offline { background: #333; }
        @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

        .main-panel { background: var(--panel); border: 1px solid rgba(255,255,255,0.03); box-shadow: 0 40px 100px rgba(0,0,0,0.6); }
        .search-box { width: 100%; padding: 20px; background: #0a0a0a; border: 1px solid #1a1a1a; color: #fff; outline: none; border-left: 4px solid #333; transition: 0.3s; }
        .search-box:focus { border-left-color: var(--rust); background: #0d0d0d; }

        .leaderboard-row { transition: 0.2s; border-bottom: 1px solid rgba(255,255,255,0.02); }
        .leaderboard-row:hover { background: rgba(255,255,255,0.015); }

        .vs-btn { clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%); }
        .mini-bar-bg { width: 120px; height: 3px; background: #1a1a1a; margin-top: 8px; }
        .mini-bar-fill { height: 100%; background: var(--rust); box-shadow: 0 0 10px rgba(206, 66, 43, 0.3); transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1); }

        #compare-bar {
            position: fixed; bottom: 0; left: 0; right: 0;
            background: var(--rust); color: black;
            padding: 24px; display: none; justify-content: center; align-items: center;
            z-index: 1000; font-family: 'Bebas Neue'; font-size: 1.6rem; italic;
            box-shadow: 0 -15px 50px rgba(0,0,0,0.5);
        }

        .page-btn { padding: 12px 20px; background: #151515; color: #555; border: 1px solid #222; margin: 0 4px; font-weight: 900; transition: 0.3s; }
        .page-btn:hover { color: #fff; border-color: #444; }
        .page-btn.active { background: var(--rust); color: black; border-color: var(--rust); }

        #loading-overlay { 
            position: absolute; top: 0; left: 0; right: 0; bottom: 0; 
            background: rgba(8,8,8,0.9); display: none; justify-content: center; 
            align-items: center; z-index: 100; font-family: 'Bebas Neue'; font-size: 3rem; color: var(--rust); letter-spacing: 5px;
        }
		.search-box {
            background: rgba(255,255,255,0.03);
            border: 1px solid rgba(255,255,255,0.1);
            color: white;
            padding: 12px 16px;
            width: 100%;
            font-family: 'Outfit', sans-serif;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            outline: none;
            transition: all 0.3s;
            font-size: 14px;
        }
        .search-box:focus { border-color: #ce422b; background: rgba(206, 66, 43, 0.05); }

        #compare-bar {
            position: fixed;
            bottom: 0; left: 0; right: 0;
            background: #ce422b;
            color: black;
            padding: 12px;
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 100;
            font-family: 'Bebas Neue';
            font-size: 1.2rem;
            clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
        }

        @media (max-width: 768px) {
            .glass-card { margin-left: -1rem; margin-right: -1rem; border-radius: 0; border-left: none; border-right: none; }
            .font-rust.text-7xl { font-size: 3.5rem; }
            #compare-bar { font-size: 1rem; padding: 10px; }
        }
		
/* Profile */ 
        .profile-header { 
            background: var(--panel);
            border: 1px solid var(--glass);
            box-shadow: 0 40px 100px rgba(0,0,0,0.5);
        }

        .stat-box { 
            background: var(--panel); 
            border: 1px solid var(--glass); 
        }

        .status-dot {
            position: absolute; bottom: 5px; right: 5px;
            width: 18px; height: 18px; border: 3px solid var(--panel);
        }
        .status-online { background: #4ade80; box-shadow: 0 0 15px #4ade80; animation: pulse 2s infinite; }
        .status-offline { background: #333; }
        @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

        .player-badge {
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid var(--glass);
            padding: 6px 14px;
            font-size: 0.75rem;
            font-weight: 900;
            text-transform: uppercase;
            letter-spacing: 0.1em;
        }

        .progress-bar { 
            background: var(--rust);
            box-shadow: 0 0 15px rgba(206, 66, 43, 0.4);
            height: 100%; width: 0; transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .resource-card {
            background: rgba(255, 255, 255, 0.02);
            border: 1px solid var(--glass);
            transition: 0.3s;
        }
        .resource-card:hover { background: rgba(255,255,255,0.04); }

        @media (max-width: 768px) {
            .header-content { flex-direction: column; text-align: center; }
            .profile-title { font-size: 3.5rem !important; }
        }
		.medal-glow {
        box-shadow: 0 0 20px rgba(206, 66, 43, 0.2);
    }
    
    .group:hover .font-rust {
        transform: scale(1.05);
        transition: transform 0.3s;
    }