/* =====================================
   BARRA DE ANÚNCIOS (TOPO)
   ===================================== */
.announcement-bar {
    background: linear-gradient(135deg, #FFC0E0 0%, #A8D5E2 100%);
    color: var(--color-primary);
    font-size: 14px;
    font-weight: 600;
    overflow: hidden;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 40px;
    display: flex;
    align-items: center;
    z-index: 2000;
}

.announcement-content {
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: scroll-left 30s linear infinite;
    padding-left: 100%;
}

.announcement-item {
    display: inline-flex;
    align-items: center;
    padding: 0 40px;
}

.announcement-item::before {
    content: '|';
    margin: 0 16px;
    font-size: 16px;
    font-weight: 300;
    opacity: 0.4;
}

.announcement-item:first-child::before {
    display: none;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Pausar animação ao hover */
.announcement-bar:hover .announcement-content {
    animation-play-state: paused;
}

/* Mobile: ajustes */
@media (max-width: 767px) {
    .announcement-bar {
        height: 36px;
        font-size: 13px;
    }
    
    .announcement-item {
        padding: 0 30px;
    }
    
    .announcement-item::before {
        margin: 0 12px;
        font-size: 14px;
    }
    
    .announcement-content {
        animation: scroll-left 25s linear infinite;
    }
    
    /* Ajustar header no mobile */
    #header {
        top: 36px;
    }
    
    /* Ajustar hero no mobile */
    #hero {
        padding-top: calc(116px + var(--spacing-4xl)); /* 36px barra + 80px header */
    }
}

/* Tablet: ajustes intermediários */
@media (min-width: 768px) and (max-width: 991px) {
    .announcement-bar {
        font-size: 13.5px;
    }
}
