/* =============================================
   TOP BAR STYLES
   Part of Unified Header System
   ============================================= */

/* ---------------------------------------------
   Base Top Bar
   --------------------------------------------- */
.site-top-bar {
    position: relative;
    left: 0;
    right: 0;
    width: 100%;
    z-index: var(--z-top-bar, 9999);
    display: flex;
    align-items: center;
    font-size: 13px;
    line-height: 1.4;
    /* Cross-browser smooth transitions */
    -webkit-transition: top 0.4s ease, transform 0.4s ease, opacity 0.4s ease;
    -moz-transition: top 0.4s ease, transform 0.4s ease, opacity 0.4s ease;
    -o-transition: top 0.4s ease, transform 0.4s ease, opacity 0.4s ease;
    transition: top 0.4s ease, transform 0.4s ease, opacity 0.4s ease;
    /* Force GPU acceleration for smoother animations */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: top, transform;
}

/* ---------------------------------------------
   Sticky Top Bar - Fixed at top
   --------------------------------------------- */
.site-top-bar.sticky {
    position: fixed;
    top: var(--announcement-bar-height, 0px);
}

/* ---------------------------------------------
   Non-Sticky Top Bar - Scrolls with page
   --------------------------------------------- */
.site-top-bar:not(.sticky) {
    position: relative;
    top: 0;
}

/* ---------------------------------------------
   Container
   --------------------------------------------- */
.site-top-bar .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}

/* Top Bar Width Classes - Match Header */
.site-top-bar.topbar-width-narrow .container { max-width: 1024px; }
.site-top-bar.topbar-width-default .container { max-width: 1280px; }
.site-top-bar.topbar-width-wide .container { max-width: 1440px; }
.site-top-bar.topbar-width-full .container { max-width: 100%; padding: 0 32px; }

.site-top-bar .top-bar-content {
    width: 100%;
}

/* ---------------------------------------------
   Content Layout
   --------------------------------------------- */
.top-bar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
}

/* Left Section */
.top-bar-left {
    flex: 1;
    display: flex;
    align-items: center;
}

/* Center Section */
.top-bar-center {
    flex: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Right Section */
.top-bar-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* ---------------------------------------------
   Contact Info
   --------------------------------------------- */
.top-bar-contact {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-bar-contact a {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    -webkit-transition: opacity 0.2s ease;
    transition: opacity 0.2s ease;
}

.top-bar-contact a:hover {
    opacity: 0.8;
}

.top-bar-contact i {
    font-size: 12px;
}

/* ---------------------------------------------
   Custom Text
   --------------------------------------------- */
.top-bar-text {
    font-size: inherit;
}

/* ---------------------------------------------
   Promo Text
   --------------------------------------------- */
.top-bar-promo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 500;
    -webkit-transition: opacity 0.2s ease;
    transition: opacity 0.2s ease;
}

.top-bar-promo:hover {
    opacity: 0.9;
}

.top-bar-promo i {
    font-size: 11px;
    -webkit-transition: transform 0.2s ease;
    transition: transform 0.2s ease;
}

.top-bar-promo:hover i {
    -webkit-transform: translateX(3px);
    transform: translateX(3px);
}

/* ---------------------------------------------
   Quick Links
   --------------------------------------------- */
.top-bar-links {
    display: flex;
    align-items: center;
    gap: 16px;
}

.top-bar-links a {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    font-size: inherit;
    -webkit-transition: opacity 0.2s ease;
    transition: opacity 0.2s ease;
}

.top-bar-links a:hover {
    opacity: 0.8;
}

.top-bar-links i {
    font-size: 12px;
}

/* ---------------------------------------------
   Social Links
   --------------------------------------------- */
.top-bar-social {
    display: flex;
    align-items: center;
    gap: 12px;
}

.top-bar-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    text-decoration: none;
    font-size: 12px;
    -webkit-transition: all 0.2s ease;
    transition: all 0.2s ease;
}

.top-bar-social a:hover {
    background: rgba(255, 255, 255, 0.2);
    -webkit-transform: translateY(-1px);
    transform: translateY(-1px);
}

/* =============================================
   Mobile Responsive
   ============================================= */
@media (max-width: 768px) {
    .site-top-bar.hide-on-mobile {
        display: none !important;
    }
    
    .top-bar-content {
        flex-direction: column;
        gap: 8px;
    }
    
    .top-bar-left,
    .top-bar-center,
    .top-bar-right {
        flex: none;
        width: 100%;
        justify-content: center;
    }
    
    .top-bar-contact {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }
    
    .top-bar-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }
}

@media (max-width: 576px) {
    .site-top-bar {
        padding: 6px 0;
        font-size: 12px;
    }
    
    .top-bar-contact span,
    .top-bar-links span {
        display: none;
    }
    
    .top-bar-contact a,
    .top-bar-links a {
        gap: 0;
    }
    
    .top-bar-contact i,
    .top-bar-links i {
        font-size: 14px;
    }
}