/**
 * 🏆 SHOW PODIUM FUTURISTA - CSS
 * Design competitivo de alto impacto
 * Estilo: Cyberpunk + Esportivo + Futurista
 */

/* ═══════════════════════════════════════════════════════════════════════════════ */
/* MODAL BACKDROP */
/* ═══════════════════════════════════════════════════════════════════════════════ */
.podium-futurista-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.5s ease;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
}

.podium-futurista-modal.podium-futurista-show {
    opacity: 1;
}

/* ═══════════════════════════════════════════════════════════════════════════════ */
/* CONTAINER PRINCIPAL */
/* ═══════════════════════════════════════════════════════════════════════════════ */
.podium-futurista-container {
    width: 100%;
    max-width: 1200px;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 50%, #0d1117 100%);
    border: 2px solid #2de19c;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 
        0 0 50px rgba(45, 225, 156, 0.3),
        0 0 100px rgba(255, 152, 0, 0.1),
        inset 0 0 30px rgba(45, 225, 156, 0.05);
    animation: podium-futurista-container-enter 0.8s ease;
}

@keyframes podium-futurista-container-enter {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(30px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* ═══════════════════════════════════════════════════════════════════════════════ */
/* HEADER */
/* ═══════════════════════════════════════════════════════════════════════════════ */
.podium-futurista-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    position: relative;
}

.podium-futurista-title-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    justify-content: center;
}

.podium-futurista-title-glow {
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #2de19c, transparent);
    box-shadow: 0 0 20px #2de19c;
}

.podium-futurista-title {
    font-size: 48px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
    background: linear-gradient(135deg, #2de19c, #ff9800, #2de19c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(45, 225, 156, 0.5);
    margin: 0;
    animation: podium-futurista-title-glow 2s ease-in-out infinite;
}

@keyframes podium-futurista-title-glow {
    0%, 100% {
        filter: drop-shadow(0 0 10px rgba(45, 225, 156, 0.5));
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(45, 225, 156, 0.8));
    }
}

.podium-futurista-close {
    background: rgba(255, 152, 0, 0.2);
    border: 2px solid #ff9800;
    color: #ff9800;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.podium-futurista-close:hover {
    background: rgba(255, 152, 0, 0.4);
    box-shadow: 0 0 20px rgba(255, 152, 0, 0.6);
    transform: scale(1.1);
}

/* ═══════════════════════════════════════════════════════════════════════════════ */
/* SEÇÃO VISUAL - PÓDIO TOP 3 */
/* ═══════════════════════════════════════════════════════════════════════════════ */
.podium-futurista-visual-section {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 30px;
    margin-bottom: 50px;
    align-items: flex-end;
}

.podium-futurista-card {
    position: relative;
    background: linear-gradient(135deg, rgba(45, 225, 156, 0.05), rgba(255, 152, 0, 0.05));
    border: 2px solid;
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.4s ease;
    animation: podium-futurista-card-enter 0.8s ease;
}

@keyframes podium-futurista-card-enter {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 0;
        transform: translateY(0);
    }
}

.podium-futurista-modal.podium-futurista-show .podium-futurista-card {
    animation: podium-futurista-card-show 0.8s ease forwards;
}

