/**
 * Estilos para el shortcode Ranking Podium - Nivel Presidencial
 * 
 * @package DocuJuegos
 * @subpackage Public
 * @since 5.0.0
 */

/* Importación de fuentes de nivel presidencial */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;900&family=Montserrat:wght@300;400;600;800&family=Bebas+Neue&display=swap');

/* Variables CSS para tema presidencial */
:root {
    --gold-primary: #FFD700;
    --gold-secondary: #FFA500;
    --gold-gradient: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FFD700 100%);
    --silver-primary: #C0C0C0;
    --silver-gradient: linear-gradient(135deg, #E5E5E5 0%, #C0C0C0 50%, #E5E5E5 100%);
    --bronze-primary: #CD7F32;
    --bronze-gradient: linear-gradient(135deg, #DEB887 0%, #CD7F32 50%, #DEB887 100%);
    --presidential-blue: #1E3A8A;
    --presidential-red: #B91C1C;
    --royal-purple: #6B46C1;
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-large: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-gold: 0 0 30px rgba(255, 215, 0, 0.6);
}

/* Contenedor principal presidencial */
.ranking-podium-container {
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
}

/* Fondo animado de nivel presidencial */
.ranking-podium-container::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(192, 192, 192, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(205, 127, 50, 0.1) 0%, transparent 50%);
    animation: presidentialBackground 20s ease-in-out infinite alternate;
    z-index: -1;
}

@keyframes presidentialBackground {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(1deg) scale(1.05); }
    100% { transform: rotate(-1deg) scale(1); }
}

/* Título presidencial */
.ranking-podium-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    text-align: center;
    color: var(--gold-primary);
    text-shadow: 
        0 0 20px rgba(255, 215, 0, 0.5),
        0 0 40px rgba(255, 215, 0, 0.3),
        2px 2px 4px rgba(0, 0, 0, 0.8);
    margin-bottom: 20px;
    letter-spacing: 2px;
    animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    0% { text-shadow: 0 0 20px rgba(255, 215, 0, 0.5), 0 0 40px rgba(255, 215, 0, 0.3), 2px 2px 4px rgba(0, 0, 0, 0.8); }
    100% { text-shadow: 0 0 30px rgba(255, 215, 0, 0.8), 0 0 60px rgba(255, 215, 0, 0.5), 2px 2px 4px rgba(0, 0, 0, 0.8); }
}

.ranking-podium-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    text-align: center;
    color: #ffffff;
    margin-bottom: 50px;
    opacity: 0.9;
    font-weight: 300;
}

/* Tarjeta de podio principal */
.podium-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 50px;
    box-shadow: var(--shadow-large);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.podium-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 215, 0, 0.1), transparent);
    animation: cardShine 8s linear infinite;
}

@keyframes cardShine {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.podium-card-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.podium-card-title {
    font-family: 'Bebas Neue', cursive;
    font-size: 2.5rem;
    color: var(--presidential-blue);
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.podium-card-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: #64748b;
    font-weight: 300;
}

/* Podio principal - Estructura de 3 niveles */
.podium-main {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    min-height: 400px;
    margin-bottom: 40px;
    position: relative;
    padding: 20px;
}

/* Forzar el orden correcto para disposición olímpica */
.podium-main > .podium-position:nth-child(1) {
    order: 2; /* Primer lugar en el centro */
}

.podium-main > .podium-position:nth-child(2) {
    order: 1; /* Segundo lugar a la izquierda */
}

.podium-main > .podium-position:nth-child(3) {
    order: 3; /* Tercer lugar a la derecha */
}

/* Asegurar que el primer lugar esté siempre en el centro */
.podium-main > .podium-position.podium-first {
    order: 2 !important;
}

.podium-main > .podium-position.podium-second {
    order: 1 !important;
}

.podium-main > .podium-position.podium-third {
    order: 3 !important;
}

.podium-position {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    transition: all 0.3s ease;
}

.podium-position:hover {
    transform: translateY(-10px);
}

/* Primer lugar - Centro y más alto */
.podium-first {
    order: 2;
    z-index: 3;
    animation: firstPlaceEntrance 1s ease-out;
}

.podium-first .podium-platform {
    width: 200px;
    height: 200px;
    background: var(--gold-gradient);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: var(--shadow-gold);
    margin-top: 20px;
}

.podium-first .podium-platform::before {
    content: '1';
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 2rem;
    font-weight: bold;
    color: var(--presidential-blue);
}

/* Segundo lugar - Izquierda y medio */
.podium-second {
    order: 1;
    z-index: 2;
    margin-right: 30px;
    animation: secondPlaceEntrance 1.2s ease-out;
}

.podium-second .podium-platform {
    width: 160px;
    height: 160px;
    background: var(--silver-gradient);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 0 20px rgba(192, 192, 192, 0.4);
    margin-top: 60px;
}

.podium-second .podium-platform::before {
    content: '2';
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--presidential-blue);
}

