/* ==========================================================================
   Superbar - Top Sliding Header Frontend Stylesheet
   ========================================================================== */

.superbar-container {
    --superbar-height: 40px;
    --superbar-bg: #0b4429;
    --superbar-color: #ffffff;
    --superbar-accent-color: #ffd700;
    --superbar-font-family: 'Montserrat', sans-serif;
    --superbar-font-size: 13px;
    --superbar-font-weight: 600;
    --superbar-letter-spacing: 1px;
    --superbar-padding: 10px;
    --superbar-z-index: 99999;
    --superbar-speed: 20s;

    width: 100%;
    height: var(--superbar-height);
    background: var(--superbar-bg);
    color: var(--superbar-color);
    font-family: var(--superbar-font-family);
    font-size: var(--superbar-font-size);
    font-weight: var(--superbar-font-weight);
    letter-spacing: var(--superbar-letter-spacing);
    
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    box-sizing: border-box;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Positioning Behaviors */
.superbar-sticky {
    position: fixed;
    top: 0;
    left: 0;
    z-index: var(--superbar-z-index);
}

.superbar-flow {
    position: relative;
    z-index: 10;
}

/* Glassmorphism Frosted Glass styling */
.superbar-glass {
    backdrop-filter: blur(12px) saturate(120%);
    -webkit-backdrop-filter: blur(12px) saturate(120%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

/* WordPress Admin Bar Offsets */
body.admin-bar .superbar-sticky {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .superbar-sticky {
        top: 46px;
    }
}

/* ==========================================================================
   Marquee Animation Engine
   ========================================================================== */
.superbar-marquee-wrapper {
    overflow: hidden;
    display: flex;
    align-items: center;
    flex-grow: 1;
    height: 100%;
    position: relative;
}

.superbar-marquee-content {
    display: flex;
    white-space: nowrap;
    align-items: center;
    position: absolute;
    width: max-content;
    height: 100%;
    will-change: transform;
    animation: superbar-marquee var(--superbar-speed) linear infinite;
}

/* Left sliding animation (Standard) */
@keyframes superbar-marquee {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

/* Right sliding animation */
.superbar-dir-right .superbar-marquee-content {
    animation-name: superbar-marquee-right;
}

@keyframes superbar-marquee-right {
    0% {
        transform: translate3d(-50%, 0, 0);
    }
    100% {
        transform: translate3d(0, 0, 0);
    }
}

/* Pause on hover behavior */
.superbar-pause-on-hover:hover .superbar-marquee-content {
    animation-play-state: paused;
}

/* Announcement Items */
.superbar-item {
    display: flex;
    align-items: center;
    padding: 0 var(--superbar-padding);
    box-sizing: border-box;
}

.superbar-separator {
    color: var(--superbar-accent-color);
    margin-right: var(--superbar-padding);
    font-weight: 700;
    display: inline-block;
}

.superbar-text {
    display: inline-block;
}

.superbar-text a {
    color: inherit;
    text-decoration: underline;
    transition: opacity 0.2s;
}

.superbar-text a:hover {
    opacity: 0.85;
}

/* ==========================================================================
   Close / Dismiss Button
   ========================================================================== */
.superbar-close-btn {
    background: transparent;
    border: none;
    color: inherit;
    opacity: 0.65;
    cursor: pointer;
    padding: 0 16px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.2s ease;
    z-index: 10;
    flex-shrink: 0;
}

.superbar-close-btn:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.05);
}

.superbar-close-btn svg {
    display: block;
    width: 14px;
    height: 14px;
    transition: transform 0.2s;
}

.superbar-close-btn:hover svg {
    transform: rotate(90deg);
}

/* ==========================================================================
   Targeting & Hiding Rules
   ========================================================================== */
.superbar-hidden {
    display: none !important;
}

/* Media query targets based on options settings */
@media (min-width: 992px) {
    .superbar-container.superbar-hide-desktop {
        display: none !important;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .superbar-container.superbar-hide-tablet {
        display: none !important;
    }
}

@media (max-width: 767px) {
    .superbar-container.superbar-hide-mobile {
        display: none !important;
    }
}
