/* Fab Top Bar - Frontend Styles */

#fab-top-bar {
    width: 100%;
    padding: 12px 20px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999999;
    box-sizing: border-box;
    line-height: 1.5;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Body με ενεργό top bar */
body.fab-top-bar-active {
    transition: padding-top 0.3s ease;
}

/* Εξασφάλιση ότι τα child elements σέβονται το body padding */
body.fab-top-bar-active > *:not(#fab-top-bar) {
    position: relative;
}

/* Reset margins που μπορεί να προκαλούν overlap */
body.fab-top-bar-active > header:first-of-type,
body.fab-top-bar-active > .header:first-of-type,
body.fab-top-bar-active > main:first-of-type,
body.fab-top-bar-active > #page,
body.fab-top-bar-active > .site,
body.fab-top-bar-active > .site-wrapper,
body.fab-top-bar-active > #wrapper,
body.fab-top-bar-active > .wrapper {
    margin-top: 0 !important;
}

.fab-top-bar-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-right: 40px;
}

.fab-top-bar-message {
    display: inline-block;
    text-align: center;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.fab-top-bar-link {
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.fab-top-bar-link:hover .fab-top-bar-message {
    opacity: 0.8;
}

.fab-top-bar-close {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    padding: 5px 10px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.fab-top-bar-close:hover {
    opacity: 1;
}

.fab-top-bar-close:focus {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

/* Responsive */
@media (max-width: 768px) {
    #fab-top-bar {
        padding: 10px 15px;
    }
    
    .fab-top-bar-container {
        padding-right: 35px;
    }
    
    .fab-top-bar-message {
        font-size: 13px !important;
    }
    
    .fab-top-bar-close {
        font-size: 20px;
        right: 5px;
    }
}

@media (max-width: 480px) {
    #fab-top-bar {
        padding: 8px 10px;
    }
    
    .fab-top-bar-message {
        font-size: 12px !important;
    }
}

/* Animation για το κλείσιμο */
#fab-top-bar.closing {
    animation: slideUp 0.3s ease forwards;
}

@keyframes slideUp {
    to {
        transform: translateY(-100%);
        opacity: 0;
    }
}
