/* ============================================
   MezarMC SkyBlock - Red Skull Theme
   Premium Dark Design
   ============================================ */

:root {
    --bg-body: #080808;
    --bg-primary: #0d0d0d;
    --bg-card: #111111;
    --bg-card-hover: #1a1a1a;
    --bg-card-alt: #0f0f0f;
    --bg-input: #141414;
    --accent: #dc2626;
    --accent-light: #ef4444;
    --accent-dark: #991b1b;
    --accent-glow: rgba(220, 38, 38, 0.12);
    --accent-glow-strong: rgba(220, 38, 38, 0.25);
    --accent-gradient: linear-gradient(135deg, #dc2626 0%, #b91c1c 50%, #991b1b 100%);
    --accent-purple: #a855f7;
    --text-primary: #f0f0f0;
    --text-secondary: #888888;
    --text-muted: #555555;
    --border: #1e1e1e;
    --border-hover: #2a2a2a;
    --gold: #f59e0b;
    --diamond: #22d3ee;
    --legend: #e879f9;
    --success: #22c55e;
    --danger: #ef4444;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 40px rgba(220, 38, 38, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-body);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== PARTICLES ===== */
#particles {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(220, 38, 38, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(220, 38, 38, 0.02) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(185, 28, 28, 0.02) 0%, transparent 40%);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-body); }
::-webkit-scrollbar-thumb { background: #2a2a2a; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-dark); }

/* ===== NAVBAR ===== */
.navbar {
    background: rgba(13, 13, 13, 0.85);
    border-bottom: 1px solid var(--border);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    height: 64px;
    gap: 2rem;
}

.nav-logo {
    text-decoration: none;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}
.logo-icon { color: var(--accent); font-size: 1.3rem; }
.logo-text { color: var(--text-primary); }
.logo-accent { color: var(--accent); }

.nav-links {
    display: flex;
    gap: 0.25rem;
    flex: 1;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}
.nav-link svg { opacity: 0.5; transition: opacity 0.25s; }
.nav-link:hover { color: var(--text-primary); background: rgba(255,255,255,0.04); }
.nav-link:hover svg { opacity: 1; }
.nav-link.active {
    color: var(--accent-light);
    background: var(--accent-glow);
}
.nav-link.active svg { opacity: 1; stroke: var(--accent-light); }

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-search {
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: border-color 0.25s;
}
.nav-search:focus-within { border-color: var(--accent); }
.search-icon {
    padding-left: 0.75rem;
    color: var(--text-muted);
    flex-shrink: 0;
}
.nav-search input {
    background: transparent;
    border: none;
    color: var(--text-primary);
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    width: 180px;
    outline: none;
}
.nav-search input::placeholder { color: var(--text-muted); }

.btn-search {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.2s;
    letter-spacing: 0.5px;
}
.btn-search:hover { background: var(--accent-light); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.nav-toggle span {
    display: block; width: 20px; height: 2px;
    background: var(--text-secondary); margin: 4px 0;
    transition: all 0.3s;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem;
    min-height: calc(100vh - 140px);
    position: relative;
    z-index: 1;
}

/* ===== CARDS ===== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
}
.card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}

.card-header {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--accent-light);
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.card-header::before {
    content: '';
    width: 3px;
    height: 16px;
    background: var(--accent);
    border-radius: 2px;
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    text-align: center;
    padding: 0;
    margin-bottom: 2.5rem;
    border-radius: var(--radius);
    overflow: hidden;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
}
.hero-bg {
    position: absolute;
    top: -10px; left: -10px;
    width: calc(100% + 20px); height: calc(100% + 20px);
    background-image: url('/assets/hero-bg.gif');
    background-size: cover;
    background-position: center center;
    opacity: 0.4;
    z-index: 0;
    filter: blur(3px);
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(180deg,
        rgba(8, 8, 8, 0.3) 0%,
        rgba(8, 8, 8, 0.6) 50%,
        rgba(8, 8, 8, 0.95) 100%
    );
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    padding: 4rem 2rem 3rem;
}
.hero h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: 4px;
    text-shadow: 0 0 60px rgba(220, 38, 38, 0.3);
}
.hero h1 span { color: var(--accent); }
.hero-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.server-ip-box {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: rgba(220, 38, 38, 0.08);
    border: 1px solid rgba(220, 38, 38, 0.3);
    padding: 0.85rem 2rem;
    border-radius: 50px;
    font-family: 'Space Grotesk', monospace;
    font-size: 1.15rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}
.server-ip-box:hover {
    background: rgba(220, 38, 38, 0.15);
    border-color: var(--accent);
    box-shadow: 0 0 30px rgba(220, 38, 38, 0.15);
    transform: scale(1.02);
}
.server-ip-box .copy-hint {
    font-size: 0.7rem;
    color: var(--accent);
    font-weight: 500;
    letter-spacing: 0;
    text-transform: uppercase;
}

/* ===== STATUS GRID ===== */
.status-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.status-card {
    text-align: center;
    padding: 1.75rem 1rem;
    position: relative;
    overflow: hidden;
}
.status-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
    opacity: 0;
    transition: opacity 0.3s;
}
.status-card:hover::after { opacity: 1; }

.status-card .value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--accent-light);
    line-height: 1;
}
.status-card .label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.tps-good { color: var(--success) !important; }
.tps-warn { color: var(--gold) !important; }
.tps-bad { color: var(--danger) !important; }

/* ===== ONLINE PLAYERS ===== */
.online-players { margin-top: 1.5rem; }
.online-players-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.online-players-header h3 {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}
.online-dot {
    width: 8px; height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
    50% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}

.player-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.player-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 0.5rem 0.85rem;
    border-radius: 50px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.25s;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
}
.player-chip:hover {
    border-color: var(--accent);
    background: var(--accent-glow);
    transform: translateY(-1px);
}
.player-chip img {
    width: 22px; height: 22px;
    border-radius: 50%;
}

