/* Navigation wrapper */
.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 0.5rem;
    flex-wrap: nowrap;
}

/* Styl pro Logo */
.brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-weight: bold;
    color: inherit;
    flex-shrink: 0;
    min-width: 0;
}

/* Nastavení velikosti loga */
.nav-logo {
    height: 40px;
    width: auto;
    display: block;
}

.logo-text {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

/* Hamburger menu button - viditelný pouze na mobilech */
.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 0.4rem;
    align-items: center;
    flex-shrink: 0;
    margin-left: auto;
}

.nav-toggle:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    width: 24px;
    height: 20px;
}

.hamburger__line {
    display: block;
    width: 100%;
    height: 2.5px;
    background-color: var(--text-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

/* Seznam odkazů */
.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    padding: 0;
    margin: 0;
}

.nav-item {
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-color);
    transition: color 0.3s ease;
    white-space: nowrap;
}

.nav-item:hover {
    color: var(--primary-color);
}

/* Styl pro logout/login formulář a tlačítko */
.logout-form {
    margin: 0;
    display: inline-block;
}

.btn--logout {
    background-color: var(--primary-color);
    color: white;
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    padding: 6px 12px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    font-size: 0.85rem;
}

.btn--logout:hover {
    background-color: transparent;
    color: var(--primary-color);
}

/* Mobile menu styles - tablety (900px a méně) */
@media (max-width: 900px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--bg-white);
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        box-shadow: var(--shadow-subtle);
        max-height: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        transition: max-height 0.3s ease;
        padding: 0;
        margin: 0;
        z-index: 999;
    }

    .nav-links--open {
        max-height: calc(100vh - 70px);
    }

    .nav-links li {
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        width: 100%;
        margin: 0;
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-item {
        display: block;
        padding: 1rem 1.5rem;
        font-size: 0.9rem;
        white-space: normal;
    }

    .nav-item:hover {
        background-color: rgba(219, 39, 119, 0.05);
    }

    .nav-wrapper {
        position: relative;
    }
}

/* Menší tablety a telefony */
@media (max-width: 640px) {
    .nav-toggle {
        padding: 0.4rem;
    }

    .hamburger {
        width: 20px;
        height: 18px;
    }

    .hamburger__line {
        height: 2px;
    }

    .logo-text {
        font-size: 1.05rem;
    }

    .nav-item {
        padding: 0.9rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* User Info Styling in Navbar */
.nav-user-info {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-color);
    font-weight: 500;
    opacity: 0.85;
}

.nav-username {
    font-weight: 700;
    color: var(--primary-color);
    border-bottom: 2px solid rgba(219, 39, 119, 0.2);
    padding-bottom: 2px;
}

@media (max-width: 900px) {
    .nav-user-info {
        display: block;
        padding: 1rem 1.5rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .nav-username {
        border-bottom: none;
        padding-bottom: 0;
    }
}

