/* Navigation Styles */
.navigation {
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: var(--spacing-base) 0;
    position: sticky;
    top: 140px;
    z-index: 90;
}

.nav-controls {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    align-items: center;
    gap: var(--spacing-lg);
}

.nav-controls .view-toggles {
    justify-self: center;
}

/* Theme Toggle */
.theme-toggle {
    display: flex;
    justify-content: flex-start;
}

.theme-btn {
    background: rgba(102, 126, 234, 0.1);
    border: 2px solid transparent;
    border-radius: var(--radius-full);
    width: 48px;
    height: 48px;
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.theme-btn:hover {
    background: rgba(102, 126, 234, 0.2);
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.theme-btn:active {
    transform: scale(0.95);
}

.theme-icon {
    font-size: 1.5rem;
    transition: all var(--transition-base);
    display: block;
}

/* View Toggles */
.view-toggles {
    display: inline-flex;
    gap: var(--spacing-sm);
    background: rgba(102, 126, 234, 0.1);
    padding: var(--spacing-xs);
    border-radius: var(--radius-lg);
}

.view-btn {
    padding: var(--spacing-sm) var(--spacing-lg);
    border: none;
    background: transparent;
    color: var(--primary-color);
    font-weight: 500;
    border-radius: var(--radius-base);
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-family: var(--font-family);
}

.view-btn:hover {
    background: rgba(102, 126, 234, 0.1);
}

.view-btn.active {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-light);
}

/* Filters */
.filters {
    display: flex;
    gap: var(--spacing-base);
    align-items: center;
    justify-content: flex-end;
}

.collapse-btn {
    padding: var(--spacing-sm) var(--spacing-base);
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-base);
    background: transparent;
    color: var(--primary-color);
    font-size: var(--font-size-base);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-base);
    font-family: var(--font-family);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    white-space: nowrap;
}

.collapse-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

.collapse-btn:active {
    transform: translateY(0);
}

.collapse-btn i {
    font-size: 0.9rem;
    transition: all var(--transition-base);
}

.collapse-btn i.fa-expand-alt {
    transform: scale(1.1);
}

.collapse-btn i.fa-compress-alt {
    transform: scale(1);
}

#search-input {
    padding: var(--spacing-sm) var(--spacing-base);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-base);
    font-size: var(--font-size-base);
    min-width: 200px;
    transition: all var(--transition-base);
    font-family: var(--font-family);
}

#search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

#category-filter {
    padding: var(--spacing-sm) var(--spacing-base);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-base);
    font-size: var(--font-size-base);
    background: var(--background-primary);
    cursor: pointer;
    transition: border-color var(--transition-base);
    font-family: var(--font-family);
}

#category-filter:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Dark mode styles for navigation */
body[data-theme="dark"] .navigation {
    background: rgba(26, 26, 26, 0.95) !important;
    border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}

body[data-theme="dark"] .theme-btn {
    background: rgba(255, 255, 255, 0.1) !important;
}

body[data-theme="dark"] .theme-btn:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

body[data-theme="dark"] .view-toggles {
    background: rgba(255, 255, 255, 0.1) !important;
}

body[data-theme="dark"] .view-btn {
    color: rgba(255, 255, 255, 0.8) !important;
}

body[data-theme="dark"] .view-btn:hover {
    background: rgba(255, 255, 255, 0.1) !important;
}

body[data-theme="dark"] .view-btn.active {
    background: var(--primary-color) !important;
    color: white !important;
}

body[data-theme="dark"] .collapse-btn {
    border-color: rgba(255, 255, 255, 0.6) !important;
    color: rgba(255, 255, 255, 0.8) !important;
}

body[data-theme="dark"] .collapse-btn:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.8) !important;
    color: white !important;
}

/* Light mode styles for navigation */
body[data-theme="light"] .navigation {
    background: rgba(255, 255, 255, 0.95) !important;
    border-bottom-color: rgba(255, 255, 255, 0.2) !important;
}

body[data-theme="light"] .theme-btn {
    background: rgba(102, 126, 234, 0.1) !important;
}

body[data-theme="light"] .theme-btn:hover {
    background: rgba(102, 126, 234, 0.2) !important;
    border-color: var(--primary-color) !important;
}

body[data-theme="light"] .view-toggles {
    background: rgba(102, 126, 234, 0.1) !important;
}

body[data-theme="light"] .view-btn {
    color: var(--primary-color) !important;
}

body[data-theme="light"] .view-btn:hover {
    background: rgba(102, 126, 234, 0.1) !important;
}

body[data-theme="light"] .view-btn.active {
    background: var(--primary-color) !important;
    color: white !important;
}

/* Responsive Navigation */
@media (max-width: 768px) {
    .nav-controls {
        grid-template-columns: 1fr;
        gap: var(--spacing-base);
        text-align: center;
    }
    
    .theme-toggle {
        justify-content: center;
        order: 1;
    }
    
    .view-toggles {
        width: 100%;
        justify-content: center;
        order: 2;
    }
    
    .filters {
        width: 100%;
        flex-direction: column;
        gap: var(--spacing-sm);
        justify-content: center;
        order: 3;
    }
    
    .collapse-btn {
        width: 100%;
        justify-content: center;
        font-size: var(--font-size-sm);
        padding: var(--spacing-sm);
    }
    
    #search-input,
    #category-filter {
        width: 100%;
        min-width: auto;
    }
} 