/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #ffffff;
    overflow-x: hidden;
}

/* Navigation Styles */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(44, 62, 80, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    background: linear-gradient(45deg, #f39c12, #d4af37);
    -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: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: #f39c12;
    transform: translateY(-2px);
}

/* Navigation Search */
.nav-search {
    display: flex;
    align-items: center;
    gap: 5px;
    position: relative;
}

#nav-search-input {
    background: rgba(44, 62, 80, 0.8);
    color: #ffffff;
    padding: 8px 15px;
    border-radius: 20px;
    border: 2px solid transparent;
    width: 200px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

#nav-search-input:focus {
    border-color: #f39c12;
    background: rgba(44, 62, 80, 0.9);
    box-shadow: 0 0 15px rgba(243, 156, 18, 0.2);
}

#nav-search-btn {
    background: linear-gradient(45deg, #f39c12, #d4af37);
    color: #2c3e50;
    border: none;
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

#nav-search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(243, 156, 18, 0.3);
}

/* Search Results Dropdown */
.search-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: linear-gradient(145deg, #95a5a6, #7f8c8d);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    z-index: 1000;
    min-width: 300px;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    margin-top: 10px;
}

.search-dropdown-item {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(44, 62, 80, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.search-dropdown-item:hover {
    background: rgba(44, 62, 80, 0.1);
}

.search-dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-player-name {
    color: #2c3e50;
    font-weight: bold;
    font-size: 1.1rem;
}

.dropdown-player-elo {
    background: linear-gradient(45deg, #f39c12, #d4af37);
    color: #2c3e50;
    padding: 4px 12px;
    border-radius: 15px;
    font-weight: bold;
    font-size: 0.9rem;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), 
                radial-gradient(circle at center, #d4af37 0%, transparent 70%);
    position: relative;
}

.hero-content h1 {
    font-size: 4.5rem;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #f39c12, #d4af37, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { filter: drop-shadow(0 0 20px rgba(243, 156, 18, 0.3)); }
    to { filter: drop-shadow(0 0 30px rgba(212, 175, 55, 0.5)); }
}

.hero-content p {
    font-size: 1.4rem;
    margin-bottom: 30px;
    color: #bdc3c7;
}

.server-ip {
    background: linear-gradient(45deg, #f39c12, #d4af37);
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.3rem;
    font-weight: bold;
    color: #2c3e50;
    margin: 20px 0;
    display: inline-block;
    box-shadow: 0 10px 30px rgba(243, 156, 18, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.server-ip:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(243, 156, 18, 0.4);
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

/* Button Styles */
.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(45deg, #f39c12, #d4af37);
    color: #2c3e50;
    box-shadow: 0 5px 20px rgba(243, 156, 18, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid #95a5a6;
}

.btn:hover {
    transform: translateY(-3px);
}

.btn-primary:hover {
    box-shadow: 0 8px 25px rgba(243, 156, 18, 0.4);
}

.btn-secondary:hover {
    background: #95a5a6;
    color: #2c3e50;
}

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

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 60px;
    background: linear-gradient(45deg, #f39c12, #d4af37);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Features Section */
.features {
    padding: 100px 0;
    background: linear-gradient(180deg, #34495e 0%, #2c3e50 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.feature-card {
    background: linear-gradient(145deg, #95a5a6, #7f8c8d);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(243, 156, 18, 0.2);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #f39c12;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #2c3e50;
}

.feature-card p {
    color: #34495e;
    line-height: 1.6;
}

/* Game Modes Section */
.game-modes {
    padding: 100px 0;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 50%, #2c3e50 100%);
}

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

.mode-card {
    background: linear-gradient(145deg, #34495e, #2c3e50);
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.mode-card:hover, .mode-card.active {
    border: 2px solid #f39c12;
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(243, 156, 18, 0.3);
}

.mode-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.mode-card h3 {
    color: #f39c12;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.mode-card p {
    color: #bdc3c7;
    font-size: 0.9rem;
}

.mode-details {
    background: linear-gradient(145deg, #95a5a6, #7f8c8d);
    border-radius: 20px;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.mode-info {
    display: none;
    text-align: center;
}

.mode-info.active {
    display: block;
}

.mode-info h4 {
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 20px;
}

.mode-info p {
    color: #34495e;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.mode-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.mode-stats span {
    background: #2c3e50;
    color: #f39c12;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 0.9rem;
}

/* Player Search Styles */
.player-search {
    margin-bottom: 40px;
}

.search-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

#player-search-input {
    background: #2c3e50;
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 25px;
    border: 2px solid #f39c12;
    width: 300px;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
}

#player-search-input:focus {
    border-color: #d4af37;
    box-shadow: 0 0 20px rgba(243, 156, 18, 0.3);
}

#search-btn, #clear-search-btn {
    background: linear-gradient(45deg, #f39c12, #d4af37);
    color: #2c3e50;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

#search-btn:hover, #clear-search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(243, 156, 18, 0.4);
}

#clear-search-btn {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    color: #ffffff;
}

.search-results {
    background: linear-gradient(145deg, #95a5a6, #7f8c8d);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.search-results h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    text-align: center;
}

.search-result-item {
    background: #34495e;
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #ffffff;
}

.search-result-item:hover {
    background: #2c3e50;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(243, 156, 18, 0.2);
}

.search-result-item:last-child {
    margin-bottom: 0;
}

.search-player-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.search-player-name {
    font-weight: bold;
    font-size: 1.2rem;
    color: #f39c12;
    margin-bottom: 5px;
}

.search-player-stats {
    font-size: 0.9rem;
    color: #bdc3c7;
}

.search-player-elo {
    background: linear-gradient(45deg, #f39c12, #d4af37);
    color: #2c3e50;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 1.1rem;
}

.no-results {
    text-align: center;
    color: #34495e;
    font-style: italic;
    padding: 20px;
}

/* Leaderboards Section */
.leaderboards {
    padding: 100px 0;
    background: linear-gradient(180deg, #34495e 0%, #2c3e50 100%);
}

.leaderboard-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    gap: 10px;
}

.tab-btn {
    background: transparent;
    border: 2px solid #95a5a6;
    color: #95a5a6;
    padding: 12px 30px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.tab-btn:hover, .tab-btn.active {
    background: linear-gradient(45deg, #f39c12, #d4af37);
    border-color: #f39c12;
    color: #2c3e50;
}

.leaderboard-table {
    background: linear-gradient(145deg, #95a5a6, #7f8c8d);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.leaderboard-header {
    background: #2c3e50;
    display: grid;
    grid-template-columns: 1fr 2fr 1fr 1fr;
    padding: 20px;
    font-weight: bold;
    color: #f39c12;
    font-size: 1.1rem;
}

.leaderboard-row {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr 1fr;
    padding: 20px;
    border-bottom: 1px solid #34495e;
    transition: all 0.3s ease;
    color: #2c3e50;
    font-weight: bold;
}

.leaderboard-row:hover {
    background: rgba(243, 156, 18, 0.1);
}

.leaderboard-row.champion {
    background: linear-gradient(45deg, rgba(255, 215, 0, 0.2), rgba(243, 156, 18, 0.2));
}

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

.rank {
    font-size: 1.2rem;
}

.player {
    font-weight: bold;
    color: #2c3e50;
}

.elo {
    color: #f39c12;
    font-weight: bold;
}

.wl {
    color: #27ae60;
}

/* Statistics Section */
.stats {
    padding: 80px 0;
    background: linear-gradient(45deg, #2c3e50, #34495e);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-item h3 {
    font-size: 3rem;
    color: #f39c12;
    margin-bottom: 10px;
    font-weight: bold;
}

.stat-item p {
    color: #bdc3c7;
    font-size: 1.1rem;
}

/* Footer Section */
.footer {
    background: #2c3e50;
    padding: 60px 0 30px;
    text-align: center;
}

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

.footer-section h3 {
    color: #f39c12;
    margin-bottom: 20px;
}

.footer-section p, .footer-section a {
    color: #bdc3c7;
    text-decoration: none;
    line-height: 1.6;
}

.footer-section a:hover {
    color: #f39c12;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 20px;
    color: #95a5a6;
}

/* Particle Animation */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #f39c12;
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.emoji-particle {
    background: transparent !important;
    border-radius: 0;
    opacity: 0.8;
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
        opacity: 0.7; 
    }
    50% { 
        transform: translateY(-20px) rotate(180deg); 
        opacity: 1; 
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 { 
        font-size: 3rem; 
    }
    
    .nav-links { 
        display: none; 
    }
    
    .cta-buttons { 
        flex-direction: column; 
        align-items: center; 
    }
    
    .features-grid { 
        grid-template-columns: 1fr; 
    }
    
    .modes-showcase {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .mode-stats {
        gap: 20px;
    }
    
    .mode-stats span {
        font-size: 0.8rem;
        padding: 8px 15px;
    }
    
    .leaderboard-header,
    .leaderboard-row {
        grid-template-columns: 0.8fr 2fr 1fr 1fr;
        padding: 15px 10px;
        font-size: 0.9rem;
    }
    
    .tab-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .modes-showcase {
        grid-template-columns: 1fr;
    }
    
    .leaderboard-header,
    .leaderboard-row {
        grid-template-columns: 0.5fr 1.5fr 1fr 1fr;
        padding: 12px 8px;
        font-size: 0.8rem;
    }
}