/* Tercer lugar - Derecha y bajo */
.podium-third {
    order: 3;
    z-index: 1;
    margin-left: 30px;
    animation: thirdPlaceEntrance 1.4s ease-out;
}

.podium-third .podium-platform {
    width: 140px;
    height: 140px;
    background: var(--bronze-gradient);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 0 20px rgba(205, 127, 50, 0.4);
    margin-top: 80px;
}

.podium-third .podium-platform::before {
    content: '3';
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--presidential-blue);
}

/* Animaciones de entrada */
@keyframes firstPlaceEntrance {
    0% { transform: translateY(-100px) scale(0.5); opacity: 0; }
    50% { transform: translateY(20px) scale(1.1); }
    100% { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes secondPlaceEntrance {
    0% { transform: translateX(-100px) scale(0.5); opacity: 0; }
    50% { transform: translateX(20px) scale(1.1); }
    100% { transform: translateX(0) scale(1); opacity: 1; }
}

@keyframes thirdPlaceEntrance {
    0% { transform: translateX(100px) scale(0.5); opacity: 0; }
    50% { transform: translateX(-20px) scale(1.1); }
    100% { transform: translateX(0) scale(1); opacity: 1; }
}

/* Medallas animadas */
.podium-medal {
    position: absolute;
    top: -30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    animation: medalFloat 3s ease-in-out infinite;
    z-index: 10;
}

.podium-first .podium-medal {
    background: var(--gold-gradient);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.8);
    animation-delay: 0s;
}

.podium-second .podium-medal {
    background: var(--silver-gradient);
    box-shadow: 0 0 20px rgba(192, 192, 192, 0.6);
    animation-delay: 0.5s;
}

.podium-third .podium-medal {
    background: var(--bronze-gradient);
    box-shadow: 0 0 20px rgba(205, 127, 50, 0.6);
    animation-delay: 1s;
}

@keyframes medalFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

/* Información del jugador */
.podium-player-info {
    text-align: center;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.podium-player-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: var(--shadow-medium);
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.podium-player-avatar:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-large);
}

.podium-first .podium-player-avatar {
    border-color: var(--gold-primary);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.podium-second .podium-player-avatar {
    border-color: var(--silver-primary);
    box-shadow: 0 0 20px rgba(192, 192, 192, 0.5);
}

.podium-third .podium-player-avatar {
    border-color: var(--bronze-primary);
    box-shadow: 0 0 20px rgba(205, 127, 50, 0.5);
}

.podium-player-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 5px;
}

.podium-player-score {
    font-family: 'Bebas Neue', cursive;
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--presidential-blue);
    margin-bottom: 5px;
}

.podium-player-stats {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    color: #64748b;
}

/* Cuarto y quinto lugar - Pequeños */
.podium-extended {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}

.podium-fourth, .podium-fifth {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
    animation: extendedPlaceEntrance 1.6s ease-out;
}

.podium-fourth:hover, .podium-fifth:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

@keyframes extendedPlaceEntrance {
    0% { transform: translateY(50px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

.podium-fourth .podium-player-avatar,
.podium-fifth .podium-player-avatar {
    width: 60px;
    height: 60px;
    border-width: 3px;
}

.podium-fourth .podium-player-name,
.podium-fifth .podium-player-name {
    font-size: 1rem;
}

.podium-fourth .podium-player-score,
.podium-fifth .podium-player-score {
    font-size: 1.4rem;
}

/* Podios por módulo */
.podium-modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.podium-module-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow-medium);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.podium-module-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-large);
}

.podium-module-header {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
}