/* ===== FEATURES GRID ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}
.feature-card {
    padding: 2rem 1.5rem;
    text-align: center;
    border: 1px solid var(--border);
    background: var(--bg-card);
    border-radius: var(--radius);
    transition: all 0.3s;
}
.feature-card:hover {
    border-color: var(--accent-dark);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}
.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}
.feature-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}
.feature-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ===== PLAYER PROFILE ===== */
.profile-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
}
.profile-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--accent-gradient);
}
.profile-avatar {
    width: 100px; height: 100px;
    border-radius: var(--radius);
    border: 3px solid var(--accent-dark);
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.15);
    image-rendering: pixelated;
}
.profile-info h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: 1px;
}
.profile-info .badges {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}
.badge {
    padding: 0.3rem 0.85rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}
.badge-rank { background: rgba(220, 38, 38, 0.12); color: var(--accent-light); border: 1px solid rgba(220, 38, 38, 0.3); }
.badge-vip-gold { background: rgba(245, 158, 11, 0.12); color: var(--gold); border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-vip-diamond { background: rgba(34, 211, 238, 0.12); color: var(--diamond); border: 1px solid rgba(34, 211, 238, 0.3); }
.badge-vip-legend { background: rgba(232, 121, 249, 0.12); color: var(--legend); border: 1px solid rgba(232, 121, 249, 0.3); }
.badge-online { background: rgba(34, 197, 94, 0.12); color: var(--success); border: 1px solid rgba(34, 197, 94, 0.3); }
.badge-offline { background: rgba(85, 85, 85, 0.12); color: var(--text-muted); border: 1px solid rgba(85, 85, 85, 0.3); }
.badge-prestige { background: rgba(168, 85, 247, 0.12); color: var(--accent-purple); border: 1px solid rgba(168, 85, 247, 0.3); }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}
.stat-card {
    text-align: center;
    padding: 1.25rem 0.75rem;
}
.stat-card .stat-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent-light);
}
.stat-card .stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== SKILLS ===== */
.skill-bar-container { margin-bottom: 1rem; padding: 0 0.25rem; }
.skill-bar-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
}
.skill-bar-header .skill-name { color: var(--text-primary); font-weight: 600; }
.skill-bar-header .skill-level { color: var(--accent-light); font-weight: 500; font-size: 0.8rem; }
.skill-bar {
    height: 6px;
    background: var(--bg-input);
    border-radius: 3px;
    overflow: hidden;
}
.skill-bar-fill {
    height: 100%;
    border-radius: 3px;
    background: var(--accent-gradient);
    transition: width 0.6s ease;
    box-shadow: 0 0 8px rgba(220, 38, 38, 0.3);
}

/* ===== LEADERBOARD ===== */
.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
    letter-spacing: 1px;
}

