/* Top Bar - Always Visible - Palce Lizać Theme */

.top-bar {
    background: linear-gradient(135deg, #59983E 0%, #4a7f33 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    font-size: 13px;
    position: relative;
    z-index: 100;
}

.top-bar-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 12px 30px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 30px;
    align-items: center;
}

/* Two column layout when center is empty */
.top-bar-container:not(:has(.top-bar-center)) {
    grid-template-columns: 1fr 1fr;
}

/* Left Column - Contact Info */
.top-bar-left {
    display: flex;
    align-items: center;
    gap: 25px;
}

.top-bar-contact {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
}

.top-bar-contact:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.top-bar-contact svg {
    flex-shrink: 0;
    stroke: currentColor;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

/* Center Column - Optional Text */
.top-bar-center {
    text-align: center;
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.top-bar-center svg {
    flex-shrink: 0;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

/* Right Column - Navigation Links */
.top-bar-right {
    display: flex;
    justify-content: flex-end;
}

.top-bar-nav {
    display: flex;
    align-items: center;
    gap: 15px;
}

.top-bar-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
}

.top-bar-link:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.top-bar-link svg {
    flex-shrink: 0;
    stroke: currentColor;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

/* Responsive Design - Tablet and below show icons only */
@media (max-width: 1024px) {
    .top-bar {
        background: linear-gradient(135deg, #59983E 0%, #4a7f33 100%);
    }

    .top-bar-container {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        padding: 12px 15px;
        justify-content: center;
        align-items: center;
    }

    .top-bar-left {
        gap: 12px;
        order: 1;
    }

    .top-bar-right {
        order: 2;
    }

    .top-bar-center {
        order: 3;
        width: 100%;
        margin-top: 6px;
        font-size: 13px;
    }

    .top-bar-center svg {
        width: 14px;
        height: 14px;
    }

    .top-bar-nav {
        justify-content: center;
        gap: 12px;
    }

    .top-bar-contact span,
    .top-bar-link span {
        display: none;
    }

    /* Show icons only on tablet and mobile */
    .top-bar-contact,
    .top-bar-link {
        padding: 8px;
        min-width: 36px;
        justify-content: center;
    }

    .top-bar-contact svg,
    .top-bar-link svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .top-bar {
        font-size: 11px;
    }

    .top-bar-container {
        padding: 10px;
        gap: 8px;
    }

    .top-bar-left {
        gap: 8px;
    }

    .top-bar-nav {
        gap: 8px;
    }

    .top-bar-contact,
    .top-bar-link {
        padding: 7px;
        min-width: 32px;
    }

    .top-bar-contact svg,
    .top-bar-link svg {
        width: 16px;
        height: 16px;
    }

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

    .top-bar-center svg {
        width: 13px;
        height: 13px;
    }
}