.podium-module-icon {
    font-size: 2rem;
    margin-right: 15px;
}

.podium-module-title {
    font-family: 'Bebas Neue', cursive;
    font-size: 1.8rem;
    color: #1e293b;
    flex: 1;
}

.podium-module-podium {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 15px;
    min-height: 200px;
    margin-bottom: 20px;
}

/* Forzar el orden correcto para disposición olímpica en módulos */
.podium-module-podium > .podium-module-position:nth-child(1) {
    order: 2; /* Primer lugar en el centro */
}

.podium-module-podium > .podium-module-position:nth-child(2) {
    order: 1; /* Segundo lugar a la izquierda */
}

.podium-module-podium > .podium-module-position:nth-child(3) {
    order: 3; /* Tercer lugar a la derecha */
}

/* Asegurar que el primer lugar esté siempre en el centro en módulos */
.podium-module-podium > .podium-module-position.podium-module-first {
    order: 2 !important;
}

.podium-module-podium > .podium-module-position.podium-module-second {
    order: 1 !important;
}

.podium-module-podium > .podium-module-position.podium-module-third {
    order: 3 !important;
}

.podium-module-position {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

/* Primer lugar - centro (más grande) */
.podium-module-first {
    order: 2;
    z-index: 3;
    transform: translateY(-10px) scale(1.1);
}

/* Segundo lugar - izquierda (mediano) */
.podium-module-second {
    order: 1;
    z-index: 2;
    margin-right: 20px;
    transform: scale(1.0);
}

/* Tercer lugar - derecha (más pequeño) */
.podium-module-third {
    order: 3;
    z-index: 2;
    margin-left: 20px;
    transform: scale(0.9);
}

.podium-module-platform {
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.podium-module-position:hover .podium-module-platform {
    transform: scale(1.05);
}

.podium-module-first .podium-module-platform {
    width: 90px;
    height: 90px;
    background: var(--gold-gradient);
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.5);
    border: 2px solid #FFD700;
}

.podium-module-second .podium-module-platform {
    width: 65px;
    height: 65px;
    background: var(--silver-gradient);
    box-shadow: 0 3px 15px rgba(192, 192, 192, 0.4);
    border: 1px solid #C0C0C0;
}

.podium-module-third .podium-module-platform {
    width: 50px;
    height: 50px;
    background: var(--bronze-gradient);
    box-shadow: 0 3px 12px rgba(205, 127, 50, 0.4);
    border: 1px solid #CD7F32;
}

.podium-module-player-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 3px;
}

.podium-module-player-score {
    font-family: 'Bebas Neue', cursive;
    font-size: 1.2rem;
    color: var(--presidential-blue);
}

/* Podios por estados */
.podium-states-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

.podium-state-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 25px;
    box-shadow: var(--shadow-medium);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.podium-state-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-large);
}

.podium-state-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

.podium-state-title {
    font-family: 'Bebas Neue', cursive;
    font-size: 1.5rem;
    color: var(--presidential-blue);
    margin-bottom: 5px;
}

.podium-state-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    color: #64748b;
}

/* Podios de estados - Corrección de disposición olímpica */
.podium-state-podium {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 15px;
    min-height: 150px;
    margin-bottom: 15px;
}

/* Forzar el orden correcto para disposición olímpica en estados */
.podium-state-podium > .podium-state-player:nth-child(1) {
    order: 2; /* Primer lugar en el centro */
}

.podium-state-podium > .podium-state-player:nth-child(2) {
    order: 1; /* Segundo lugar a la izquierda */
}

.podium-state-podium > .podium-state-player:nth-child(3) {
    order: 3; /* Tercer lugar a la derecha */
}

/* Asegurar que el primer lugar esté siempre en el centro en estados */
.podium-state-podium > .podium-state-player.podium-state-first {
    order: 2 !important;
}

.podium-state-podium > .podium-state-player.podium-state-second {
    order: 1 !important;
}

.podium-state-podium > .podium-state-player.podium-state-third {
    order: 3 !important;
}

.podium-state-player {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 10px;
    position: relative;
}

/* Primer lugar - centro (más grande) */
.podium-state-first {
    order: 2;
    z-index: 3;
    transform: translateY(-5px) scale(1.15);
}

