/* ============= RESULTS PAGE ============= */

/* Results Header */
.results-header {
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--secondary-green) 100%);
    padding: 7rem 0 3rem;
    position: relative;
    overflow: hidden;
}

.results-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 50px, rgba(254, 235, 184, 0.05) 50px, rgba(254, 235, 184, 0.05) 51px),
        repeating-linear-gradient(90deg, transparent, transparent 50px, rgba(254, 235, 184, 0.05) 50px, rgba(254, 235, 184, 0.05) 51px);
    opacity: 0.3;
}

.results-header-decoration-circle-1,
.results-header-decoration-circle-2 {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
}

.results-header-decoration-circle-1 {
    width: 300px;
    height: 300px;
    background: var(--primary-amber);
    top: -100px;
    right: -100px;
}

.results-header-decoration-circle-2 {
    width: 250px;
    height: 250px;
    background: var(--secondary-turquoise);
    bottom: -50px;
    left: -50px;
}

.results-header-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.results-header-title {
    font-weight: 800;
    color: white;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.results-header-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

/* Cenefa for Results */
.cenefa-results {
    background: linear-gradient(to bottom,
            var(--primary-teal) 0%,
            var(--secondary-turquoise) 50%,
            #f8f9fa 100%);
    padding: 2rem 0;
}

.cenefa-results .cenefa-image {
    max-height: 80px;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.1));
}

/* Category Tabs */
.category-tabs {
    background: white;
    border-radius: 20px;
    padding: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 3rem;
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.category-tabs::-webkit-scrollbar {
    height: 4px;
}

.category-tabs::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.category-tabs::-webkit-scrollbar-thumb {
    background: var(--primary-amber);
    border-radius: 10px;
}

.category-tab {
    flex: 0 0 auto;
    min-width: 140px;
    padding: 1rem 1.25rem;
    border-radius: 15px;
    background: #f8f9fa;
    border: 2px solid transparent;
    font-weight: 800;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.95rem;
    font-family: var(--font-primary);
    white-space: nowrap;
}

.category-tab:hover {
    background: var(--secondary-cream);
    border-color: var(--primary-amber);
    transform: translateY(-3px);
}

.category-tab.active {
    border-color: var(--primary-teal);
    color: white;
}

.category-tab.active.tab-gk {
    background: linear-gradient(135deg, var(--primary-amber) 0%, var(--primary-orange) 100%);
}

.category-tab.active.tab-df {
    background: linear-gradient(135deg, var(--secondary-emerald) 0%, var(--secondary-turquoise) 100%);
}

.category-tab.active.tab-mf {
    background: linear-gradient(135deg, var(--secondary-turquoise) 0%, var(--primary-teal) 100%);
}

.category-tab.active.tab-fw {
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-red) 100%);
}

.category-tab i {
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

/* Category Content */
.category-content {
    display: none;
}

.category-content.active {
    display: block;
    animation: fadeIn 0.4s ease-out;
}

/* Category Section */
.category-section {
    margin-bottom: 4rem;
}

.category-header {
    background: white;
    padding: 1.5rem 2rem;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 0;
}

.category-title {
    font-weight: 800;
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.category-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.category-gk .category-icon {
    background: linear-gradient(135deg, var(--primary-amber) 0%, var(--primary-orange) 100%);
}

.category-df .category-icon {
    background: linear-gradient(135deg, var(--secondary-emerald) 0%, var(--secondary-turquoise) 100%);
}

.category-mf .category-icon {
    background: linear-gradient(135deg, var(--secondary-turquoise) 0%, var(--primary-teal) 100%);
}

.category-fw .category-icon {
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-red) 100%);
}

.category-gk .category-title {
    color: var(--primary-amber);
}

.category-df .category-title {
    color: var(--secondary-emerald);
}

.category-mf .category-title {
    color: var(--secondary-turquoise);
}

.category-fw .category-title {
    color: var(--primary-orange);
}

.category-subtitle {
    color: #6c757d;
    font-weight: 600;
    font-size: 0.95rem;
    margin-left: 76px;
}

