/* =========================================================
   MUSICALWORLD — CATEGORIAS DO FEED

   Arquivo:
   css/index/categorias-feed.css

   Responsabilidades:

   - Estilizar as categorias principais do feed.
   - Manter o box alinhado com os cards.
   - Distribuir igualmente as três categorias.
   - Estilizar os ícones SVG.
   - Destacar corretamente a categoria selecionada.
   - Manter o visual discreto no mobile.
   - Não alterar os cards ou demais elementos do feed.

   Categorias:

   - Oportunidades
   - Artistas
   - Composições
   ========================================================= */


/* =========================================================
   CONTAINER
   ========================================================= */

.feed-categorias {

    width: 100%;

    display: flex;

    align-items: center;

    gap: 6px;

    margin: 0 0 20px;

    padding: 4px;

    background: #ffffff;

    border: 1px solid #e7eaf1;

    border-radius: 16px;

    overflow-x: auto;

    overflow-y: hidden;

    scrollbar-width: none;

    -webkit-overflow-scrolling: touch;

    box-sizing: border-box;

}


/* =========================================================
   OCULTAR SCROLLBAR
   ========================================================= */

.feed-categorias::-webkit-scrollbar {

    display: none;

}


/* =========================================================
   BOTÃO
   ========================================================= */

.feed-categoria {

    flex: 1 1 0;

    width: 0;

    min-width: 0;

    min-height: 40px;

    padding: 0 12px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 7px;

    border: 1px solid transparent;

    border-radius: 12px;

    background: transparent;

    color: #5f6878;

    font-family: "Manrope", sans-serif;

    font-size: 14px;

    font-weight: 700;

    line-height: 1;

    text-align: center;

    white-space: nowrap;

    cursor: pointer;

    box-sizing: border-box;

    appearance: none;

    -webkit-appearance: none;

    transition:

        background-color 0.18s ease,

        color 0.18s ease,

        border-color 0.18s ease,

        box-shadow 0.18s ease,

        transform 0.18s ease;

}


/* =========================================================
   ÍCONE SVG
   ========================================================= */

.feed-categoria__icone {

    width: 17px;

    height: 17px;

    min-width: 17px;

    flex: 0 0 17px;

    display: block;

    color: currentColor;

    stroke: currentColor;

    box-sizing: border-box;

}


/* =========================================================
   HOVER
   ========================================================= */

.feed-categoria:hover {

    color: #6d4aff;

    background: rgba(109, 74, 255, 0.07);

}


/* =========================================================
   FOCO
   ========================================================= */

.feed-categoria:focus-visible {

    outline: 2px solid #6d4aff;

    outline-offset: 2px;

}


/* =========================================================
   CATEGORIA ATIVA
   ========================================================= */

.feed-categoria.feed-categoria--ativa {

    background: #6d4aff !important;

    border-color: #6d4aff !important;

    color: #ffffff !important;

    box-shadow:
        0 2px 7px rgba(109, 74, 255, 0.18);

}


/* =========================================================
   ÍCONE DA CATEGORIA ATIVA
   ========================================================= */

.feed-categoria.feed-categoria--ativa .feed-categoria__icone {

    color: #ffffff !important;

    stroke: #ffffff !important;

}


/* =========================================================
   HOVER DA CATEGORIA ATIVA
   ========================================================= */

.feed-categoria.feed-categoria--ativa:hover {

    background: #6d4aff !important;

    border-color: #6d4aff !important;

    color: #ffffff !important;

}


/* =========================================================
   ACTIVE
   ========================================================= */

.feed-categoria:active {

    transform: scale(0.97);

}


.feed-categoria.feed-categoria--ativa:active {

    background: #6d4aff !important;

    border-color: #6d4aff !important;

    color: #ffffff !important;

}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .feed-categorias {

        gap: 5px;

        margin-bottom: 18px;

    }


    .feed-categoria {

        min-height: 38px;

        padding: 0 10px;

        gap: 6px;

        font-size: 13px;

    }


    .feed-categoria__icone {

        width: 16px;

        height: 16px;

        min-width: 16px;

        flex-basis: 16px;

    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .feed-categorias {

        width: 100%;

        max-width: 100%;

        margin: 0 0 16px;

        padding: 3px;

        gap: 3px;

        background: rgba(255, 255, 255, 0.72);

        border: 1px solid rgba(23, 32, 51, 0.06);

        border-radius: 14px;

        box-shadow:
            0 2px 10px rgba(23, 32, 51, 0.035);

        backdrop-filter: blur(8px);

        -webkit-backdrop-filter: blur(8px);

        box-sizing: border-box;

    }


    .feed-categoria {

        flex: 1 1 0;

        width: 0;

        min-width: 0;

        min-height: 36px;

        padding: 0 6px;

        gap: 5px;

        border-radius: 10px;

        font-size: 12px;

        font-weight: 600;

    }


    .feed-categoria__icone {

        width: 14px;

        height: 14px;

        min-width: 14px;

        flex-basis: 14px;

    }


    .feed-categoria:hover {

        background: transparent;

        color: #5f6878;

    }


    .feed-categoria.feed-categoria--ativa {

        background: #6d4aff !important;

        border-color: #6d4aff !important;

        color: #ffffff !important;

        box-shadow:
            0 2px 7px rgba(109, 74, 255, 0.18);

    }


    .feed-categoria.feed-categoria--ativa .feed-categoria__icone {

        color: #ffffff !important;

        stroke: #ffffff !important;

    }


    .feed-categoria.feed-categoria--ativa:hover {

        background: #6d4aff !important;

        border-color: #6d4aff !important;

        color: #ffffff !important;

    }

}