.leaderboard-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.tab-btn {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
}
.tab-btn:hover { border-color: var(--accent-dark); color: var(--text-primary); }
.tab-btn.active {
    background: var(--accent-glow-strong);
    border-color: var(--accent);
    color: var(--accent-light);
}

.leaderboard-table {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.lb-row {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    transition: all 0.2s;
    text-decoration: none;
    color: var(--text-primary);
}
.lb-row:hover { background: var(--bg-card-hover); }
.lb-row:last-child { border-bottom: none; }
.lb-rank {
    width: 48px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    text-align: center;
    flex-shrink: 0;
}
.lb-rank-1 { color: var(--gold); text-shadow: 0 0 10px rgba(245, 158, 11, 0.3); }
.lb-rank-2 { color: #94a3b8; }
.lb-rank-3 { color: #b45309; }
.lb-avatar {
    width: 40px; height: 40px;
    border-radius: var(--radius-sm);
    margin: 0 1rem;
    image-rendering: pixelated;
    flex-shrink: 0;
}
.lb-name {
    flex: 1;
    font-weight: 600;
    display: flex;
    flex-direction: column;
}
.lb-members {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-top: 2px;
}
.lb-value {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    color: var(--accent-light);
    font-size: 0.95rem;
    flex-shrink: 0;
}

/* ===== COSMETICS ===== */
.cosmetics-legend {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    padding: 0.75rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}
.legend-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
}
.legend-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    display: inline-block;
}
.legend-dot.price-common { background: #9ca3af; }
.legend-dot.price-rare { background: #3b82f6; }
.legend-dot.price-epic { background: #a855f7; }
.legend-dot.price-legendary { background: #f59e0b; }

.category-filters {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.filter-btn {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 0.5rem 1.15rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
}
.filter-btn:hover { border-color: var(--accent-dark); color: var(--text-primary); }
.filter-btn.active { background: var(--accent-glow-strong); border-color: var(--accent); color: var(--accent-light); }

.cosmetic-card {
    padding: 1.5rem 1.25rem;
    text-align: center;
}
.cosmetic-card .cosmetic-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: block;
}
.cosmetic-card .cosmetic-name {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}
.cosmetic-card .cosmetic-price {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
}
.price-common { color: #9ca3af; }
.price-rare { color: #3b82f6; }
.price-epic { color: #a855f7; }
.price-legendary { color: #f59e0b; text-shadow: 0 0 8px rgba(245, 158, 11, 0.3); }
.cosmetic-card .cosmetic-cat {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== VIP ===== */
.vip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}
.vip-card {
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.vip-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
}
.vip-gold { border-color: rgba(245, 158, 11, 0.2); }
.vip-gold::before { background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.vip-gold:hover { border-color: rgba(245, 158, 11, 0.4); box-shadow: 0 0 30px rgba(245, 158, 11, 0.05); }
.vip-diamond { border-color: rgba(34, 211, 238, 0.2); }
.vip-diamond::before { background: linear-gradient(90deg, transparent, var(--diamond), transparent); }
.vip-diamond:hover { border-color: rgba(34, 211, 238, 0.4); box-shadow: 0 0 30px rgba(34, 211, 238, 0.05); }
.vip-legend { border-color: rgba(232, 121, 249, 0.2); }
.vip-legend::before { background: linear-gradient(90deg, transparent, var(--legend), transparent); }
.vip-legend:hover { border-color: rgba(232, 121, 249, 0.4); box-shadow: 0 0 30px rgba(232, 121, 249, 0.05); }

.vip-card h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}
.vip-gold h2 { color: var(--gold); }
.vip-diamond h2 { color: var(--diamond); }
.vip-legend h2 { color: var(--legend); }
.vip-price {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}
.vip-price-period {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-left: 2px;
}
.vip-gold .vip-price { color: var(--gold); }
.vip-diamond .vip-price { color: var(--diamond); }
.vip-legend .vip-price { color: var(--legend); text-shadow: 0 0 15px rgba(232, 121, 249, 0.3); }
.vip-card .vip-benefits {
    list-style: none;
    text-align: left;
    margin: 1rem 0;
}
.vip-card .vip-benefits li {
    padding: 0.5rem 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.vip-card .vip-benefits li::before {
    content: '\2713';
    color: var(--success);
    font-weight: 700;
    font-size: 0.75rem;
    width: 20px; height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(34, 197, 94, 0.1);
    border-radius: 50%;
    flex-shrink: 0;
}

.discord-section {
    background: var(--bg-card);
    border: 1px solid #5865f2;
    border-radius: var(--radius);
    padding: 2.5rem;
    margin-top: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.discord-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #5865f2, transparent);
}
.discord-section h3 {
    font-family: 'Space Grotesk', sans-serif;
    color: #5865f2;
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
    letter-spacing: 0.5px;
}
.discord-section p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}
.discord-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: #5865f2;
    color: #fff;
    padding: 0.85rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s;
    letter-spacing: 0.5px;
}
.discord-btn:hover {
    background: #4752c4;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(88, 101, 242, 0.3);
}

/* Discord Custom Card */
.discord-card {
    margin-top: 1.5rem;
    background: #2b2d31;
    border-radius: var(--radius);
    padding: 1.25rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid #3f4147;
}
.discord-card-loading {
    display: flex;
    justify-content: center;
    padding: 2rem 0;
}
.discord-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}
.discord-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    object-fit: cover;
    flex-shrink: 0;
}
.discord-card-info {
    text-align: left;
}
.discord-card-name {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 0.3rem;
}
.discord-card-counts {
    display: flex;
    gap: 1rem;
    font-size: 0.82rem;
    color: #b5bac1;
}
.online-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #23a55a;
    margin-right: 4px;
    vertical-align: middle;
}
.member-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #80848e;
    margin-right: 4px;
    vertical-align: middle;
}
.discord-join-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    background: #5865f2;
    color: #fff;
    padding: 0.75rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s;
}
.discord-join-btn:hover {
    background: #4752c4;
}

/* ===== PATCH NOTES ===== */
.patch-note {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 2rem;
}
.patch-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    border-bottom: 1px solid var(--border);
    background: var(--bg-card-alt);
    position: relative;
}
.patch-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--accent-gradient);
}
.patch-version {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-light);
    background: var(--accent-glow-strong);
    border: 1px solid rgba(220, 38, 38, 0.3);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    white-space: nowrap;
    flex-shrink: 0;
}
.patch-meta {
    flex: 1;
}
.patch-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    letter-spacing: 0.3px;
}
.patch-date {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
}
.patch-body {
    padding: 1.5rem 2rem 2rem;
}
.patch-section {
    margin-bottom: 1.75rem;
}
.patch-section:last-child {
    margin-bottom: 0;
}
.patch-section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}
.patch-section-icon {
    font-size: 1.1rem;
}
.patch-section-count {
    font-size: 0.7rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    padding: 0.15rem 0.6rem;
    border-radius: 50px;
    margin-left: auto;
}
.patch-critical .patch-section-title { color: #ef4444; }
.patch-high .patch-section-title { color: #f59e0b; }
.patch-medium .patch-section-title { color: #3b82f6; }
.patch-low .patch-section-title { color: #8b5cf6; }
.patch-feature .patch-section-title { color: #22c55e; }

.patch-items {
    display: grid;
    gap: 0.75rem;
}
.patch-item {
    background: var(--bg-card-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1rem 1.25rem;
    transition: all 0.25s ease;
}
.patch-item:hover {
    border-color: var(--border-hover);
    transform: translateX(4px);
}
.patch-item-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
}
.patch-item-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.patch-critical .patch-item { border-left: 3px solid #ef4444; }
.patch-high .patch-item { border-left: 3px solid #f59e0b; }
.patch-medium .patch-item { border-left: 3px solid #3b82f6; }
.patch-low .patch-item { border-left: 3px solid #8b5cf6; }
.patch-feature .patch-item { border-left: 3px solid #22c55e; }

/* ===== UTILITY ===== */
.fade-in { animation: fadeIn 0.4s ease; }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem;
    color: var(--text-muted);
}
.spinner {
    width: 36px; height: 36px;
    border: 2px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    margin-bottom: 1rem;
}
@keyframes spin { to { transform: rotate(360deg); } }

.error-msg {
    text-align: center;
    padding: 4rem;
    color: var(--text-muted);
}
.error-msg h2 {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--accent);
    margin-bottom: 0.5rem;
    font-size: 2rem;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border);
    margin-top: 3rem;
    position: relative;
    z-index: 1;
}
.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 3rem 2rem 2rem;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: start;
}
.footer-brand p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 0.5rem;
}
.footer-logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 2px;
}
.footer-links {
    display: flex;
    gap: 1.5rem;
    justify-self: center;
}
.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent-light); }
.footer-ip { justify-self: end; text-align: right; }
.footer-ip-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
}
.footer-ip-value {
    font-family: 'Space Grotesk', monospace;
    color: var(--accent-light);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: color 0.2s;
    letter-spacing: 1px;
}
.footer-ip-value:hover { color: var(--accent); }
.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 1.25rem 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-container { padding: 0 1rem; gap: 1rem; }
    .nav-links {
        display: none;
        position: absolute;
        top: 64px; left: 0; right: 0;
        background: var(--bg-primary);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 0.5rem;
    }
    .nav-links.open { display: flex; }
    .nav-toggle { display: block; }
    .nav-search input { width: 120px; }
    .main-content { padding: 1rem; }
    .hero h1 { font-size: 2rem; letter-spacing: 2px; }
    .hero-subtitle { font-size: 0.95rem; }
    .hero-content { padding: 3rem 1.5rem 2rem; }
    .status-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .profile-header { flex-direction: column; text-align: center; padding: 1.5rem; }
    .profile-info .badges { justify-content: center; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .vip-grid { grid-template-columns: 1fr; }
    .card-grid { grid-template-columns: 1fr 1fr; }
    .footer-container { grid-template-columns: 1fr; text-align: center; gap: 1.5rem; }
    .footer-links { justify-self: center; }
    .footer-ip { justify-self: center; text-align: center; }
    .lb-row { padding: 0.75rem 1rem; }
    .lb-rank { width: 36px; font-size: 0.95rem; }
    .lb-avatar { width: 32px; height: 32px; margin: 0 0.5rem; }
    .patch-header { flex-direction: column; align-items: flex-start; gap: 1rem; padding: 1.5rem; }
    .patch-body { padding: 1.25rem 1.5rem 1.5rem; }
    .patch-title { font-size: 1.1rem; }
}
@media (max-width: 480px) {
    .card-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .server-ip-box { font-size: 0.95rem; padding: 0.75rem 1.5rem; }
}

/* ============================================
   Canli Aktivite Feed
   ============================================ */
.activity-section {
    margin: 2rem 0;
}
.activity-feed {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem;
    max-height: 320px;
    overflow-y: auto;
}
.activity-feed::-webkit-scrollbar { width: 6px; }
.activity-feed::-webkit-scrollbar-thumb { background: var(--accent-dark); border-radius: 3px; }
.activity-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.6rem;
    border-radius: 8px;
    transition: background 0.15s;
    font-size: 0.9rem;
}
.activity-item:hover {
    background: var(--bg-card-hover);
}
.activity-item + .activity-item {
    border-top: 1px solid var(--border);
}
.activity-icon {
    font-size: 1rem;
    flex-shrink: 0;
    width: 1.5rem;
    text-align: center;
}
.activity-player {
    color: var(--accent-light);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}
