/* Editions Past Event Styles */

.edition-winners-showcase {
    position: relative;
    z-index: 10;
    margin-top: -200px;
    padding: 0 10%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    /* Let clicks pass through if empty space */
}

.winner-card {
    pointer-events: auto;
    width: 250px;
    position: relative;
    z-index: 10;
}

.winner-card-inner {
    background: #000;
    border: 2px solid var(--hexcore-blue);
    padding: 10px;
    text-align: center;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
}

.winner-card.female-winner .winner-card-inner {
    border-color: #ff00ff;
    /* Purple for women's winner */
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.4);
}

.winner-crown {
    position: absolute;
    top: -25px;
    width: 60px;
    z-index: 12;
}

.female-winner .winner-crown {
    right: -10px;
    transform: rotate(15deg);
}

.male-winner .winner-crown {
    left: -10px;
    transform: rotate(-15deg);
}

.winner-crown img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.9));
}

.winner-photo {
    width: 100%;
    height: 220px;
    background-size: cover !important;
    /* background-position: top; */
    margin-bottom: 10px;
    clip-path: polygon(5px 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%, 0 5px);
}

.winner-info h3 {
    font-family: var(--font-title);
    font-size: 1.8rem;
    color: #fff;
    margin: 5px 0 0 0;
    line-height: 1;
}

.winner-info p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 3px 0 8px 0;
    text-transform: uppercase;
}

.winner-points {
    background: var(--hexcore-blue);
    color: #000;
    font-weight: 900;
    font-size: 1rem;
    padding: 4px 12px;
    display: inline-block;
    clip-path: polygon(5px 0, 100% 0, calc(100% - 5px) 100%, 0 100%);
}

.winner-card.female-winner .winner-points {
    background: #ff00ff;
    color: #fff;
}

/* Recap Photo */
.edition-recap-photo {
    margin: 30px 0;
    position: relative;
    border: 2px solid #333;
    overflow: hidden;
    clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
}

.edition-recap-photo img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.edition-recap-photo .recap-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.edition-recap-photo:hover img {
    transform: scale(1.03);
}

.edition-recap-photo:hover .recap-overlay {
    opacity: 1;
}

.recap-overlay span {
    font-family: var(--font-title);
    font-size: 2.5rem;
    color: var(--hexcore-blue);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.8);
    letter-spacing: 2px;
    text-align: center;
    padding: 20px;
    border: 2px solid var(--hexcore-blue);
    backdrop-filter: blur(5px);
}

/* Podiums */
.edition-podiums {
    margin-top: 30px;
    margin-bottom: 40px;
}

.edition-podiums h3 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 2.5rem;
    color: #fff;
    font-family: var(--font-title);
    letter-spacing: 2px;
}

.podiums-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 40px;
}

.podium-section {
    flex: 1;
    min-width: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.podium-section h4 {
    font-family: var(--font-title);
    font-size: 2.2rem;
    color: rgba(255, 255, 255, 0.9);
}

.podium-structure {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 15px;
    height: 280px;
    width: 100%;
}

.podium-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 0 0 100px;
    width: 100px;
}

.podium-step .athlete-name {
    font-weight: 900;
    font-size: 1rem;
    color: #fff;
    text-align: center;
    margin-bottom: 8px;
    white-space: normal;
    line-height: 1.1;
    min-height: 2.2em;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.podium-step .athlete-gl {
    font-size: 0.9rem;
    color: var(--hexcore-blue);
    margin-bottom: 12px;
    font-family: monospace;
    background: rgba(0, 240, 255, 0.1);
    padding: 2px 5px;
    border-radius: 3px;
}

.female-podium .athlete-gl {
    color: #ff00ff;
    background: rgba(255, 0, 255, 0.1);
}

.step-block {
    width: 100%;
    background: #151515;
    border: 2px solid #333;
    border-bottom: none;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 15px;
    font-family: var(--font-title);
    font-size: 2.5rem;
    color: #555;
    box-shadow: inset 0 10px 20px rgba(0, 0, 0, 0.5);
}

.step-1 .step-block {
    height: 180px;
    background: linear-gradient(180deg, rgba(255, 215, 0, 0.15) 0%, #151515 100%);
    border-color: rgba(255, 215, 0, 0.6);
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.step-2 .step-block {
    height: 130px;
    background: linear-gradient(180deg, rgba(192, 192, 192, 0.15) 0%, #151515 100%);
    border-color: rgba(192, 192, 192, 0.6);
    color: #c0c0c0;
}

.step-3 .step-block {
    height: 90px;
    background: linear-gradient(180deg, rgba(205, 127, 50, 0.15) 0%, #151515 100%);
    border-color: rgba(205, 127, 50, 0.6);
    color: #cd7f32;
}

/* Mobile responsive for layout */
@media (max-width: 768px) {
    .edition-winners-showcase {
        margin-top: -10px;
        gap: 30px;
    }

    .winner-card {
        width: 160px;
    }

    .winner-crown {
        width: 45px;
        top: -15px;
    }

    .winner-photo {
        height: 140px;
    }

    .winner-info h3 {
        font-size: 1.3rem;
    }

    .recap-overlay span {
        font-size: 1.5rem;
        padding: 15px;
    }

    .podiums-container {
        gap: 30px;
        padding: 0 10px;
    }

    .podium-section {
        min-width: 100%;
        width: 100%;
    }

    .podium-structure {
        gap: 5px;
    }

    .podium-step {
        flex: 0 0 85px;
        width: 85px;
    }

    .podium-step .athlete-name {
        font-size: 0.8rem;
    }

    .step-block {
        font-size: 1.8rem;
    }
}

/* Accordion for Past Editions Details */
.edition-details-accordion {
    margin-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
}

.edition-accordion-toggle {
    width: 100%;
    background: rgba(0, 240, 255, 0.05);
    border: 1px solid var(--hexcore-blue);
    color: var(--hexcore-blue);
    padding: 15px 25px;
    font-family: var(--font-mono);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
    margin-bottom: 20px;
}

.edition-accordion-toggle:hover {
    background: rgba(0, 240, 255, 0.15);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

.edition-accordion-toggle .toggle-icon {
    font-size: 1.2rem;
    transition: transform 0.4s ease;
}

.edition-accordion-toggle.active {
    background: rgba(0, 240, 255, 0.2);
}

.edition-accordion-toggle.active .toggle-icon {
    transform: rotate(180deg);
}

.edition-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
    opacity: 0;
}

.edition-accordion-content.expanded {
    max-height: 5000px;
    /* Large enough for the content */
    opacity: 1;
    margin-top: 20px;
}