/* A colla's estrenes, in a list: beside each estrena, and on the colla's page (components.colla.fila-estrena) */

.eco-estrenes {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;

    /* The whole row goes to the estrena (its chevron's link covers it), its castell and its day to theirs */
    li {
        position: relative;
        display: flex;
        align-items: center;
        gap: 0.6rem;
        margin: 0 -0.4rem;
        padding: 0.15rem 0.4rem;
        border-radius: 0.4rem;

        &:hover {
            background-color: rgb(0 0 0 / 0.04);

            .eco-estrena-enllac {
                color: var(--color-secondary);
            }
        }
    }

    .eco-estrena,
    .eco-estrena-data {
        position: relative;
        z-index: 1;
    }

    .eco-estrena-data {
        font-size: 0.8rem;
        color: var(--color-gray-darker);
        text-decoration: none;
        white-space: nowrap;

        &:hover {
            text-decoration: underline;
        }
    }

    /* To the estrena's own page */
    .eco-estrena-enllac {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 1.75rem;
        height: 1.75rem;
        margin: -0.25rem -0.4rem -0.25rem auto;
        border-radius: 50%;
        color: var(--color-gray-darker);

        &::after {
            content: '';
            position: absolute;
            inset: 0;
        }

        svg {
            width: 0.75rem;
            height: 0.75rem;
            fill: currentColor;
        }
    }
}

/* Under the colla's last ones, to all of them */
.eco-estrenes-totes {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-secondary);
    text-decoration: none;

    &:hover {
        text-decoration: underline;
    }
}

.eco-estrena {
    min-width: 4.5rem;
    padding: 0.15rem 0.5rem;
    border-radius: 0.35rem;
    background-color: var(--grup);
    color: var(--grup-text);
    font-size: 0.85rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;

    &:hover {
        filter: brightness(0.95);
    }
}