/* Player Rankings Table */
.rankings-table {
    background: white;
    border-radius: 0 0 20px 20px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.ranking-item {
    display: flex;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 2px solid #f8f9fa;
    transition: all 0.3s ease;
    gap: 1.5rem;
    animation: fadeIn 0.4s ease-out;
}

.ranking-item:last-child {
    border-bottom: none;
}

.ranking-item:hover {
    background: linear-gradient(90deg, rgba(254, 235, 184, 0.3) 0%, rgba(254, 235, 184, 0.1) 100%);
    transform: translateX(8px);
}

.rank-number {
    font-size: 2rem;
    font-weight: 800;
    min-width: 60px;
    text-align: center;
    position: relative;
}

.rank-number.top-1 {
    color: var(--primary-amber);
    text-shadow: 0 2px 8px rgba(243, 151, 24, 0.3);
}

.rank-number.top-2 {
    color: var(--secondary-turquoise);
}

.rank-number.top-3 {
    color: var(--primary-orange);
}

.rank-number:not(.top-1):not(.top-2):not(.top-3) {
    color: var(--primary-teal);
    opacity: 0.7;
}

/* Medal Icons */
.rank-number.top-1::before {
    content: '🥇';
    position: absolute;
    top: -10px;
    right: -5px;
    font-size: 1.2rem;
}

.rank-number.top-2::before {
    content: '🥈';
    position: absolute;
    top: -10px;
    right: -5px;
    font-size: 1.2rem;
}

.rank-number.top-3::before {
    content: '🥉';
    position: absolute;
    top: -10px;
    right: -5px;
    font-size: 1.2rem;
}

.player-image-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #f8f9fa;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.ranking-item:hover .player-image-wrapper {
    border-color: var(--primary-amber);
    transform: scale(1.05);
}

.player-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--secondary-turquoise) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.player-info {
    flex: 1;
    min-width: 0;
}

.player-name {
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--primary-teal);
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-position {
    color: #6c757d;
    font-weight: 600;
    font-size: 0.9rem;
}

.player-votes {
    text-align: right;
    min-width: 120px;
}

.votes-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-orange);
    margin-bottom: 0.25rem;
    line-height: 1;
}

.votes-label {
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .results-header {
        padding: 6rem 0 2rem;
    }

    .cenefa-results .cenefa-image {
        max-height: 50px;
    }

    .category-title {
        font-size: 1.5rem;
    }

    .category-header {
        padding: 1.25rem 1.5rem;
    }

    .category-subtitle {
        margin-left: 0;
        margin-top: 0.5rem;
    }

    .ranking-item {
        padding: 1.25rem 1.5rem;
        gap: 1rem;
    }

    .rank-number {
        font-size: 1.5rem;
        min-width: 40px;
    }

    .player-image-wrapper {
        width: 60px;
        height: 60px;
    }

    .player-name {
        font-size: 1.1rem;
    }

    .votes-number {
        font-size: 1.5rem;
    }

    .player-votes {
        min-width: 80px;
    }
}

@media (max-width: 576px) {
    .category-title {
        font-size: 1.25rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .category-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .ranking-item {
        padding: 1rem;
        gap: 0.75rem;
    }

    .rank-number {
        font-size: 1.25rem;
        min-width: 35px;
    }

    .rank-number::before {
        font-size: 1rem;
        top: -8px;
    }

    .player-image-wrapper {
        width: 50px;
        height: 50px;
        border-width: 3px;
    }

    .player-name {
        font-size: 1rem;
    }

    .player-position {
        font-size: 0.8rem;
    }

    .votes-number {
        font-size: 1.25rem;
    }

    .votes-label {
        font-size: 0.7rem;
    }

    .player-votes {
        min-width: 70px;
    }

    .results-header-title {
        font-size: 2rem;
    }

    .category-tabs {
        padding: 0.75rem;
        gap: 0.5rem;
    }

    .category-tab {
        min-width: 100px;
        padding: 0.75rem 0.5rem;
        font-size: 0.75rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.25rem;
    }

    .category-tab i {
        margin-right: 0;
        font-size: 1rem;
    }
}