/* Segundo lugar - izquierda (mediano) */
.podium-state-second {
    order: 1;
    z-index: 2;
    margin-right: 20px;
    transform: scale(1.0);
}

/* Tercer lugar - derecha (más pequeño) */
.podium-state-third {
    order: 3;
    z-index: 2;
    margin-left: 20px;
    transform: scale(0.85);
}

.state-player-position {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--gold-gradient);
    color: white;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.8rem;
    margin-bottom: 8px;
    box-shadow: 0 3px 8px rgba(255, 215, 0, 0.4);
}

.podium-state-first .state-player-position {
    width: 35px;
    height: 35px;
    font-size: 0.95rem;
    background: var(--gold-gradient);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.5);
    border: 2px solid #FFD700;
}

.podium-state-second .state-player-position {
    width: 28px;
    height: 28px;
    background: var(--silver-gradient);
    box-shadow: 0 3px 12px rgba(192, 192, 192, 0.4);
    border: 1px solid #C0C0C0;
}

.podium-state-third .state-player-position {
    width: 22px;
    height: 22px;
    font-size: 0.7rem;
    background: var(--bronze-gradient);
    box-shadow: 0 3px 10px rgba(205, 127, 50, 0.4);
    border: 1px solid #CD7F32;
}

/* Estadísticas generales */
.podium-statistics {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-medium);
    text-align: center;
}

.podium-statistics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.podium-stat-item {
    text-align: center;
}

.podium-stat-value {
    font-family: 'Bebas Neue', cursive;
    font-size: 2.5rem;
    color: var(--presidential-blue);
    margin-bottom: 5px;
}

.podium-stat-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: #64748b;
    font-weight: 300;
}

/* Indicador de actualización */
.podium-refresh-indicator {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-medium);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
}

.podium-refresh-indicator:hover {
    transform: scale(1.1);
    background: white;
}

.podium-refresh-indicator.refreshing {
    animation: refreshSpin 1s linear infinite;
}

@keyframes refreshSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Confeti para celebraciones */
.podium-confetti {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

.podium-confetti-piece {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--gold-primary);
    animation: confettiFall 3s linear infinite;
}

@keyframes confettiFall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .ranking-podium-title {
        font-size: 2.5rem;
    }
    
    .podium-main {
        min-height: 350px;
    }
    
    .podium-first .podium-platform {
        width: 160px;
        height: 160px;
    }
    
    .podium-second .podium-platform {
        width: 130px;
        height: 130px;
    }
    
    .podium-third .podium-platform {
        width: 110px;
        height: 110px;
    }
    
    .podium-modules-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .ranking-podium-container {
        padding: 20px 15px;
    }
    
    .ranking-podium-title {
        font-size: 2rem;
    }
    
    .podium-card {
        padding: 20px;
    }
    
    .podium-main {
        flex-direction: column;
        align-items: center;
        min-height: auto;
        gap: 20px;
    }
    
    .podium-position {
        order: unset !important;
        margin: 0 !important;
    }
    
    .podium-platform {
        margin-top: 10px !important;
    }
    
    .podium-extended {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .podium-modules-grid,
    .podium-states-grid {
        grid-template-columns: 1fr;
    }
    
    .podium-statistics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .ranking-podium-title {
        font-size: 1.5rem;
    }
    
    .podium-card {
        padding: 15px;
    }
    
    .podium-card-title {
        font-size: 1.8rem;
    }
    
    .podium-player-avatar {
        width: 60px;
        height: 60px;
    }
    
    .podium-first .podium-player-avatar,
    .podium-second .podium-player-avatar,
    .podium-third .podium-player-avatar {
        width: 60px;
        height: 60px;
    }
    
    .podium-statistics-grid {
        grid-template-columns: 1fr;
    }
    
    .podium-refresh-indicator {
        width: 40px;
        height: 40px;
        top: 10px;
        right: 10px;
    }
}

/* Tooltips descriptivos */
.podium-tooltip {
    position: relative;
    display: inline-block;
}

.podium-tooltip .tooltiptext {
    visibility: hidden;
    width: 220px;
    background-color: rgba(0, 0, 0, 0.9);
    color: #fff;
    text-align: center;
    border-radius: 8px;
    padding: 10px 12px;
    position: absolute;
    z-index: 1000;
    bottom: 125%;
    left: 50%;
    margin-left: -110px;
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    line-height: 1.3;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.podium-tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -8px;
    border-width: 8px;
    border-style: solid;
    border-color: rgba(0, 0, 0, 0.9) transparent transparent transparent;
}

