/* Navigation Styles */

/* Smart Sticky Nav */
nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

nav.nav-hidden {
    transform: translateY(-100%);
}

nav.nav-scrolled {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.95);
}

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 0;
    font-size: 0.9rem;
    color: #6B7280;
}

.breadcrumb-item {
    transition: color 0.2s;
    text-decoration: none;
}

.breadcrumb-item:hover {
    color: #3B82F6;
}

.breadcrumb-search-separator {
    color: #D1D5DB;
}

.breadcrumb-item.active {
    color: #111827;
    font-weight: 500;
    pointer-events: none;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.mobile-menu-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 280px;
    background: white;
    z-index: 1001;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -4px 0 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    padding: 24px;
}

.mobile-menu.open {
    transform: translateX(0);
}

.mobile-menu-item {
    padding: 12px 16px;
    border-radius: 8px;
    color: #374151;
    font-weight: 500;
    transition: background 0.2s;
}

.mobile-menu-item:hover {
    background: #F3F4F6;
    color: #3B82F6;
}

/* Hamburger Button */
.hamburger-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    transition: background 0.2s;
    cursor: pointer;
}

.hamburger-btn:hover {
    background: #F3F4F6;
}

.hamburger-line {
    width: 20px;
    height: 2px;
    background: #374151;
    margin: 3px 0;
    transition: all 0.3s;
    border-radius: 2px;
}

.hamburger-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.hamburger-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* Keyboard Feedback */
.key-feedback {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 20px 30px;
    border-radius: 12px;
    font-size: 48px;
    font-weight: bold;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 10000;
    pointer-events: none;
    backdrop-filter: blur(4px);
}

.key-feedback.show {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.shortcuts-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    backdrop-filter: blur(4px);
}

.shortcuts-modal.show {
    opacity: 1;
    pointer-events: auto;
}

.shortcuts-content {
    background: white;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    width: 90%;
    max-width: 400px;
    transform: scale(0.95);
    transition: transform 0.3s;
}

.shortcuts-modal.show .shortcuts-content {
    transform: scale(1);
}

kbd {
    display: inline-block;
    padding: 2px 6px;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.85em;
    box-shadow: 0 2px 0 #d1d5db;
    margin-right: 8px;
    min-width: 24px;
    text-align: center;
}