/* =========================================
   BuzzBar - Clean MVP Layout
========================================= */

.buzzbar-banner {
    --buzzbar-bg-color: #2271b1;
    --buzzbar-text-color: #ffffff;
    --buzzbar-link-color: #ffffff;
    --buzzbar-overlay-bg: transparent;
    --buzzbar-overlay-opacity: 0;
    position: fixed;
    left: 0;
    width: 100%;
    z-index: 9999;
    font-size: 19px;
    line-height: 1.5;
    background: var(--buzzbar-bg-color);
    color: var(--buzzbar-text-color);
    opacity: 1;
    transition: none;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

.buzzbar-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--buzzbar-overlay-bg);
    opacity: var(--buzzbar-overlay-opacity);
    pointer-events: none;
}

.buzzbar-banner.buzzbar-queued {
    opacity: 0 !important;
    pointer-events: none;
}

/* Top / Bottom */
.buzzbar-top { top: 0; }
.buzzbar-bottom { bottom: 0; }

/* Admin bar fix */
body.admin-bar .buzzbar-top { top: 32px; }
@media (max-width:782px){
    body.admin-bar .buzzbar-top { top: 46px; }
}

/* Inner container */
.buzzbar-inner {
    margin: 0 auto;
    padding: 14px 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* Content (RED area - Center) */
.buzzbar-content {
    text-align: center;
    overflow: hidden;
}

.buzzbar-banner.buzzbar-type-ticker .buzzbar-content {
    flex: 1 1 auto;
    min-width: 0;
}

.buzzbar-rotation-text {
    display: inline-block;
    transition: opacity 0.2s ease;
}

.buzzbar-rotation-text.buzzbar-rotation-fade {
    opacity: 0;
}

/* Ticker / Marquee */
.buzzbar-ticker {
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
}

.buzzbar-ticker-track {
    display: flex;
    width: max-content;
    animation: buzzbarTicker var(--buzzbar-ticker-duration, 20s) linear infinite;
}

.buzzbar-ticker-group {
    display: flex;
    flex-shrink: 0;
}

.buzzbar-ticker-item {
    display: inline-block;
    flex-shrink: 0;
    margin-right: 36px;
}

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

/* CTA wrapper (YELLOW area - Right of content) */
/* .buzzbar-cta {
    margin-left: 20px;
} */

/* .buzzbar-cta a {
    padding: 6px 14px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
} */

.buzzbar-cta {
    margin-left: 8px;
    flex-shrink: 0;
}

.buzzbar-cta a {
    color: var(--buzzbar-link-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    padding: 0;
    border-radius: 0;
    display: inline-block;
    white-space: nowrap;
}

.buzzbar-cta a:hover {
    opacity: 0.8;
}

/* Close button (BLUE area - Extreme right) */
.buzzbar-close {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    font-size: 22px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s ease;
    color: var(--buzzbar-text-color);
}

.buzzbar-close:hover {
    opacity: 1;
}

/* Hide animation */
.buzzbar-banner.buzzbar-hidden {
    opacity: 0;
    transform: translateY(-100%);
    transition: all 0.3s ease;
}

.buzzbar-bottom.buzzbar-hidden {
    transform: translateY(100%);
}

/* Advertisement banner */
.buzzbar-ad {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.buzzbar-ad-media img {
    display: block;
    max-height: 64px;
    width: auto;
    height: auto;
}

.buzzbar-ad-text {
    text-align: center;
}
