:root {
    --bg-dark: #050505;
    --bg-secondary: #0f0f0f;
    --bg-tertiary: #1a1a1a;
    --gold: #f5c400;
    --gold-hover: #f5d633;
    --text-white: #ffffff;
    --text-gray: #cccccc;
    --text-dark-gray: #888888;
    --border-color: #222222;
    --border-light: #333333;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
}

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

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'Bebas Neue', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ============================================
   NAVBAR
   ============================================ */

.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-dark);
    border-bottom: 1px solid var(--border-color);
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.navbar-logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 2px;
    line-height: 1.2;
    color: var(--gold);
    flex-shrink: 0;
}

.logo-sub {
    font-size: 10px;
    color: var(--text-gray);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
    flex: 1;
}

.nav-item a {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s ease;
    text-transform: uppercase;
}

.nav-item a:hover,
.nav-item a.active {
    color: var(--gold);
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-instagram {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    transition: color 0.3s ease;
    text-decoration: none;
}

.nav-instagram:hover {
    color: var(--gold);
}

.btn-primary {
    background: var(--gold);
    color: var(--bg-dark);
    padding: 12px 24px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--gold-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    color: var(--text-white);
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    color: var(--gold);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text-white);
    transition: all 0.3s ease;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    position: relative;
    min-height: 600px;
    padding: 40px 40px;
    overflow: hidden;
    background-image: url('assets/hero-arena.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(5, 5, 5, 0.85) 0%, rgba(5, 5, 5, 0.4) 50%, rgba(5, 5, 5, 0.7) 100%);
    z-index: 1;
}

.hero-wrapper {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 40px;
    z-index: 2;
}

.hero-container {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    width: 100%;
}

.hero-left {
    z-index: 3;
}

.hero-subtitle {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--gold);
    margin-bottom: 16px;
    text-transform: uppercase;
}

.hero-title {
    font-size: 72px;
    font-weight: 900;
    letter-spacing: 3px;
    line-height: 1;
    margin-bottom: 32px;
    color: var(--text-white);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
    background: rgba(15, 15, 15, 0.8);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-light);
}

.stat-box {
    text-align: center;
}

.stat-number {
    font-size: 28px;
    font-weight: 900;
    color: var(--gold);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 11px;
    color: var(--text-gray);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-outline-with-icon {
    background: transparent;
    color: var(--text-white);
    padding: 12px 24px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    border: 1px solid var(--gold);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    text-transform: uppercase;
}

.btn-outline-with-icon:hover {
    background: var(--gold);
    color: var(--bg-dark);
}

.hero-right {
    z-index: 3;
}

.leader-card {
    background: rgba(15, 15, 15, 0.9);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 24px;
    backdrop-filter: blur(10px);
}

.leader-header {
    margin-bottom: 20px;
}

.leader-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-gray);
    text-transform: uppercase;
}

.leader-silhouette {
    width: 100%;
    height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(245, 196, 0, 0.05), rgba(245, 196, 0, 0.02));
    border-radius: 6px;
    padding: 20px;
}

.leader-silhouette svg {
    width: 120px;
    height: 120px;
    opacity: 0.5;
}

/* ============================================
   RANKINGS SECTION
   ============================================ */

.rankings-section {
    max-width: 1400px;
    margin: 80px auto;
    padding: 0 40px;
}

.rankings-container {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 32px;
}

.rankings-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.section-title {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 2px;
}

.view-all-btn {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--gold);
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s ease;
    text-transform: uppercase;
}

.view-all-btn:hover {
    color: var(--gold-hover);
}

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

.rankings-table thead {
    border-bottom: 2px solid var(--border-color);
}

.rankings-table th {
    padding: 16px 12px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-gray);
    text-transform: uppercase;
}

.rankings-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
}

.rankings-table tbody tr:hover {
    background: var(--bg-tertiary);
}

.rankings-table tbody tr.highlight-row {
    background: rgba(245, 196, 0, 0.05);
}

.rankings-table td {
    padding: 16px 12px;
    font-size: 13px;
}

.col-rank {
    width: 60px;
    text-align: center;
    font-weight: 700;
}

.col-player {
    width: 200px;
}

.col-country {
    width: 150px;
}

.col-points {
    width: 100px;
    text-align: right;
    font-weight: 700;
}

.col-tournaments {
    width: 120px;
    text-align: center;
}

.col-pannas {
    width: 100px;
    text-align: center;
}

.col-wins {
    width: 80px;
    text-align: center;
}

.player-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

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

.points-gold {
    color: var(--gold);
    font-weight: 700;
}

.flag-emoji {
    font-size: 16px;
}

/* ============================================
   REGISTRATION SECTION
   ============================================ */

.registration-section {
    max-width: 1400px;
    margin: 80px auto;
    padding: 0 40px;
}

.registration-container {
    max-width: 600px;
    margin: 0 auto;
}

.registration-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 40px;
    position: relative;
}

.registration-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.registration-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-gray);
    text-transform: uppercase;
}

