/**
 * Top Banner Styles
 * Tarja superior promocional
 */

.headcore-top-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1001;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.headcore-top-banner--hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-100%);
    pointer-events: none;
}

.headcore-top-banner__link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem var(--container-padding, 2rem);
    padding-right: 2.5rem; /* Espaço para o botão de fechar menor */
    text-decoration: none;
    text-align: center;
    flex: 1;
    box-sizing: border-box;
    transition: opacity 0.3s ease;
}

.headcore-top-banner__link:hover {
    opacity: 0.9;
    text-decoration: none;
}

.headcore-top-banner__text {
    flex: 1;
    line-height: 1.5;
}

.headcore-top-banner__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.headcore-top-banner__icon svg {
    width: 100%;
    height: 100%;
    display: block;
    fill: currentColor;
}

.headcore-top-banner__close {
    position: absolute;
    top: 50%;
    right: var(--container-padding, 2rem);
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    transition: background-color 0.3s ease, transform 0.2s ease;
    flex-shrink: 0;
    z-index: 10;
}

/* Tema dark: botão preto (para fundos claros/brancos) */
.headcore-top-banner__close--dark {
    background: rgba(0, 0, 0, 0.1);
    color: #080808;
}

.headcore-top-banner__close--dark:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.headcore-top-banner__close--dark:active {
    transform: translateY(-50%) scale(0.95);
}

.headcore-top-banner__close--dark svg {
    width: 10px;
    height: 10px;
    stroke: #080808;
}

/* Tema light: botão branco (para fundos escuros/amarelos/imagens) */
.headcore-top-banner__close--light {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.headcore-top-banner__close--light:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.headcore-top-banner__close--light:active {
    transform: translateY(-50%) scale(0.95);
}

.headcore-top-banner__close--light svg {
    width: 10px;
    height: 10px;
    stroke: #ffffff;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .headcore-top-banner__link {
        padding: 0.625rem var(--container-padding, 1rem);
        padding-right: 2.25rem; /* Espaço para o botão de fechar menor no mobile */
        gap: 0.375rem;
    }
    
    .headcore-top-banner__icon {
        width: 18px;
        height: 18px;
    }
    
    .headcore-top-banner__close {
        right: var(--container-padding, 1rem);
        width: 18px;
        height: 18px;
    }
    
    .headcore-top-banner__close svg {
        width: 9px;
        height: 9px;
    }
}

