:root {
    --bg-dark: #0a0a0a;
    --text-primary: #ffffff;
    --text-secondary: #a3a3a3;
    --accent-red: #ff3333;
    --accent-red-dim: rgba(255, 51, 51, 0.2);
    --glass-bg: rgba(25, 25, 25, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* Background Effects */
.background-globes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.globe {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
}

.globe-1 {
    width: 600px;
    height: 600px;
    background: var(--accent-red);
    top: -100px;
    left: -100px;
    animation: float 20s infinite alternate;
}

.globe-2 {
    width: 500px;
    height: 500px;
    background: #4a0000;
    bottom: -100px;
    right: -100px;
    animation: float 15s infinite alternate-reverse;
}

@keyframes float {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Layout */
.app-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    margin-top: 20px;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    background: var(--glass-bg);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.accent { color: var(--accent-red); }

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-primary);
}

.btn-connect {
    background: var(--accent-red);
    color: white !important;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 5px 15px var(--accent-red-dim);
    transition: var(--transition);
}

.btn-connect:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--accent-red-dim);
}

/* Main Content */
main {
    padding: 60px 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-align: center;
}

.servers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.server-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.server-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-red);
}

.status-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-online { background: rgba(40, 167, 69, 0.2); color: #2ecc71; border: 1px solid rgba(46, 204, 113, 0.3); }
.status-offline { background: rgba(231, 76, 60, 0.2); color: #e74c3c; border: 1px solid rgba(231, 76, 60, 0.3); }

.server-header { margin-bottom: 20px; }
.server-name { font-size: 1.8rem; font-weight: 700; margin-bottom: 5px; }
.server-ip { color: var(--text-secondary); font-family: monospace; cursor: pointer; display: flex; align-items: center; gap: 8px; }
.server-ip:hover { color: var(--accent-red); }

.server-stats {
    display: flex;
    gap: 20px;
    margin: 20px 0;
    padding: 15px 0;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.stat-item { text-align: center; flex: 1; }
.stat-value { font-size: 1.5rem; font-weight: 700; color: var(--text-primary); }
.stat-label { font-size: 0.8rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 1px; }

.player-list-toggle {
    text-align: center;
    margin-top: 15px;
    cursor: pointer;
    color: var(--accent-red);
    font-size: 0.9rem;
}

.player-list {
    margin-top: 15px;
    background: rgba(0,0,0,0.3);
    padding: 15px;
    border-radius: 10px;
    max-height: 150px;
    overflow-y: auto;
    display: none; /* Hidden by default */
}
.player-list.show { display: block; }
.player-item { padding: 5px 0; border-bottom: 1px solid rgba(255,255,255,0.05); font-size: 0.9rem; }
.player-item:last-child { border: none; }
.player-avatar { width: 20px; height: 20px; vertical-align: middle; margin-right: 8px; border-radius: 4px; }


/* Rules Section */
.info-section {
    margin-top: 100px;
}

.rules-container {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
}

.rule-item {
    padding: 15px 0;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: flex-start;
    gap: 15px;
}
.rule-item:last-child { border: none; }
.rule-number {
    background: var(--accent-red);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    flex-shrink: 0;
}
.rule-content h4 { margin-bottom: 5px; color: var(--text-primary); }
.rule-content p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.5; }


/* Mods Section */
.mods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.mod-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid transparent;
    transition: var(--transition);
}
.mod-card:hover { border-color: var(--accent-red); background: rgba(255, 51, 51, 0.05); }
.mod-name { font-weight: 600; margin-bottom: 5px; }
.mod-desc { font-size: 0.8rem; color: var(--text-secondary); }

/* Footer */
.glass-footer {
    text-align: center;
    padding: 40px 0;
    margin-top: 50px;
    color: var(--text-secondary);
    border-top: 1px solid var(--glass-border);
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-red); }

@media (max-width: 768px) {
    .navbar { flex-direction: column; gap: 20px; padding: 20px; }
    .nav-links { flex-direction: column; gap: 15px; width: 100%; }
    .nav-links li { width: 100%; text-align: center; }
    .btn-connect { display: block; width: 100%; }
    .globe { opacity: 0.2; }
}
