/* ============================================
   PODIUM TOOL - Styling
   ============================================ */

.podium-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    padding: 20px 0 40px;
}

/* ---------- Podium Stage ---------- */
.podium-stage {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 0;
    width: 100%;
    max-width: 600px;
}

.podium-place {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    max-width: 180px;
}

/* ---------- Names ---------- */
.podium-name {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 12px;
    min-height: 30px;
    text-align: center;
    opacity: 0;
    transform: translateY(10px);
    transition: none;
    word-break: break-word;
    padding: 0 4px;
}

.podium-name.revealed {
    opacity: 1;
    transform: translateY(0);
    animation: nameReveal 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.podium-name.hidden-text {
    opacity: 1;
    transform: translateY(0);
    color: var(--text-light);
    font-weight: 600;
    font-size: 18px;
}

@keyframes nameReveal {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.8);
    }
    60% {
        transform: translateY(-4px) scale(1.05);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ---------- Blocks ---------- */
.podium-block {
    width: 100%;
    border-radius: 12px 12px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: var(--transition);
}

.podium-number {
    font-size: 48px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.4);
    user-select: none;
}

/* Gold - Place 1 */
.block-1 {
    height: 180px;
    background: linear-gradient(180deg, #FFD700 0%, #F0C030 50%, #D4A017 100%);
    box-shadow: 0 -4px 20px rgba(255, 215, 0, 0.3), inset 0 2px 0 rgba(255, 255, 255, 0.3);
}

/* Silver - Place 2 */
.block-2 {
    height: 130px;
    background: linear-gradient(180deg, #E8E8E8 0%, #C0C0C0 50%, #A8A8A8 100%);
    box-shadow: 0 -4px 20px rgba(192, 192, 192, 0.3), inset 0 2px 0 rgba(255, 255, 255, 0.3);
}

/* Bronze - Place 3 */
.block-3 {
    height: 90px;
    background: linear-gradient(180deg, #E8A060 0%, #CD7F32 50%, #B06820 100%);
    box-shadow: 0 -4px 20px rgba(205, 127, 50, 0.3), inset 0 2px 0 rgba(255, 255, 255, 0.3);
}

/* Glow effect when revealed */
.podium-place.active .block-1 {
    box-shadow: 0 -4px 30px rgba(255, 215, 0, 0.5), 0 0 60px rgba(255, 215, 0, 0.2), inset 0 2px 0 rgba(255, 255, 255, 0.3);
}

.podium-place.active .block-2 {
    box-shadow: 0 -4px 30px rgba(192, 192, 192, 0.5), 0 0 40px rgba(192, 192, 192, 0.15), inset 0 2px 0 rgba(255, 255, 255, 0.3);
}

.podium-place.active .block-3 {
    box-shadow: 0 -4px 30px rgba(205, 127, 50, 0.5), 0 0 40px rgba(205, 127, 50, 0.15), inset 0 2px 0 rgba(255, 255, 255, 0.3);
}

/* ---------- Reveal Button ---------- */
.podium-action {
    display: flex;
    justify-content: center;
}

.podium-reveal-btn {
    padding: 16px 48px;
    font-size: 18px;
    font-weight: 700;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 16px rgba(108, 99, 255, 0.3);
    letter-spacing: 0.5px;
}

.podium-reveal-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(108, 99, 255, 0.4);
}

.podium-reveal-btn:active {
    transform: translateY(-1px);
}

.podium-reveal-btn.reset {
    background: var(--bg-light);
    color: var(--text-medium);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 2px solid #E8E8F0;
}

.podium-reveal-btn.reset:hover {
    background: #F5F4FF;
    color: var(--primary);
    border-color: var(--primary);
}

/* ---------- Empty State ---------- */
.podium-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.podium-empty .empty-icon {
    font-size: 56px;
    margin-bottom: 16px;
}

.podium-empty p {
    font-size: 16px;
    font-weight: 500;
}

/* ---------- Confetti Canvas ---------- */
#confettiCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    display: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
    .podium-stage {
        max-width: 100%;
    }

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

    .podium-number {
        font-size: 36px;
    }

    .block-1 {
        height: 140px;
    }

    .block-2 {
        height: 100px;
    }

    .block-3 {
        height: 70px;
    }

    .podium-reveal-btn {
        padding: 14px 36px;
        font-size: 16px;
    }
}