@keyframes podium-futurista-card-show {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.podium-futurista-card:nth-child(1) {
    animation-delay: 0.2s;
}

.podium-futurista-card:nth-child(2) {
    animation-delay: 0.4s;
}

.podium-futurista-card:nth-child(3) {
    animation-delay: 0.6s;
}

/* 2º LUGAR (ESQUERDA) */
.podium-futurista-left {
    border-color: #C0C0C0;
    box-shadow: 0 0 30px rgba(192, 192, 192, 0.2);
    transform: translateY(40px);
}

.podium-futurista-left:hover {
    box-shadow: 0 0 50px rgba(192, 192, 192, 0.4);
    border-color: #e8e8e8;
}

/* 1º LUGAR (CENTRO) */
.podium-futurista-center {
    border-color: #FFD700;
    box-shadow: 0 0 50px rgba(255, 215, 0, 0.3);
    transform: scale(1.05);
}

.podium-futurista-center:hover {
    box-shadow: 0 0 80px rgba(255, 215, 0, 0.5);
    border-color: #ffed4e;
    transform: scale(1.08);
}

/* 3º LUGAR (DIREITA) */
.podium-futurista-right {
    border-color: #CD7F32;
    box-shadow: 0 0 30px rgba(205, 127, 50, 0.2);
    transform: translateY(80px);
}

.podium-futurista-right:hover {
    box-shadow: 0 0 50px rgba(205, 127, 50, 0.4);
    border-color: #e8a76f;
}

/* MEDALHA */
.podium-futurista-medal {
    font-size: 60px;
    margin-bottom: 15px;
    animation: podium-futurista-medal-bounce 1s ease infinite;
}

@keyframes podium-futurista-medal-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* POSIÇÃO */
.podium-futurista-position {
    font-size: 14px;
    color: #2de19c;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

/* FOTO */
.podium-futurista-photo-wrapper {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
}

.podium-futurista-photo-glow {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: radial-gradient(circle, var(--medal-color), transparent);
    border-radius: 50%;
    opacity: 0.3;
    animation: podium-futurista-glow-pulse 2s ease-in-out infinite;
}

@keyframes podium-futurista-glow-pulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

.podium-futurista-photo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--medal-color);
    position: relative;
    z-index: 2;
}

.podium-futurista-photo-border {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    border: 2px dashed var(--medal-color);
    animation: podium-futurista-border-spin 4s linear infinite;
}

@keyframes podium-futurista-border-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* INFO DO ATLETA */
.podium-futurista-athlete-info {
    margin-top: 20px;
}

.podium-futurista-name {
    font-size: 20px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    margin: 0 0 15px 0;
    text-shadow: 0 0 10px rgba(45, 225, 156, 0.3);
}

.podium-futurista-stats {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.podium-futurista-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(45, 225, 156, 0.1);
    padding: 8px 12px;
    border-radius: 8px;
    border-left: 3px solid #2de19c;
}

.podium-futurista-stat-label {
    font-size: 11px;
    color: #2de19c;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.podium-futurista-stat-value {
    font-size: 16px;
    font-weight: 900;
    color: #fff;
}

/* PEDESTAL */
.podium-futurista-pedestal {
    height: 8px;
    background: linear-gradient(90deg, transparent, var(--medal-color), transparent);
    border-radius: 4px;
    margin-top: 15px;
    box-shadow: 0 0 15px var(--medal-color);
}

/* ═══════════════════════════════════════════════════════════════════════════════ */
/* SEÇÃO TABELA - TOP 5 */
/* ═══════════════════════════════════════════════════════════════════════════════ */
.podium-futurista-table-section {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 2px solid rgba(45, 225, 156, 0.2);
}

.podium-futurista-table-title {
    font-size: 24px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #2de19c;
    margin: 0 0 20px 0;
    text-shadow: 0 0 10px rgba(45, 225, 156, 0.3);
}

.podium-futurista-table {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 2px solid rgba(45, 225, 156, 0.3);
    border-radius: 10px;
    overflow: hidden;
    background: rgba(45, 225, 156, 0.02);
}

.podium-futurista-table-header {
    display: grid;
    grid-template-columns: 80px 1fr 150px 120px 120px;
    gap: 15px;
    padding: 15px 20px;
    background: linear-gradient(90deg, rgba(45, 225, 156, 0.15), rgba(255, 152, 0, 0.05));
    border-bottom: 2px solid rgba(45, 225, 156, 0.3);
    font-weight: 900;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
    color: #2de19c;
}

.podium-futurista-table-row {
    display: grid;
    grid-template-columns: 80px 1fr 150px 120px 120px;
    gap: 15px;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(45, 225, 156, 0.1);
    align-items: center;
    transition: all 0.3s ease;
}

.podium-futurista-table-row:hover {
    background: rgba(45, 225, 156, 0.08);
    border-left: 3px solid #ff9800;
    padding-left: 17px;
}

.podium-futurista-table-row-top {
    background: rgba(45, 225, 156, 0.05);
    font-weight: 600;
}

.podium-futurista-col-pos {
    text-align: center;
}