.podium-tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* Tooltips para medallas */
.podium-medal-tooltip .tooltiptext {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.9), rgba(255, 165, 0, 0.9));
    color: #000;
    font-weight: 600;
    width: 200px;
    margin-left: -100px;
}

.podium-medal-tooltip .tooltiptext::after {
    border-color: rgba(255, 215, 0, 0.9) transparent transparent transparent;
}

/* Tooltips para avatares */
.podium-avatar-tooltip .tooltiptext {
    width: 250px;
    margin-left: -125px;
    background: rgba(30, 41, 59, 0.95);
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.podium-avatar-tooltip .tooltiptext::after {
    border-color: rgba(30, 41, 59, 0.95) transparent transparent transparent;
}

/* Tooltips para puntuaciones */
.podium-score-tooltip .tooltiptext {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.95), rgba(107, 70, 193, 0.95));
    color: #fff;
    font-weight: 600;
    width: 200px;
    margin-left: -100px;
}

.podium-score-tooltip .tooltiptext::after {
    border-color: rgba(30, 58, 138, 0.95) transparent transparent transparent;
}

/* Tooltips para insignias */
.podium-badge-tooltip .tooltiptext {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.9), rgba(205, 127, 50, 0.9));
    color: #000;
    font-weight: 600;
    width: 180px;
    margin-left: -90px;
}

.podium-badge-tooltip .tooltiptext::after {
    border-color: rgba(255, 215, 0, 0.9) transparent transparent transparent;
}

/* Tooltips para estadísticas */
.podium-stat-tooltip .tooltiptext {
    background: rgba(30, 41, 59, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 200px;
    margin-left: -100px;
}

.podium-stat-tooltip .tooltiptext::after {
    border-color: rgba(30, 41, 59, 0.95) transparent transparent transparent;
}

/* Tooltips para módulos */
.podium-module-tooltip .tooltiptext {
    background: rgba(30, 41, 59, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 220px;
    margin-left: -110px;
}

.podium-module-tooltip .tooltiptext::after {
    border-color: rgba(30, 41, 59, 0.95) transparent transparent transparent;
}

/* Tooltips para estados */
.podium-state-tooltip .tooltiptext {
    background: rgba(30, 41, 59, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 200px;
    margin-left: -100px;
}

.podium-state-tooltip .tooltiptext::after {
    border-color: rgba(30, 41, 59, 0.95) transparent transparent transparent;
}

/* Tooltips para plataformas */
.podium-platform-tooltip .tooltiptext {
    background: rgba(30, 41, 59, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 180px;
    margin-left: -90px;
    font-weight: 600;
}

.podium-platform-tooltip .tooltiptext::after {
    border-color: rgba(30, 41, 59, 0.95) transparent transparent transparent;
}

/* Tooltips responsivos */
@media (max-width: 768px) {
    .podium-tooltip .tooltiptext {
        width: 180px;
        margin-left: -90px;
        font-size: 0.8rem;
        padding: 8px 10px;
    }
    
    .podium-avatar-tooltip .tooltiptext {
        width: 200px;
        margin-left: -100px;
    }
    
    .podium-module-tooltip .tooltiptext {
        width: 180px;
        margin-left: -90px;
    }
}

/* Animación de entrada para tooltips */
@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.podium-tooltip:hover .tooltiptext {
    animation: tooltipFadeIn 0.3s ease-out;
}

/* Efectos de accesibilidad */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Modo oscuro */
@media (prefers-color-scheme: dark) {
    .podium-card,
    .podium-module-card,
    .podium-state-card,
    .podium-statistics {
        background: rgba(30, 41, 59, 0.95);
        color: white;
    }
    
    .podium-card-title,
    .podium-module-title,
    .podium-state-title {
        color: var(--gold-primary);
    }
    
    .podium-player-name,
    .podium-module-player-name {
        color: white;
    }
    
    .podium-card-subtitle,
    .podium-state-subtitle,
    .podium-player-stats,
    .podium-stat-label {
        color: #cbd5e1;
    }
}