/* National Championship Custom Styles */
:root {
    --gold: #d4af37;
    --gold-dark: #aa8d2e;
    --prestige-bg: #0a1628;
    --card-bg: rgba(255, 255, 255, 0.03);
}

.champ-hero {
    padding: 180px 0 100px;
    background: linear-gradient(to bottom, rgba(10, 22, 40, 0.8), var(--prestige-bg)),
        url('resurs/img/MUSOBAQALAR/Milliy Chempionat/2026-01-08 01.39.29.jpg') center/cover no-repeat;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.champ-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to top, var(--prestige-bg), transparent);
}

.champ-badge {
    display: inline-block;
    padding: 8px 16px;
    background: var(--gold);
    color: var(--prestige-bg);
    font-weight: 700;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.champ-title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 900;
    color: white;
    margin-bottom: 20px;
}

.champ-desc {
    max-width: 800px;
    margin: 0 auto;
    color: var(--gray);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Gallery Styles */
.gallery-section {
    padding: 100px 0;
    background: var(--bg-body);
}

[data-theme="dark"] .gallery-section {
    background: var(--prestige-bg);
}

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

.gallery-item {
    position: relative;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.4s ease;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover {
    transform: translateY(-10px);
}

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

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    display: flex;
    align-items: flex-end;
    padding: 30px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

/* Results Table */
.results-section {
    padding: 100px 0;
    background: var(--bg-section-alt);
}

.results-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
}

.tab-btn {
    padding: 12px 24px;
    background: var(--card-bg);
    border: 1px solid var(--gold);
    color: white;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background: var(--gold);
    color: var(--prestige-bg);
}

.results-table-wrapper {
    background: var(--bg-card);
    border-radius: 15px;
    padding: 30px;
    overflow-x: auto;
    box-shadow: var(--shadow-dynamic);
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.results-table th {
    text-align: left;
    padding: 20px;
    border-bottom: 2px solid var(--gold);
    color: var(--gold);
}

.results-table td {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-main);
}

.rank-gold {
    color: #ffd700;
    font-weight: 800;
}

.rank-silver {
    color: #c0c0c0;
    font-weight: 800;
}

.rank-bronze {
    color: #cd7f32;
    font-weight: 800;
}

@media (max-width: 768px) {
    .champ-hero {
        padding: 140px 0 60px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }
}