
/* =========================================================
   MUSICALWORLD — COMPONENTE COMPARTILHADO DE TÍTULO XP

   Arquivo:
   css/componentes/titulo-xp.css

   Responsabilidades:

   - Estilizar o ícone do título XP.
   - Estilizar o nome do título.
   - Manter alinhamento consistente entre páginas.
   - Permitir reutilização em cards, perfis e publicações.
   - Ajustar dimensões para telas menores.

   Este arquivo não modifica o layout dos componentes
   que utilizam o título.

   ========================================================= */


/* =========================================================
   1. COMPONENTE PRINCIPAL
   ========================================================= */

.titulo-xp {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;

    flex: 0 0 auto;

    gap: 4px;

    min-width: 0;
    max-width: 100%;

    margin: 0;
    padding: 0;

    color: #6d4aff;

    font-family: Manrope, sans-serif;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.25;

    text-decoration: none;
    vertical-align: middle;

    white-space: nowrap;
}


/* =========================================================
   2. CONTÊINER DO ÍCONE
   ========================================================= */

.titulo-xp__icone {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 18px;

    width: 18px;
    height: 18px;

    min-width: 18px;
    min-height: 18px;

    margin: 0;
    padding: 0;

    overflow: visible;
}


/* =========================================================
   3. SVG DO TÍTULO
   ========================================================= */

.titulo-xp__icone svg {
    display: block;

    width: 100%;
    height: 100%;

    max-width: 100%;
    max-height: 100%;

    margin: 0;
    padding: 0;

    overflow: visible;
}


/* =========================================================
   4. TEXTO DO TÍTULO
   ========================================================= */

.titulo-xp__nome {
    display: inline-block;

    flex: 0 1 auto;

    min-width: 0;
    max-width: 100%;

    margin: 0;
    padding: 0;

    color: inherit;

    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;

    text-decoration: none;

    white-space: nowrap;
}


/* =========================================================
   5. TÍTULO DENTRO DE CONTÊINERES FLEXÍVEIS

   Evita que o componente imponha uma largura mínima
   excessiva ao elemento que o contém.
   ========================================================= */

.titulo-xp,
.titulo-xp__icone,
.titulo-xp__nome {
    box-sizing: border-box;
}


/* =========================================================
   6. AJUSTE PARA TELAS PEQUENAS
   ========================================================= */

@media (max-width: 380px) {
    .titulo-xp {
        gap: 3px;
        font-size: 10px;
    }

    .titulo-xp__icone {
        flex-basis: 16px;

        width: 16px;
        height: 16px;

        min-width: 16px;
        min-height: 16px;
    }
}


/* =========================================================
   7. AJUSTE PARA TELAS MUITO ESTREITAS
   ========================================================= */

@media (max-width: 340px) {
    .titulo-xp {
        gap: 2px;
        font-size: 9px;
    }

    .titulo-xp__icone {
        flex-basis: 15px;

        width: 15px;
        height: 15px;

        min-width: 15px;
        min-height: 15px;
    }
}


/* =========================================================
   8. ACESSIBILIDADE

   Evita animações involuntárias caso futuramente sejam
   adicionadas transições ao componente.
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    .titulo-xp,
    .titulo-xp__icone,
    .titulo-xp__icone svg,
    .titulo-xp__nome {
        scroll-behavior: auto;
        animation: none;
        transition: none;
    }
}

