/**
 * Estilos do botão público "Loja" no perfil do creator.
 *
 * O botão é injetado via action bp_member_header_actions e renderizado dentro
 * do container nativo .member-header-actions do BuddyBoss, ao lado do botão
 * "Seguir" e fora do dropdown de "mais opções". As regras abaixo garantem que
 * ele fique alinhado aos botões nativos sem quebrar o layout do header.
 */

.member-header-actions .hmvip-public-store-button,
.member-header-actions-wrap .hmvip-public-store-button,
#item-buttons .hmvip-public-store-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.25rem;
    color: #ffffff;
    background-color: var(--hmvip-accent, #e72b6c);
    border: 1px solid var(--hmvip-accent, #e72b6c);
    border-radius: 0.375rem;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
}

.member-header-actions .hmvip-public-store-button:hover,
.member-header-actions-wrap .hmvip-public-store-button:hover,
#item-buttons .hmvip-public-store-button:hover,
.member-header-actions .hmvip-public-store-button:focus,
.member-header-actions-wrap .hmvip-public-store-button:focus,
#item-buttons .hmvip-public-store-button:focus {
    color: #ffffff;
    background-color: #c2185b;
    border-color: #c2185b;
    text-decoration: none;
}

/* Fallback para themes que não usam o container nativo */
.hmvip-public-store-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.25rem;
    color: #ffffff;
    background-color: var(--hmvip-accent, #e72b6c);
    border: 1px solid var(--hmvip-accent, #e72b6c);
    border-radius: 0.375rem;
    text-decoration: none;
    white-space: nowrap;
}

.hmvip-public-store-button:hover,
.hmvip-public-store-button:focus {
    color: #ffffff;
    background-color: #c2185b;
    border-color: #c2185b;
    text-decoration: none;
}

/* Tabs da loja dentro de Minha Loja */
.hmvip-store-tabs {
    margin: 1rem 0;
}

.hmvip-store-tabs__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hmvip-store-tabs__item {
    margin: 0;
}

.hmvip-store-tabs__link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.hmvip-store-tabs__link:hover,
.hmvip-store-tabs__link:focus {
    color: #ffffff;
    text-decoration: none;
}

.hmvip-store-tabs__item.is-active .hmvip-store-tabs__link {
    color: var(--hmvip-accent, #e72b6c);
    border-bottom-color: var(--hmvip-accent, #e72b6c);
}

body.buddyx-light-mode .hmvip-store-tabs__list {
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

body.buddyx-light-mode .hmvip-store-tabs__link {
    color: rgba(0, 0, 0, 0.6);
}

body.buddyx-light-mode .hmvip-store-tabs__link:hover,
body.buddyx-light-mode .hmvip-store-tabs__link:focus {
    color: #000000;
}

body.buddyx-light-mode .hmvip-store-tabs__item.is-active .hmvip-store-tabs__link {
    color: var(--hmvip-accent, #e72b6c);
    border-bottom-color: var(--hmvip-accent, #e72b6c);
}

@media screen and (max-width: 768px) {
    .member-header-actions .hmvip-public-store-button,
    .member-header-actions-wrap .hmvip-public-store-button,
    #item-buttons .hmvip-public-store-button,
    .hmvip-public-store-button {
        padding: 0.375rem 0.75rem;
        font-size: 0.8125rem;
    }

    .hmvip-store-tabs__list {
        gap: 0.25rem;
    }

    .hmvip-store-tabs__link {
        padding: 0.5rem 0.75rem;
        font-size: 0.8125rem;
    }
}
