@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Rajdhani:wght@500;600;700&display=swap');

:root {
    --bg-dark: #0a0a0f;
    --primary: #00ff88;
    --primary-hover: #00cc6a;
    --secondary: #bf5fff;
    --secondary-hover: #994cff;
    --text-main: #ffffff;
    --text-muted: #8892b0;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
}

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

body {
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(191, 95, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(0, 255, 136, 0.05) 0%, transparent 50%);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

h1, h2, h3, h4, .brand {
    font-family: 'Rajdhani', sans-serif;
    letter-spacing: 1px;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.brand {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand span {
    color: var(--primary);
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

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

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s;
}

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

.nav-actions {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 10px 24px;
    border-radius: 8px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--glass-border);
}

.btn-outline:hover {
    background: var(--glass-bg);
    border-color: rgba(255,255,255,0.2);
}

.btn-primary {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
}

.btn-primary:hover {
    background: var(--primary-hover);
    box-shadow: 0 0 25px rgba(0, 255, 136, 0.5);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--secondary);
    color: #fff;
    box-shadow: 0 0 15px rgba(191, 95, 255, 0.3);
}

.btn-secondary:hover {
    background: var(--secondary-hover);
    box-shadow: 0 0 25px rgba(191, 95, 255, 0.5);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 20px;
    min-height: 70vh;
}

.hero-badge {
    background: rgba(0, 255, 136, 0.1);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 255, 136, 0.2);
}

.hero h1 {
    font-size: 64px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff 0%, #a5a5a5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.hero-buttons .btn {
    padding: 14px 32px;
    font-size: 18px;
}

/* Section Shared */
.section {
    padding: 60px 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 15px;
}

.section-title {
    font-size: 32px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title span {
    color: var(--primary);
}

/* Tournaments Grid */
.tournaments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.tournament-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 24px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s, border-color 0.3s;
    position: relative;
    overflow: hidden;
}

.tournament-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}

.tournament-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
}

.tournament-card.ps::before {
    background: var(--secondary);
    box-shadow: 0 0 10px var(--secondary);
}

.t-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.t-status {
    background: rgba(0, 255, 136, 0.1);
    color: var(--primary);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.tournament-card.ps .t-status {
    background: rgba(191, 95, 255, 0.1);
    color: var(--secondary);
}

.t-club {
    color: var(--text-muted);
    font-size: 14px;
}

.t-title {
    font-size: 22px;
    margin-bottom: 15px;
}

.t-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #ccc;
}

.t-info div {
    display: flex;
    align-items: center;
    gap: 8px;
}

.t-prize {
    font-size: 24px;
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
}

/* Leaderboard */
.leaderboard-container {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.lb-table {
    width: 100%;
    border-collapse: collapse;
}

.lb-table th {
    background: rgba(255,255,255,0.02);
    padding: 16px 24px;
    text-align: left;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 14px;
    border-bottom: 1px solid var(--glass-border);
}

.lb-table td {
    padding: 16px 24px;
    border-bottom: 1px solid var(--glass-border);
    color: #fff;
}

.lb-table tr:last-child td {
    border-bottom: none;
}

.lb-table tr:hover td {
    background: rgba(255,255,255,0.03);
}

.rank-badge {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    font-weight: 700;
    font-family: 'Rajdhani', sans-serif;
}

.rank-1 .rank-badge { background: linear-gradient(135deg, #ffd700, #daa520); color: #000; box-shadow: 0 0 10px rgba(255,215,0,0.5); }
.rank-2 .rank-badge { background: linear-gradient(135deg, #e0e0e0, #a0a0a0); color: #000; }
.rank-3 .rank-badge { background: linear-gradient(135deg, #cd7f32, #8b4513); color: #fff; }

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

.player-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #fff;
    font-size: 18px;
}

.player-xp {
    font-family: 'Rajdhani', sans-serif;
    color: var(--primary);
    font-weight: 700;
    font-size: 18px;
}

/* Footer */
footer {
    border-top: 1px solid var(--glass-border);
    padding: 40px 50px;
    text-align: center;
    color: var(--text-muted);
    margin-top: 60px;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 40px; }
    .nav-links { display: none; }
    .section { padding: 40px 20px; }
    .hero-buttons { flex-direction: column; }
    .navbar { padding: 20px; }
}


/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.modal-content {
    background: var(--bg-dark);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    width: 100%;
    max-width: 400px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    position: relative;
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}
.modal-header h2 { font-size: 24px; color: #fff; }
.close-btn {
    background: transparent; border: none; color: var(--text-muted); font-size: 20px; cursor: pointer;
}
.close-btn:hover { color: #fff; }
.auth-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--glass-border);
}
.tab-btn {
    background: transparent; border: none; color: var(--text-muted); padding: 10px 0; flex: 1; font-weight: 600; font-size: 16px; cursor: pointer; border-bottom: 2px solid transparent;
}
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; color: var(--text-muted); font-size: 14px; }
.form-group input {
    width: 100%; padding: 12px; background: rgba(255,255,255,0.05); border: 1px solid var(--glass-border); border-radius: 8px; color: #fff; outline: none; transition: border-color 0.3s;
}
.form-group input:focus { border-color: var(--primary); }
.divider { display: flex; align-items: center; text-align: center; margin: 20px 0; color: var(--text-muted); font-size: 14px; }
.divider::before, .divider::after { content: ""; flex: 1; border-bottom: 1px solid var(--glass-border); }
.divider span { padding: 0 10px; }


/* Language Switcher — AZ/RU/EN düymələri (panel ilə eyni üslub) */
.lang-switcher {
    display: flex;
    background: rgba(255,255,255,0.04);
    border-radius: 12px;
    padding: 3px;
    border: 1px solid rgba(255,255,255,0.08);
    margin-right: 20px;
}
.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 9px;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 1px;
}
.lang-btn:hover { color: #fff; background: rgba(255,255,255,0.08); }
.lang-btn.active {
    color: #000;
    background: var(--primary);
    box-shadow: 0 0 12px rgba(0, 255, 136, 0.4);
}

