:root {
    --bg-color: #0d0d12;
    --card-bg: #16161f;
    --text-color: #f3f4f6;
    --text-muted: #9ca3af;
    --neon-green: #39ff14;
    --neon-red: #ff073a;
    --accent: #6366f1;
    --accent-hover: #4f46e5;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header */
.header {
    padding: 1.5rem 2rem;
    background: rgba(22, 22, 31, 0.7);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo-text {
    color: var(--text-color);
}

.logo-sub {
    color: var(--accent);
    margin-left: 2px;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

/* Hero */
.hero {
    text-align: center;
    margin-bottom: 4rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff 0%, #a5b4fc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.neon-text {
    color: var(--accent);
    -webkit-text-fill-color: initial;
    text-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}

.hero-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Servers Grid */
.servers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    justify-content: center;
}

/* TeamSpeak Button */
.teamspeak-btn {
    background: #0056b3;
    color: #fff !important;
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s;
    border: none;
    width: 100%;
    margin-bottom: 0.5rem;
    box-sizing: border-box;
}

.teamspeak-btn:hover {
    background: #004494;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 86, 179, 0.3);
}

.teamspeak-btn i {
    font-size: 1rem;
}

/* Custom Tooltip */
.players-container {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.info-icon {
    width: 16px;
    height: 16px;
    cursor: help;
    transition: transform 0.2s;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-icon:hover {
    transform: scale(1.1);
}

.info-icon svg {
    width: 100%;
    height: 100%;
}

.custom-tooltip {
    position: absolute;
    bottom: 130%;
    right: 0;
    background: #0f172a;
    border: 1px solid #1e293b;
    border-radius: 8px;
    color: #f8fafc;
    padding: 10px 14px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    white-space: nowrap;
    transition: all 0.2s ease-in-out;
    font-size: 0.85rem;
    font-weight: 400;
}

/* Arrow for tooltip */
.custom-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 8px;
    border-width: 5px;
    border-style: solid;
    border-color: #0f172a transparent transparent transparent;
}

.info-icon:hover .custom-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-4px);
}

/* Card */
.server-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    /* overflow: hidden; */
}

.server-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.05), transparent);
    z-index: 0;
}

.server-card:hover {
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(99, 102, 241, 0.1);
}

.card-content {
    position: relative;
    z-index: 1;
}

.server-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.server-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.status-badge {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid transparent;
}

.status-badge.online {
    background: rgba(57, 255, 20, 0.1);
    color: var(--neon-green);
    border-color: rgba(57, 255, 20, 0.2);
    box-shadow: 0 0 10px rgba(57, 255, 20, 0.1);
}

.status-badge.offline {
    background: rgba(255, 7, 58, 0.1);
    color: var(--neon-red);
    border-color: rgba(255, 7, 58, 0.2);
    box-shadow: 0 0 10px rgba(255, 7, 58, 0.1);
}

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

.online .badge-dot {
    background-color: var(--neon-green);
    box-shadow: 0 0 8px var(--neon-green);
}

.offline .badge-dot {
    background-color: var(--neon-red);
    box-shadow: 0 0 8px var(--neon-red);
}

.server-info {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.info-value {
    color: var(--text-color);
    font-weight: 600;
}

.copy-btn {
    width: 100%;
    padding: 0.8rem;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.02);
}

.copy-btn:hover {
    background: var(--accent);
    color: #fff;
}

/* Loading Spinner */
.loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(99, 102, 241, 0.1);
    border-radius: 50%;
    border-top-color: var(--accent);
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.02);
    margin-top: auto;
}

/* Empty State */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    max-width: 500px;
    margin: 2rem auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.empty-state i {
    font-size: 3rem;
    color: var(--accent);
    filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.3));
    margin-bottom: 0.5rem;
}

.empty-state p {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
}

/* Game Category Sections */
.game-section {
    margin-bottom: 3.5rem;
}

.section-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #fff;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.section-icon {
    font-size: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.22rem;
    }
    .container {
        padding: 2rem 1rem;
    }
}
