/* #region FUENTES */

@font-face {
    font-family: "Chalet";
    src: url("/assets/fonts/Chalet.woff2") format("woff2");
    font-display: swap;
}

/* #endregion */

/* #region GENERAL */
:root {
    --font-title: "Chalet";
    --block-color: rgba(31, 36, 32, 0.85);
    --block-text: #eaeaea;
    --block-shadow: rgba(4, 102, 69, 0.24);
    --block-border: rgb(42, 105, 76);
    --title-color: rgba(93, 182, 229, 255);
    --accent-color: #6bd1b8bd;
    --map-background: #0fa8d2;
}

::selection {
    background: #bcf19a;
    color: #1a2a1a;
}

::-moz-selection {
    background: #ffffff;
    color: #1a2a1a;
}

body.custom-cursor * {
    cursor: url("/assets/cursors/V.png") 0 0, auto !important;
}

body {
    background-image: url("/assets/images/main/backgrounds/background_V.webp");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: scroll;

    @media (min-width: 768px) {
        background-attachment: fixed;
    }

    &::after {
        content: "";
        position: fixed;
        bottom: 0;
        width: 100%;
        height: 80px;
        background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--block-border) 5%, var(--block-color)));
    }

    & .block,
    #radioInfo {
        background: linear-gradient(135deg,
                #060807e3 0%,
                #16241ae3 40%,
                #050706e3 100%);
    }
}

.text-container {
    & h1 {
        text-shadow: 3px 3px #000;
    }
}


/* #endregion */

/* #region FICHA TÉCNICA */
.ficha-tecnica {

    & th,
    & .platform {
        text-shadow: 2px 2px #000;
    }
}

/* #endregion */

/* #region 100% CHECKLIST */
.progress-wrapper {
    & .progress-bar-bg {
        & .progress-bar-fill {
            background: linear-gradient(90deg, #a0f2f8, #a5ffa4, #ffa85d);
        }
    }
}


/* #endregion */

/* #region HERRAMIENTAS Y MODS */
.mods-container {
    & details {
        &[open] {
            & .mod-expanded {
                & nav {
                    & a {
                        & span {
                            color: color-mix(in srgb, var(--accent-color) 85%, var(--block-text));
                        }

                        &.active {
                            border: 2px solid color-mix(in srgb, var(--block-border) 95%, transparent);
                            background: color-mix(in srgb, var(--block-border) 60%, transparent);
                        }
                    }
                }
            }
        }
    }
}

details.mod summary img {
    border-radius: 30px;
    background: #ffffff91;
}

/* #endregion */

/* #region LOGROS */


/* #endregion */

/* #region MAPA */
.map-wrapper {
    background: linear-gradient(135deg, rgba(3, 39, 36, 0.685) 5%, rgb(0, 0, 0));
}

/* #endregion */

/* #region RADIO */

.radio-wheel {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
    height: 800px;
    margin: 0 auto;
    overflow: visible;
    aspect-ratio: 1 / 1;

    & .radio-card {
        position: absolute;
        width: clamp(40px, 6vw, 75px);
        height: clamp(40px, 6vw, 75px);
        top: 50%;
        left: 50%;
        margin-top: calc(clamp(40px, 6vw, 75px) / -2);
        margin-left: calc(clamp(40px, 6vw, 75px) / -2);
        transform-origin: center center;

        & img {
            width: 100%;
            height: 100%;
            opacity: 0.4;
            filter: grayscale(700%);
            object-fit: contain;
            padding: 2px;
            border-radius: 50%;
            transition: all 0.2s ease-in-out;

            &:hover {
                outline: 3px #5486e2a6 solid;
                filter: grayscale(50%);
                opacity: 0.9;
            }
        }

        &.active {
            & img {
                opacity: 1;
                filter: grayscale(0);
                outline: 3px #5486e2 solid;
            }
        }
    }
}


#radioInfo {

    & #playlistSelector {
        margin-bottom: 1em;

        & button {
            padding: 1em 2.1em;
            background: #000000;
            color: #F0F0F0;
            font-family: "Chalet";
            text-transform: uppercase;
            font-size: 0.8em;


            &:hover {
                background: #F0F0F0;
                color: #1a2a1a;
            }


            &.active {
                background: #F0F0F0;
                font-weight: 800;
                color: #1a2a1a;

                &::after {
                    position: absolute;
                    top: -2px;
                    left: 0;
                    transform: translateX(0);
                    width: 100%;
                    height: 3px;
                    content: "";
                    background: var(--title-color);
                }
            }
        }
    }
}


/* #endregion */

/* #region TRUCOS */
.platform-message {
    display: flex;
    align-items: center;
    margin-inline: auto;
    justify-content: center;
    gap: 7px;

    & span {
        color: #5b9bd5;
    }

    & p {
        color: color-mix(in srgb, var(--block-border) 25%, #fff);
        margin: 0 !important;
        font-size: 0.9em !important;

        & code {
            outline: 2px solid #0000005b;
            background: var(--block-text);
            color: #0a0a0a;
            font-weight: 900;
            font-size: 1.25em;
            padding: 5px 8px;
            margin-inline: 2px 4px;
            border-radius: 3px;
        }
    }
}

/* #endregion */

/* #region MEDIA QUERIES  */

@media (max-width: 1350px) {

    body {
        background: radial-gradient(circle at top, rgba(128, 249, 255, 0.8), rgb(0, 70, 11));
    }

    .radio-wheel {
        padding-block: 3em;
    }
}

/* #endregion */