/* ===========================
   MODERN BOTTOM NAVIGATION - DARK WILDERNESS
   =========================== */

:root {
    --navbar-height: 80px;
    --bottom-nav-height: 65px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --z-navbar: 1002;
    --z-bottom-nav: 1001;
}

/* ===========================
   DESKTOP NAVBAR
   =========================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--navbar-height);
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    border-bottom: 2px solid var(--border-medium);
    z-index: var(--z-navbar);
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(250, 248, 245, 0.95);
    border-bottom: 2px solid var(--primary-green);
    box-shadow: var(--shadow-sm);
    height: 70px;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    height: 100%;
    margin: 0 auto;
    padding: 0 2rem;
}

.navbar-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition);
}

.navbar-logo svg {
    height: 28px;
    margin-right: 0.75rem;
    transition: var(--transition);
    fill: var(--primary-green);
}

.navbar-logo span {
    font-family: var(--font-mono);
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-primary);
    text-shadow: none;
}

.navbar-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    gap: 0.75rem;
}

.navbar-item {
    position: relative;
}

.navbar-link {
    display: flex;
    align-items: center;
    padding: 0.6rem 1.2rem;
    font-family: var(--font-mono);
    font-size: 0.95rem;
    font-weight: bold;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
    position: relative;
}

.navbar-link:hover {
    color: var(--primary-green);
    background: var(--light-green);
}

/* Corner bracket details for a tactical HUD feel */
.navbar-link::before,
.navbar-link::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    border: 2px solid var(--primary-green);
    opacity: 0;
    transition: all 0.3s ease;
}

.navbar-link::before {
    top: 4px;
    left: 4px;
    border-right: none;
    border-bottom: none;
}

.navbar-link::after {
    bottom: 4px;
    right: 4px;
    border-left: none;
    border-top: none;
}

.navbar-link:hover::before,
.navbar-link:hover::after {
    opacity: 1;
}

.navbar-link .link-title {
    display: inline;
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
    margin: 0;
}

/* ===========================
   MOBILE BOTTOM NAVIGATION
   =========================== */

.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--bottom-nav-height);
    background: rgba(250, 248, 245, 0.95);
    backdrop-filter: blur(12px);
    border-top: 2px solid var(--border-medium);
    z-index: var(--z-bottom-nav);
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.05);
}

.bottom-nav-container {
    display: flex;
    align-items: center;
    justify-content: space-around;
    height: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 0.5rem;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-secondary);
    transition: var(--transition);
    padding: 0.5rem;
    border-radius: 4px;
    min-width: 60px;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    user-select: none;
    outline: none;
    touch-action: manipulation;
}

@media (hover: hover) and (pointer: fine) {
    .bottom-nav-item:hover {
        color: var(--primary-green);
        background: var(--light-green);
    }
    
    .bottom-nav-item.primary:hover .nav-icon {
        background: var(--primary-green-dark);
        color: #ffffff;
    }
}

.bottom-nav-item:focus-visible {
    color: var(--primary-green);
    background: var(--light-green);
    outline: 2px solid var(--primary-green);
    outline-offset: 2px;
}

.bottom-nav-item.active {
    color: var(--primary-green);
}

.bottom-nav-item.active .nav-icon {
    background: var(--light-green);
    color: var(--primary-green);
    border: 2px solid var(--border-medium);
}

/* Primary item (Všechny výpravy) - highlighted */
.bottom-nav-item.primary {
    color: var(--primary-green);
}

.bottom-nav-item.primary .nav-icon {
    background: var(--primary-green);
    color: #ffffff;
    border: 2px solid var(--border-medium);
    box-shadow: var(--shadow-sm);
}

.nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    margin-bottom: 0.25rem;
    transition: var(--transition);
    background: transparent;
}

.nav-icon i {
    font-size: 20px;
    transition: var(--transition);
}

.primary-icon i {
    font-size: 24px;
}

.nav-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: bold;
    line-height: 1;
    text-align: center;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.bottom-nav-item:active {
    background: var(--light-green);
}

/* ===========================
   RESPONSIVE BEHAVIOR
   =========================== */

@media (max-width: 900px) {
    .navbar-menu {
        display: none;
    }
    
    .mobile-bottom-nav {
        display: block;
    }
    
    body {
        padding-bottom: var(--bottom-nav-height);
    }
    
    .navbar {
        height: 60px;
    }
    
    .navbar-container {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .bottom-nav-container {
        padding: 0 0.25rem;
    }
    
    .bottom-nav-item {
        min-width: 50px;
        padding: 0.375rem;
    }
    
    .nav-icon {
        width: 36px;
        height: 36px;
    }
    
    .nav-icon i {
        font-size: 18px;
    }
    
    .primary-icon i {
        font-size: 20px;
    }
    
    .nav-label {
        font-size: 0.65rem;
    }
}

.bottom-nav-item.current {
    color: var(--primary-green);
}

.bottom-nav-item.current .nav-icon {
    background: var(--light-green);
    color: var(--primary-green);
}

.mobile-bottom-nav * {
    -webkit-touch-callout: none;
    user-select: none;
}