.activity-player:hover {
    text-decoration: underline;
}
.activity-text {
    color: var(--text-secondary);
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.activity-time {
    color: var(--text-tertiary);
    font-size: 0.78rem;
    white-space: nowrap;
    flex-shrink: 0;
}
.activity-empty {
    text-align: center;
    color: var(--text-tertiary);
    padding: 2rem;
    font-style: italic;
}
.activity-join .activity-icon { color: #22c55e; }
.activity-quit .activity-icon { color: #ef4444; }
.activity-achievement .activity-icon { color: #f59e0b; }
.activity-level_up .activity-icon { color: #eab308; }

/* ============================================
   Basarim Gosterimi
   ============================================ */
.achievement-bar-container {
    margin: 0.5rem 0 1rem;
}
.achievement-fill {
    background: linear-gradient(90deg, #f59e0b, #eab308) !important;
}
.achievement-categories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
    padding-top: 0.5rem;
}
.achievement-cat {
    padding: 0.5rem;
    background: var(--bg-card-alt);
    border-radius: 8px;
}
.achievement-cat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
}
.achievement-cat-name {
    color: var(--text-primary);
    font-weight: 500;
}
.achievement-cat-count {
    color: var(--text-tertiary);
    font-size: 0.8rem;
}
@media (max-width: 600px) {
    .achievement-categories { grid-template-columns: 1fr 1fr; }
    .activity-text { display: none; }
}
