/**
 * Promo Banner
 * Inside .site-header, collapses smoothly when closed
 */
.promo-banner {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 50%, #1e5799 100%);
    color: white;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 0.9rem;
    position: relative;
    /* Smooth collapse animation */
    max-height: 60px;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.2s ease;
}

/* Banner closed - collapses to 0 */
.promo-banner.is-closed {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
    pointer-events: none;
}

.promo-banner-text {
    display: inline;
    text-align: center;
}

.promo-banner-text strong {
    font-weight: 700;
}

.promo-banner-cta {
    background: white;
    color: #c0392b;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.promo-banner-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.promo-banner-close {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px 10px;
    line-height: 1;
    border-radius: 4px;
    transition: background 0.2s;
}

.promo-banner-close:hover {
    background: rgba(255,255,255,0.3);
}

@media (max-width: 600px) {
    .promo-banner {
        flex-direction: column;
        gap: 8px;
        padding: 10px 40px 10px 12px;
        max-height: 120px;
        text-align: center;
    }
    
    .promo-banner-text {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    .promo-banner-cta {
        padding: 6px 16px;
        font-size: 0.8rem;
    }
    
    .promo-banner-close {
        top: 8px;
        right: 8px;
        transform: none;
    }
}
