/**
 * Top Bar Styles
 *
 * @package Napule_Restaurant
 * @since 1.0.0
 */

/* Top Bar */
.top-bar {
    background-color: var(--color-primary);
    color: white;
    font-size: 0.875rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: calc(var(--z-fixed) + 1);
    transition: transform 0.3s ease;
    line-height: 1;
}

/* Top Bar verstecken beim Scrollen */
.top-bar.hidden {
    transform: translateY(-100%);
}

.top-bar-content {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.top-bar-left,
.top-bar-right {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.top-bar-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.top-bar-item svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.top-bar-item:hover {
    color: var(--color-accent);
}

.top-bar-item strong {
    font-weight: 600;
}

/* Header Abstand wenn Top Bar sichtbar */
body {
    padding-top: 0; /* Kein Padding nötig */
}

/* Wenn Top Bar versteckt ist */
body.top-bar-hidden {
    padding-top: 0;
}

/* Responsive */
@media (max-width: 968px) {
    .top-bar-content {
        gap: 0.5rem;
        padding-top: 0.4rem;
        padding-bottom: 0.4rem;
    }

    .top-bar-left,
    .top-bar-right {
        gap: 1rem;
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .top-bar-content {
        gap: 0.25rem;
        padding-top: 0.3rem;
        padding-bottom: 0.3rem;
    }
    
    .top-bar-item {
        font-size: 0.75rem;
        gap: 0.25rem;
    }

    .top-bar-item svg {
        width: 14px;
        height: 14px;
    }

    .top-bar-left,
    .top-bar-right {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
}
