/* Navigation-specific styles */

.nav-container-header {
    position: sticky;
    top: 0;
    /* background: white; */
    z-index: 100;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.nav-search {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 0.9em;
    outline: none;
    transition: border-color 0.3s ease;
}

.nav-search:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.nav-search::placeholder {
    color: #999;
    font-style: italic;
}

/* Navigation categories */
.nav-category {
    margin-bottom: 25px;
}

.nav-category-header {
    font-size: 0.9em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #7f8c8d;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid #ecf0f1;
}

/* Enhanced navigation items */
.nav-item-enhanced {
    position: relative;
    transition: all 0.3s ease;
}

.nav-item-enhanced:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.nav-item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    font-size: 0.8em;
    color: #6c757d;
}

.nav-item-wordcount {
    background: #e3f2fd;
    color: #1976d2;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.7em;
}

.nav-item-status {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #28a745;
}

.nav-item-status.draft {
    background: #ffc107;
}

.nav-item-status.archived {
    background: #6c757d;
}

/* Navigation filters */
.nav-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.nav-filter-btn {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-filter-btn:hover {
    background: #e9ecef;
}

.nav-filter-btn.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

/* Quick actions */
.nav-quick-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
}

.nav-quick-btn {
    flex: 1;
    background: #28a745;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.8em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.nav-quick-btn:hover {
    background: #218838;
}

.nav-quick-btn.secondary {
    background: #6c757d;
}

.nav-quick-btn.secondary:hover {
    background: #5a6268;
}

/* Navigation animations */
@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.nav-item-animate {
    animation: fadeInSlide 0.3s ease forwards;
}

.nav-item-animate:nth-child(2) { animation-delay: 0.1s; }
.nav-item-animate:nth-child(3) { animation-delay: 0.2s; }
.nav-item-animate:nth-child(4) { animation-delay: 0.3s; }
.nav-item-animate:nth-child(5) { animation-delay: 0.4s; }

/* Collapsible navigation sections */
.nav-section-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 8px 0;
    user-select: none;
}

.nav-section-toggle::after {
    content: '▼';
    font-size: 0.8em;
    transition: transform 0.3s ease;
}

.nav-section-toggle.collapsed::after {
    transform: rotate(-90deg);
}

.nav-section-content {
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.nav-section-content.collapsed {
    max-height: 0;
}

/* Navigation keyboard shortcuts display */
.nav-shortcuts {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    font-size: 0.7em;
    color: #6c757d;
    border-top: 1px solid #dee2e6;
    padding-top: 10px;
}

.nav-shortcut {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3px;
}

.nav-shortcut-key {
    background: #f8f9fa;
    padding: 1px 4px;
    border-radius: 3px;
    font-family: monospace;
    font-size: 0.9em;
}

/* Mobile navigation enhancements */
@media (max-width: 768px) {
    .nav-filters {
        overflow-x: auto;
        white-space: nowrap;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .nav-filters::-webkit-scrollbar {
        display: none;
    }
    
    .nav-filter-btn {
        white-space: nowrap;
    }
    
    .nav-shortcuts {
        display: none;
    }
    
    .nav-item-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}
