/* CONTRIBUTION PANEL */
/* Style général du panneau */
#contribution-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100dvw;
    height: 100dvh;
    background: rgba(10, 10, 10, 0.6);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;

    &:not(.visible) {
        display: none;
    }


    & .contribution-content {
        position: relative;
        background: white;
        border-radius: 12px;
        max-width: 600px;
        width: calc(100% - 80px);
        padding: 30px 40px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        animation: contributionPanelAnimation 0.3s ease;
        text-align: center;

        & h2 {
            margin-top: 0;
            font-size: 24px;
            color: #2c3e50;
        }
        & p {
            color: #555;
            margin-bottom: 20px;
        }
    }
     
    & .categories-list {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-bottom: 30px;
    }
    
    & .category-button {
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: #f4f4f4;
        padding: 14px 18px;
        border-radius: 8px;
        border: 1px solid #ccc;
        cursor: pointer;
        font-size: 16px;
        font-weight: 500;
        transition: background 0.2s, transform 0.2s;

        &.free {
            background: #00e7009c;
            border-color: #b5e0b5;
            color: black;
            &:hover{
                background: #d2f0d2;
            }
        }
        &.paid {
            background: #ffce31;
            border-color: #ffc300;
            color: black;
            &:hover{
                background: #fbe8aa;
            }
        }

        & span.price {
            font-weight: bold;
        }
    }
}
@keyframes contributionPanelAnimation {
    from { transform: translateY(20px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}