.podium-futurista-col-name {
    text-align: left;
}

.podium-futurista-col-cal,
.podium-futurista-col-fc,
.podium-futurista-col-trimp {
    text-align: center;
}

.podium-futurista-rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #2de19c, #ff9800);
    color: #000;
    border-radius: 50%;
    font-weight: 900;
    font-size: 14px;
}

.podium-futurista-table-name {
    color: #fff;
    font-weight: 600;
}

.podium-futurista-table-value {
    color: #2de19c;
    font-weight: 900;
    font-size: 14px;
}

/* ═══════════════════════════════════════════════════════════════════════════════ */
/* SEÇÃO AÇÕES */
/* ═══════════════════════════════════════════════════════════════════════════════ */
.podium-futurista-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid rgba(45, 225, 156, 0.2);
}

.podium-futurista-btn {
    padding: 15px 35px;
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    max-width: 300px;
}

.podium-futurista-btn-challenge {
    background: linear-gradient(135deg, #2de19c, #00d4aa);
    color: #000;
    box-shadow: 0 0 30px rgba(45, 225, 156, 0.3);
}

.podium-futurista-btn-challenge:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 50px rgba(45, 225, 156, 0.6);
}

.podium-futurista-btn-close {
    background: rgba(255, 152, 0, 0.2);
    color: #ff9800;
    border: 2px solid #ff9800;
}

.podium-futurista-btn-close:hover {
    background: rgba(255, 152, 0, 0.4);
    box-shadow: 0 0 30px rgba(255, 152, 0, 0.4);
    transform: translateY(-3px);
}

/* ═══════════════════════════════════════════════════════════════════════════════ */
/* RESPONSIVO */
/* ═══════════════════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .podium-futurista-container {
        padding: 30px;
    }

    .podium-futurista-title {
        font-size: 36px;
    }

    .podium-futurista-visual-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .podium-futurista-card {
        transform: translateY(0) !important;
    }

    .podium-futurista-center {
        transform: scale(1) !important;
    }

    .podium-futurista-table-header,
    .podium-futurista-table-row {
        grid-template-columns: 60px 1fr 100px 100px 100px;
        gap: 10px;
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .podium-futurista-modal {
        padding: 10px;
    }

    .podium-futurista-container {
        padding: 20px;
        border-radius: 15px;
    }

    .podium-futurista-title {
        font-size: 28px;
        letter-spacing: 2px;
    }

    .podium-futurista-title-glow {
        width: 20px;
    }

    .podium-futurista-close {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .podium-futurista-photo-wrapper {
        width: 120px;
        height: 120px;
    }

    .podium-futurista-name {
        font-size: 16px;
    }

    .podium-futurista-stat {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }

    .podium-futurista-table-header,
    .podium-futurista-table-row {
        grid-template-columns: 50px 1fr 80px 80px 80px;
        gap: 8px;
        padding: 10px 12px;
        font-size: 11px;
    }

    .podium-futurista-rank-badge {
        width: 35px;
        height: 35px;
        font-size: 12px;
    }

    .podium-futurista-actions {
        flex-direction: column;
        gap: 10px;
    }

    .podium-futurista-btn {
        max-width: 100%;
        padding: 12px 20px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .podium-futurista-container {
        padding: 15px;
    }

    .podium-futurista-header {
        margin-bottom: 20px;
    }

    .podium-futurista-title-wrapper {
        gap: 10px;
    }

    .podium-futurista-title {
        font-size: 20px;
        letter-spacing: 1px;
    }

    .podium-futurista-photo-wrapper {
        width: 100px;
        height: 100px;
    }

    .podium-futurista-name {
        font-size: 14px;
    }

    .podium-futurista-stat-label {
        font-size: 10px;
    }

    .podium-futurista-stat-value {
        font-size: 14px;
    }

    .podium-futurista-table-header,
    .podium-futurista-table-row {
        grid-template-columns: 40px 1fr 60px 60px 60px;
        gap: 5px;
        padding: 8px 10px;
        font-size: 10px;
    }

    .podium-futurista-rank-badge {
        width: 30px;
        height: 30px;
        font-size: 10px;
    }
}
