/* ========================================
   BUNDESBEER - Modern Gaming Website
   Design System & Styles
   ======================================== */

/* CSS Variables - Design Tokens */
:root {
    /* Colors */
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #1a1a25;
    --bg-card-hover: #222230;
    --border-color: #2a2a3a;
    
    /* Neon Accents */
    --neon-cyan: #00f0ff;
    --neon-purple: #a855f7;
    --neon-orange: #f39c12;
    --neon-pink: #ff2d95;
    --neon-green: #00ff88;
    
    /* Status Colors */
    --success: #27ae60;
    --danger: #e74c3c;
    --warning: #f39c12;
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-muted: #6a6a7a;
    
    /* Typography */
    --font-heading: 'Orbitron', 'Rajdhani', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Spacing */
    --section-padding: 100px;
    --container-max-width: 1200px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Shadows */
    --glow-cyan: 0 0 20px rgba(0, 240, 255, 0.3);
    --glow-purple: 0 0 20px rgba(168, 85, 247, 0.3);
    --glow-orange: 0 0 20px rgba(243, 156, 18, 0.3);
}

/* Reset & Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

a {
    color: var(--neon-cyan);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--neon-purple);
}

/* Container */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    transition: all var(--transition-normal);
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    width: 40px;
    height: 40px;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
    transition: width var(--transition-normal);
}

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

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition-fast);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 100px 20px;
}

.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--neon-cyan);
    border-radius: 50%;
    opacity: 0.6;
    animation: float 15s infinite linear;
    box-shadow: 0 0 10px var(--neon-cyan);
}

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

.hero-content {
    text-align: center;
    z-index: 1;
    max-width: 800px;
}

.hero-logo {
    width: 120px;
    height: 120px;
    margin-bottom: 30px;
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 20px rgba(0, 240, 255, 0.3));
    }
    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 40px rgba(0, 240, 255, 0.6));
    }
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple), var(--neon-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    color: var(--bg-primary);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--glow-cyan), var(--glow-purple);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--neon-cyan);
}

.btn-secondary:hover {
    background: rgba(0, 240, 255, 0.1);
    box-shadow: var(--glow-cyan);
}

.btn-discord {
    background: linear-gradient(135deg, #5865F2, #4752C4);
    color: white;
}

.btn-discord:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(88, 101, 242, 0.5);
}

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

.btn:hover::before {
    left: 100%;
}

/* Section Styles */
section {
    padding: var(--section-padding) 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
    border-radius: 2px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 20px auto 0;
}

/* Server Status Section */
.server-status {
    background: var(--bg-secondary);
}

.server-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.server-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.server-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.server-card:hover {
    transform: translateY(-5px);
    border-color: var(--neon-cyan);
    box-shadow: var(--glow-cyan);
}

.server-card:hover::before {
    transform: scaleX(1);
}