.form-group input,
.form-group select {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-light);
    border-radius: 4px;
    padding: 12px 16px;
    font-size: 14px;
    color: var(--text-white);
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.form-group input::placeholder {
    color: var(--text-dark-gray);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(245, 196, 0, 0.1);
}

.form-group select {
    cursor: pointer;
}

.form-group select option {
    background: var(--bg-dark);
    color: var(--text-white);
    padding: 8px;
}

.success-message {
    animation: slideDown 0.3s ease;
}

.error-message {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   PLAYER MODAL
   ============================================ */

.player-modal {
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

.player-modal-content {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideDown 0.3s ease;
}

.player-modal-close {
    position: absolute;
    right: 16px;
    top: 16px;
    font-size: 28px;
    font-weight: bold;
    color: var(--text-gray);
    cursor: pointer;
    transition: color 0.3s;
}

.player-modal-close:hover {
    color: var(--gold);
}

.btn-outline {
    background: transparent;
    color: var(--text-white);
    padding: 12px 24px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    border: 1px solid var(--text-white);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: var(--text-white);
    color: var(--bg-dark);
}

/* ============================================
   PHOTOS SECTION
   ============================================ */

.photos-section {
    max-width: 1400px;
    margin: 80px auto;
    padding: 0 40px;
}

.photos-container {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 40px;
}

.section-subtitle {
    font-size: 14px;
    color: var(--text-gray);
    text-align: center;
    margin-bottom: 40px;
}

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

.gallery-item {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    border-color: var(--gold);
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(245, 196, 0, 0.1);
}

.gallery-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, rgba(245, 196, 0, 0.1), rgba(245, 196, 0, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    border-bottom: 1px solid var(--border-light);
}

.gallery-item p {
    text-align: center;
    padding: 12px;
    font-size: 12px;
    color: var(--text-gray);
}

/* ============================================
   RULES SECTION
   ============================================ */

.rules-section {
    max-width: 1400px;
    margin: 80px auto;
    padding: 0 40px;
}

.rules-container {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 40px;
}

.rules-content {
    color: var(--text-gray);
}

.rules-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-white);
    margin-top: 24px;
    margin-bottom: 12px;
}

.rules-content h3:first-child {
    margin-top: 0;
}

.rules-content p {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 12px;
}

.rules-content ol {
    list-style: none;
    counter-reset: item;
    padding: 0;
    margin: 16px 0;
}

.rules-content ol li {
    counter-increment: item;
    margin-bottom: 12px;
    padding-left: 24px;
    font-size: 14px;
    line-height: 1.6;
    position: relative;
}

.rules-content ol li::before {
    content: counter(item) ". ";
    font-weight: 700;
    color: var(--gold);
    position: absolute;
    left: 0;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 32px 0;
    margin-top: 80px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    text-align: center;
}

.footer-content p {
    font-size: 12px;
    color: var(--text-dark-gray);
    letter-spacing: 1px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1200px) {
    .navbar-container {
        padding: 0 24px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .hero-title {
        font-size: 48px;
    }

    .rankings-table th,
    .rankings-table td {
        padding: 12px 8px;
        font-size: 12px;
    }

    .col-rank { width: 50px; }
    .col-player { width: 150px; }
    .col-country { width: 120px; }
    .col-points { width: 80px; }
    .col-tournaments { display: none; }
    .col-pannas { display: none; }
    .col-wins { width: 60px; }
}

@media (max-width: 768px) {
    .navbar-container {
        padding: 0 16px;
        flex-wrap: wrap;
    }

    .nav-menu {
        display: none;
        gap: 16px;
        flex-direction: column;
        width: 100%;
    }

    .hamburger {
        display: flex;
    }

    .hero {
        padding: 20px 16px;
        min-height: 500px;
    }

    .hero-wrapper {
        gap: 20px;
        padding: 20px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .hero-subtitle {
        font-size: 10px;
    }

    .hero-actions {
        flex-direction: column;
        gap: 12px;
    }

    .hero-actions button,
    .hero-actions a {
        width: 100%;
        text-align: center;
    }

    .btn-primary {
        padding: 10px 16px;
        font-size: 10px;
    }

    .rankings-section {
        padding: 0 16px;
    }

    .rankings-container {
        padding: 20px;
    }

    .rankings-table th,
    .rankings-table td {
        padding: 8px 4px;
        font-size: 11px;
    }

    .col-country { display: none; }
    .col-tournaments { display: none; }
    .col-pannas { display: none; }

    .registration-section {
        padding: 0 16px;
    }

    .registration-card {
        padding: 24px;
    }

    .section-title {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .navbar-container {
        padding: 12px;
    }

    .navbar-logo {
        font-size: 12px;
    }

    .hero {
        padding: 16px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 9px;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 20px;
    }

    .col-rank { display: none; }
    .col-player { width: 100px; }

    .player-avatar {
        width: 32px;
        height: 32px;
    }
}
