/* Solenis Top Bar Styles */
#solenis-top-bar {
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 999999;
    padding: 12px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.4;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.top-bar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.top-bar-left {
    flex: 0 0 auto;
    min-width: 0;
}

.top-bar-left-text {
    font-weight: 600;
    line-height: 1.2;
    color: #00b684;
}

.top-bar-center {
    flex: 1 1 auto;
    text-align: center;
    min-width: 0;
}

.top-bar-center-text {
    font-weight: 500;
    font-size: 15px;
    text-align: left;
}

.top-bar-right {
    flex: 0 0 auto;
    min-width: 0;
}

.top-bar-link {
    color: #ffffff !important;
    text-decoration: underline;
    text-decoration-color: #2c5bff;
    font-weight: 500;
    transition: opacity 0.2s ease;
    white-space: nowrap;
}

.top-bar-link:hover {
    opacity: 0.8;
    text-decoration: underline;
    text-decoration-color: #2c5bff;
}

.top-bar-arrow {
    color: #00b684;
    margin-left: 5px;
    text-decoration: none !important;
    display: inline-block;
}

/* Adjust headers with top-0 positioning to account for top bar */
body.has-solenis-topbar header[class*="top-0"],
body.has-solenis-topbar header.top-0 {
    top: 76px !important;
}

/* Adjust sticky headers when sticky top bar is enabled */
body.has-sticky-topbar .sticky-header,
body.has-sticky-topbar .header-sticky,
body.has-sticky-topbar .is-sticky,
body.has-sticky-topbar .fixed-header {
    top: 57px !important;
}

/* Sticky positioning when scrolling (not initially) */
#solenis-top-bar.sticky-topbar.scrolled {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999999;
}

/* Responsive Design */
@media (max-width: 768px) {
    #solenis-top-bar {
        padding: 10px 0;
        font-size: 13px;
    }
    
    .top-bar-inner {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .top-bar-left,
    .top-bar-right {
        display: none;
    }
    
    .top-bar-center {
        flex: none;
        text-align: center;
    }
    
    .top-bar-center-text {
        font-size: 14px;
    }
    
    /* Adjust headers with top-0 positioning for mobile */
    body.has-solenis-topbar header[class*="top-0"],
    body.has-solenis-topbar header.top-0 {
        top: 76px !important;
    }
    
    /* Adjust sticky headers when sticky top bar is enabled - mobile */
    body.has-sticky-topbar .sticky-header,
    body.has-sticky-topbar .header-sticky,
    body.has-sticky-topbar .is-sticky,
    body.has-sticky-topbar .fixed-header {
        top: 40px !important;
    }
    
    /* Mobile sticky adjustments when scrolled */
    body.has-solenis-topbar.has-sticky-topbar.scrolled {
        padding-top: 0;
    }
    
    body.admin-bar.has-solenis-topbar.has-sticky-topbar.scrolled {
        padding-top: 0;
    }
    
    html.wp-toolbar #solenis-top-bar.sticky-topbar.scrolled {
        top: 0;
    }
}

@media (max-width: 480px) {
    #solenis-top-bar {
        padding: 8px 0;
        font-size: 12px;
    }
    
    .top-bar-inner {
        padding: 0 15px;
        gap: 6px;
    }
    
    .top-bar-left-text {
        font-size: 12px;
    }
    
    .top-bar-center-text {
        font-size: 13px;
    }
    
    /* Adjust headers with top-0 positioning for small mobile */
    body.has-solenis-topbar header[class*="top-0"],
    body.has-solenis-topbar header.top-0 {
        top: 81px !important;
    }
    
    /* Adjust sticky headers when sticky top bar is enabled - small mobile */
    body.has-sticky-topbar .sticky-header,
    body.has-sticky-topbar .header-sticky,
    body.has-sticky-topbar .is-sticky,
    body.has-sticky-topbar .fixed-header {
        top: 33px !important;
    }
    
    /* Small mobile sticky adjustments when scrolled */
    body.has-solenis-topbar.has-sticky-topbar.scrolled {
        padding-top: 0;
    }
    
    body.admin-bar.has-solenis-topbar.has-sticky-topbar.scrolled {
        padding-top: 0;
    }
}

/* Print styles */
@media print {
    #solenis-top-bar {
        display: none !important;
    }
}