.server-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.server-name {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.server-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.server-status-badge.online {
    background: rgba(39, 174, 96, 0.2);
    color: var(--success);
    border: 1px solid var(--success);
}

.server-status-badge.offline {
    background: rgba(231, 76, 60, 0.2);
    color: var(--danger);
    border: 1px solid var(--danger);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

.server-status-badge.online .status-dot {
    background: var(--success);
}

.server-status-badge.offline .status-dot {
    background: var(--danger);
    animation: none;
}

@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

.player-count {
    font-size: 2rem;
    font-weight: 700;
    color: var(--neon-cyan);
    font-family: var(--font-heading);
}

.player-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Features Section */
.features {
    background: var(--bg-primary);
}

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

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 35px;
    transition: all var(--transition-normal);
    position: relative;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--neon-purple);
    box-shadow: var(--glow-purple);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 25px;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Mods Section */
.mods {
    background: var(--bg-secondary);
}

.mods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.mod-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.mod-card:hover {
    transform: scale(1.02);
    border-color: var(--neon-orange);
    box-shadow: var(--glow-orange);
}

.mod-header {
    padding: 20px;
    background: linear-gradient(135deg, rgba(243, 156, 18, 0.2), rgba(243, 156, 18, 0.05));
    border-bottom: 1px solid var(--border-color);
}

.mod-icon {
    width: 50px;
    height: 50px;
    background: var(--neon-orange);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.mod-content {
    padding: 20px;
}

.mod-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.mod-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.mod-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.mod-tag {
    padding: 4px 10px;
    background: rgba(243, 156, 18, 0.15);
    color: var(--neon-orange);
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Leaderboard Section */
.leaderboard {
    background: var(--bg-primary);
}

.leaderboard-table {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
}

.leaderboard-header {
    display: grid;
    grid-template-columns: 80px 1fr 120px 120px;
    padding: 20px 30px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.leaderboard-row {
    display: grid;
    grid-template-columns: 80px 1fr 120px 120px;
    padding: 20px 30px;
    border-bottom: 1px solid var(--border-color);
    align-items: center;
    transition: background var(--transition-fast);
}

.leaderboard-row:last-child {
    border-bottom: none;
}

.leaderboard-row:hover {
    background: var(--bg-secondary);
}

.rank {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
}

.rank-1 { color: #FFD700; text-shadow: 0 0 10px rgba(255, 215, 0, 0.5); }
.rank-2 { color: #C0C0C0; text-shadow: 0 0 10px rgba(192, 192, 192, 0.5); }
.rank-3 { color: #CD7F32; text-shadow: 0 0 10px rgba(205, 127, 50, 0.5); }

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

.player-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.player-name {
    font-weight: 600;
}

.score, .playtime {
    color: var(--neon-cyan);
    font-family: var(--font-heading);
    font-weight: 600;
}

/* Events Section */
.events {
    background: var(--bg-secondary);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.event-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.event-card:hover {
    transform: translateY(-5px);
    border-color: var(--neon-pink);
    box-shadow: 0 0 30px rgba(255, 45, 149, 0.2);
}

.event-date {
    background: linear-gradient(135deg, var(--neon-pink), var(--neon-purple));
    padding: 20px;
    text-align: center;
}

.event-date .day {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    display: block;
}

.event-date .month {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.9;
}

.event-content {
    padding: 25px;
}

.event-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.event-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.event-time {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--neon-pink);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Gallery Section */
.gallery {
    background: var(--bg-primary);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16/10;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(10, 10, 15, 0.9), transparent);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h4 {
    font-size: 1rem;
    color: var(--text-primary);
}

/* TikTok Videos Section - Redesigned with Thumbnail Grid */
.tiktok-section {
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.tiktok-section .section-header h2 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.tiktok-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #ff0050 0%, #00f2ea 100%);
    border-radius: 12px;
    color: white;
}

.tiktok-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

/* No Videos Message */
.no-videos-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 40px;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.no-videos-message svg {
    color: var(--neon-cyan);
    margin-bottom: 16px;
    opacity: 0.7;
}

.no-videos-message p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin: 0;
}

.no-videos-message .sub-text {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 8px;
}

/* TikTok Card */
.tiktok-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all var(--transition-normal);
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.tiktok-card:hover {
    transform: translateY(-8px);
    border-color: #ff0050;
    box-shadow: 0 12px 40px rgba(255, 0, 80, 0.2), 0 0 30px rgba(0, 242, 234, 0.1);
}

.tiktok-thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 9/16;
    overflow: hidden;
}

.tiktok-thumbnail-bg {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.tiktok-thumbnail-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.tiktok-play-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff0050;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all var(--transition-normal);
    z-index: 3;
}

.tiktok-card:hover .tiktok-play-icon {
    transform: scale(1.1);
    background: white;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.4);
}

.tiktok-play-icon svg {
    margin-left: 4px;
}

.tiktok-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    z-index: 2;
}

.tiktok-stats {
    display: flex;
    gap: 15px;
}

.tiktok-views {
    display: flex;
    align-items: center;
    gap: 6px;
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
}

.tiktok-info {
    padding: 18px 20px;
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
}

.tiktok-info h4 {
    font-size: 1.05rem;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tiktok-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0 0 10px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tiktok-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tiktok-username {
    color: var(--neon-cyan);
    font-size: 0.85rem;
    font-weight: 500;
}

/* TikTok Modal */
.tiktok-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.tiktok-modal.active {
    display: flex;
}

.tiktok-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.tiktok-modal-content {
    position: relative;
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    max-width: 400px;
    width: 100%;
    max-height: 90vh;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.tiktok-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    z-index: 10;
}

.tiktok-modal-close:hover {
    background: rgba(255, 0, 80, 0.8);
    transform: rotate(90deg);
}

.tiktok-modal-video {
    position: relative;
    width: 100%;
    aspect-ratio: 9/16;
    background: #000;
    overflow: hidden;
}

.tiktok-modal-video iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.tiktok-modal-info {
    padding: 20px;
    background: var(--bg-card);
}

.tiktok-modal-info h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-family: var(--font-heading);
}

.tiktok-modal-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .tiktok-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
    }

    .tiktok-icon {
        width: 40px;
        height: 40px;
    }

    .tiktok-icon svg {
        width: 24px;
        height: 24px;
    }

    .tiktok-play-icon {
        width: 56px;
        height: 56px;
    }

    .tiktok-info {
        padding: 15px;
    }

    .tiktok-info h4 {
        font-size: 1rem;
    }

    .tiktok-modal-content {
        max-width: 100%;
        max-height: 85vh;
        border-radius: 16px;
    }

    .tiktok-modal-close {
        top: 10px;
        right: 10px;
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 480px) {
    .tiktok-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .tiktok-card {
        border-radius: 12px;
    }

    .tiktok-info {
        padding: 12px;
    }

    .tiktok-info h4 {
        font-size: 0.9rem;
        margin-bottom: 4px;
    }

    .tiktok-info p {
        font-size: 0.8rem;
        margin-bottom: 6px;
    }

    .tiktok-username {
        font-size: 0.75rem;
    }

    .tiktok-play-icon {
        width: 48px;
        height: 48px;
    }

    .tiktok-play-icon svg {
        width: 20px;
        height: 20px;
    }
}

/* Discord CTA Section */
.discord-cta {
    background: linear-gradient(135deg, #5865F2, #4752C4);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.discord-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: move-grid 20s linear infinite;
}

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

.discord-cta .container {
    position: relative;
    z-index: 1;
}

.discord-cta h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 15px;
}

.discord-cta p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand img {
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
}

.footer-brand h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.footer-links h4 {
    font-size: 1rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--neon-cyan);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}

.social-links a:hover {
    background: var(--neon-cyan);
    color: var(--bg-primary);
    border-color: var(--neon-cyan);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: 999;
    box-shadow: var(--glow-cyan);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-secondary);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        border-top: 1px solid var(--border-color);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero {
        padding: 120px 20px 60px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .leaderboard-header,
    .leaderboard-row {
        grid-template-columns: 50px 1fr 80px;
    }
    
    .leaderboard-header > :last-child,
    .leaderboard-row > :last-child {
        display: none;
    }
    
    .server-grid,
    .features-grid,
    .mods-grid,
    .events-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glow-cyan {
    box-shadow: var(--glow-cyan);
}

.glow-purple {
    box-shadow: var(--glow-purple);
}

.glow-orange {
    box-shadow: var(--glow-orange);
}

/* ========================================
   BUNDESLAND SECTION - Austrian States
   ======================================== */

.bundesland {
    background: var(--bg-secondary);
}

.bundesland-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.bundesland-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.bundesland-section:hover {
    border-color: var(--neon-cyan);
    box-shadow: var(--glow-cyan);
}

.bundesland-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 25px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.bundesland-flag {
    width: 50px;
    height: 30px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

.bundesland-flag svg {
    width: 100%;
    height: 100%;
    display: block;
}

.bundesland-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
}

.bundesland-count {
    background: var(--neon-cyan);
    color: var(--bg-primary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.bundesland-users {
    padding: 20px 25px;
}

.bundesland-users-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.bundesland-user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}

.bundesland-user-card:hover {
    transform: translateX(5px);
    border-color: var(--neon-purple);
    box-shadow: var(--glow-purple);
}

.bundesland-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.bundesland-user-info {
    flex: 1;
    min-width: 0;
}

.bundesland-user-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bundesland-user-stats {
    display: flex;
    gap: 12px;
    margin-top: 4px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.bundesland-user-stats span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.bundesland-user-stats .score {
    color: var(--neon-cyan);
}

.bundesland-user-stats .playtime {
    color: var(--neon-purple);
}

.bundesland-empty {
    text-align: center;
    padding: 30px;
    color: var(--text-secondary);
    font-style: italic;
}

/* ========================================
   STATISTICS SECTION - User Region Chart
   ======================================== */

.statistics {
    background: var(--bg-primary);
    padding: var(--section-padding) 0;
}

.stats-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
    max-width: 1000px;
    margin: 0 auto;
}

.stats-chart-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    position: relative;
    min-height: 400px;
}

.stats-chart-wrapper canvas {
    max-height: 350px;
}

.stats-summary {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stats-total {
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    box-shadow: var(--glow-cyan);
}

.stats-total-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: var(--bg-primary);
    line-height: 1;
    margin-bottom: 10px;
}

.stats-total-label {
    display: block;
    font-size: 1rem;
    color: var(--bg-primary);
    font-weight: 600;
    opacity: 0.9;
}

.stats-loading {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.stats-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--neon-cyan);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.stats-loading span {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.stats-error {
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid var(--danger);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--danger);
}

.stats-error svg {
    opacity: 0.8;
}

/* Responsive Statistics */
@media (max-width: 900px) {
    .stats-container {
        grid-template-columns: 1fr;
    }
    
    .stats-summary {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .stats-total {
        flex: 1;
        min-width: 200px;
    }
    
    .stats-loading,
    .stats-error {
        flex: 1;
        min-width: 200px;
    }
}

@media (max-width: 600px) {
    .stats-chart-wrapper {
        padding: 20px;
        min-height: 300px;
    }
    
    .stats-chart-wrapper canvas {
        max-height: 250px;
    }
    
    .stats-total-number {
        font-size: 2.5rem;
    }
    
    .stats-summary {
        flex-direction: column;
    }
}

/* Responsive Bundesland */
@media (max-width: 768px) {
    .bundesland-header {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .bundesland-title {
        font-size: 1.1rem;
    }
    
    .bundesland-users-grid {
        grid-template-columns: 1fr;
    }
    
    .bundesland-flag {
        width: 40px;
        height: 24px;
    }
}

