/* =============================================== */
/* navbar.css - Complete Enhanced Navbar Styles */
/* =============================================== */

/* ============ CSS VARIABLES ============ */
:root {
    --nav-height: 64px;
    --sidebar-width: 260px;
    --sidebar-collapsed: 72px;
    
    /* Light Theme Colors */
    --color-white: #ffffff;
    --color-gray-50: #f9fafb;
    --color-gray-100: #f3f4f6;
    --color-gray-200: #e5e7eb;
    --color-gray-300: #d1d5db;
    --color-gray-400: #9ca3af;
    --color-gray-500: #6b7280;
    --color-gray-600: #4b5563;
    --color-gray-700: #374151;
    --color-gray-800: #1f2937;
    --color-gray-900: #111827;
    
    /* Brand Colors */
    --primary-indigo: #6366f1;
    --primary-purple: #8b5cf6;
    --primary-cyan: #06b6d4;
    --primary-pink: #ec4899;
    --success-green: #10b981;
    --color-success: #10b981;
    --warning-yellow: #f59e0b;
    --color-warning: #f59e0b;
    --danger-red: #ef4444;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-ai: linear-gradient(135deg, #818CF8 0%, #C084FC 100%);
    --gradient-success: linear-gradient(135deg, #10b981 0%, #14b8a6 100%);
    --gradient-danger: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Font */
    --font-mono: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', monospace;
}

/* Dark Theme Variables */
[data-theme="dark"] {
    --color-white: #0f172a;
    --color-gray-50: #1e293b;
    --color-gray-100: #334155;
    --color-gray-200: #475569;
    --color-gray-300: #64748b;
    --color-gray-400: #94a3b8;
    --color-gray-500: #cbd5e1;
    --color-gray-600: #e2e8f0;
    --color-gray-700: #f1f5f9;
    --color-gray-800: #f8fafc;
    --color-gray-900: #ffffff;
    
    --dark-surface: #1e293b;
    --dark-border: #334155;
    --dark-bg: #0f172a;
}

/* ============ NAVBAR BASE ============ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--color-gray-200);
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all var(--transition-base);
}

[data-theme="dark"] .navbar {
    background: rgba(15, 23, 42, 0.95);
    border-bottom-color: rgba(51, 65, 85, 0.5);
}

.navbar-container {
    height: 100%;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    max-width: 100%;
}

/* ============ NAVBAR SECTIONS ============ */
.navbar-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.navbar-center {
    flex: 1;
    max-width: 580px;
    margin: 0 auto;
    padding: 0 1rem;
}

.navbar-center-desktop {
    display: flex;
}

.navbar-center-mobile {
    display: none;
}

.mobile-search-trigger {
    display: none;
}

/* Desktop/Mobile Only Classes */
.desktop-only {
    display: flex;
}

.mobile-only {
    display: none;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

/* ============ LOGO ============ */
.navbar-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: 0.75rem;
    transition: all var(--transition-fast);
}

.navbar-brand:hover {
    background: rgba(99, 102, 241, 0.05);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.logo-icon {
    width: 66px;
    height: 36px;
    transition: transform var(--transition-base);
}

.logo-icon-small {
    width: 50px;
    height: 28px;
    transition: transform var(--transition-base);
}

.navbar-brand:hover .logo-icon {
    transform: scale(1.05) rotate(-2deg);
}

.logo-text {
    font-size: 1.375rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.025em;
}

/* ============ ENHANCED SEARCH SYSTEM ============ */
.search-wrapper {
    width: 100%;
    max-width: 580px;
    margin: 0 auto;
}

.search-container {
    position: relative;
}

.search-box {
    width: 100%;
    height: 44px;
    display: flex;
    align-items: center;
    background: rgba(248, 250, 252, 1);
    border: 2px solid transparent;
    border-radius: 14px;
    padding: 0 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

[data-theme="dark"] .search-box {
    background: rgba(30, 41, 59, 0.8);
}

.search-box:focus-within {
    background: white;
    border-color: var(--primary-indigo);
    box-shadow: 
        0 0 0 4px rgba(99, 102, 241, 0.08),
        0 12px 48px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

[data-theme="dark"] .search-box:focus-within {
    background: rgba(15, 23, 42, 1);
    box-shadow: 
        0 0 0 4px rgba(99, 102, 241, 0.15),
        0 12px 48px rgba(0, 0, 0, 0.5);
}

.search-icon {
    color: var(--color-gray-400);
    margin-right: 10px;
    transition: color var(--transition-fast);
}

.search-box:focus-within .search-icon {
    color: var(--primary-indigo);
}

.search-input {
    flex: 1;
    border: none;
    background: none;
    outline: none;
    font-size: 0.925rem;
    color: var(--color-gray-900);
    padding: 0 12px;
}

[data-theme="dark"] .search-input {
    color: var(--color-gray-100);
}

.search-input::placeholder {
    color: var(--color-gray-400);
}

/* Search Shortcuts */
.search-shortcuts {
    display: flex;
    align-items: center;
    margin-right: 8px;
}

.search-shortcuts kbd {
    padding: 3px 6px;
    background: var(--color-gray-100);
    border: 1px solid var(--color-gray-300);
    border-radius: 4px;
    font-size: 0.75rem;
    font-family: var(--font-mono);
    color: var(--color-gray-600);
}

[data-theme="dark"] .search-shortcuts kbd {
    background: rgba(51, 65, 85, 0.5);
    border-color: var(--dark-border);
    color: var(--color-gray-400);
}

.search-box:focus-within .search-shortcuts {
    display: none;
}

/* AI Button in Search */
.search-ai-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    background: var(--gradient-ai);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-ai-btn:hover {
    transform: scale(1.05);
}

/* Enhanced Search Dropdown */
.search-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: white;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 20px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(99, 102, 241, 0.05);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.98);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 520px;
    overflow: hidden;
    z-index: 1000;
}

[data-theme="dark"] .search-dropdown {
    background: #1E293B;
    border-color: rgba(51, 65, 85, 0.5);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.search-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Mobile search dropdown opens upward */
.search-dropdown-mobile {
    bottom: calc(100% + 8px);
    top: auto;
}

/* Search Results Container */
.search-results-container {
    padding: 12px;
    max-height: 500px;
    overflow-y: auto;
}

.search-results-container::-webkit-scrollbar {
    width: 6px;
}

.search-results-container::-webkit-scrollbar-track {
    background: transparent;
}

.search-results-container::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}

[data-theme="dark"] .search-results-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
}

/* Search Sections */
.search-section,
.nav-search-section {
    margin-bottom: 20px;
}

.search-section-header,
.nav-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding: 0 4px;
}

.search-section-title,
.nav-section-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 6px;
}

[data-theme="dark"] .search-section-title,
[data-theme="dark"] .nav-section-title {
    color: #94a3b8;
}

.search-section-title i,
.nav-section-title i {
    font-size: 14px;
}

.nav-see-all,
.see-all {
    font-size: 0.75rem;
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
}

.nav-see-all:hover,
.see-all:hover {
    opacity: 0.8;
}

/* Search Result Items */
.search-result {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    margin-bottom: 6px;
    background: rgba(248, 250, 252, 0.5);
    border: 1px solid transparent;
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

[data-theme="dark"] .search-result {
    background: rgba(30, 41, 59, 0.3);
}

.search-result:hover {
    background: white;
    border-color: rgba(99, 102, 241, 0.2);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .search-result:hover {
    background: rgba(51, 65, 85, 0.5);
    border-color: rgba(99, 102, 241, 0.3);
}

.search-result-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 12px;
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .search-result-icon {
    background: rgba(30, 41, 59, 0.8);
}

.search-result-content {
    flex: 1;
    min-width: 0;
}

.search-result-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-gray-900);
    margin-bottom: 3px;
}

[data-theme="dark"] .search-result-title {
    color: var(--color-gray-100);
}

.search-result-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.8125rem;
    color: var(--color-gray-500);
}

/* Featured Grid */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 8px;
}

.featured-card {
    background: white;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.2s ease;
}

[data-theme="dark"] .featured-card {
    background: rgba(30, 41, 59, 0.3);
    border-color: rgba(51, 65, 85, 0.5);
}

.featured-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-indigo);
}

.featured-visual {
    width: 100%;
    height: 100px;
    overflow: hidden;
    position: relative;
}

.featured-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-gradient {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
}

.featured-content {
    padding: 12px;
}

.featured-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-gray-900);
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

[data-theme="dark"] .featured-title {
    color: var(--color-gray-100);
}

.featured-meta {
    display: flex;
    gap: 12px;
    font-size: 0.75rem;
    color: var(--color-gray-500);
}

.featured-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.featured-meta i {
    font-size: 11px;
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 8px;
}

.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 8px;
    background: rgba(248, 250, 252, 0.8);
    border: 1px solid rgba(226, 232, 240, 0.5);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.75rem;
    color: var(--color-gray-600);
    font-weight: 500;
    border: none;
}

[data-theme="dark"] .quick-action-btn {
    background: rgba(30, 41, 59, 0.3);
    border-color: rgba(51, 65, 85, 0.5);
    color: var(--color-gray-400);
}

.quick-action-btn:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .quick-action-btn:hover {
    background: rgba(51, 65, 85, 0.5);
}

.quick-action-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: white;
    font-size: 16px;
}

.quick-action-icon.create {
    background: linear-gradient(135deg, #06B6D4, #0EA5E9);
}

.quick-action-icon.folder {
    background: linear-gradient(135deg, #F59E0B, #F97316);
}

.quick-action-icon.import {
    background: linear-gradient(135deg, #10B981, #14B8A6);
}

.quick-action-icon.ai {
    background: linear-gradient(135deg, #8B5CF6, #A855F7);
}

/* Recent Searches */
.recent-searches {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 8px;
}

.recent-search-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 20px;
    font-size: 0.8125rem;
    color: var(--primary-indigo);
    text-decoration: none;
    transition: all 0.2s;
}

.recent-search-pill:hover {
    background: rgba(99, 102, 241, 0.15);
    transform: scale(1.05);
}

.recent-search-pill i {
    font-size: 12px;
    opacity: 0.7;
}

.clear-recent {
    background: none;
    border: none;
    color: var(--color-gray-400);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s;
}

.clear-recent:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #EF4444;
}

/* Flashcard Results with Images */
.nav-cards-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-card-result {
    display: flex;
    gap: 12px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s;
}

[data-theme="dark"] .nav-card-result {
    background: rgba(30, 41, 59, 0.3);
}

.nav-card-result:hover {
    background: white;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .nav-card-result:hover {
    background: rgba(51, 65, 85, 0.5);
}

.nav-card-visual {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.nav-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nav-card-gradient {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.nav-card-gradient i {
    font-size: 24px;
    opacity: 0.9;
}

.nav-card-count {
    position: absolute;
    bottom: 4px;
    right: 4px;
    padding: 2px 6px;
    background: rgba(0, 0, 0, 0.75);
    color: white;
    border-radius: 4px;
    font-size: 0.625rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 2px;
}

.nav-card-count i {
    font-size: 8px;
}

.nav-card-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.nav-card-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

[data-theme="dark"] .nav-card-title {
    color: #f1f5f9;
}

.nav-card-title mark {
    background: rgba(251, 191, 36, 0.3);
    color: inherit;
    padding: 0 2px;
    border-radius: 2px;
}

.nav-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.75rem;
    color: #64748b;
}

.nav-card-author {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-card-author img {
    width: 16px;
    height: 16px;
    border-radius: 4px;
}

.nav-author-default {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.625rem;
    font-weight: 600;
}

.nav-card-stats {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-card-stats span {
    display: flex;
    align-items: center;
    gap: 3px;
}

.nav-card-stats i {
    font-size: 10px;
}

/* Folder Results */
.nav-folders-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-folder-result {
    display: flex;
    gap: 12px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s;
}

[data-theme="dark"] .nav-folder-result {
    background: rgba(30, 41, 59, 0.3);
}

.nav-folder-result:hover {
    background: white;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .nav-folder-result:hover {
    background: rgba(51, 65, 85, 0.5);
}

.nav-folder-visual {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.nav-spotify-grid {
    width: 100%;
    height: 100%;
    display: grid;
    gap: 1px;
    background: rgba(0, 0, 0, 0.1);
}

.nav-spotify-grid[data-count="1"] {
    grid-template-columns: 1fr;
}

.nav-spotify-grid[data-count="2"] {
    grid-template-columns: 1fr 1fr;
}

.nav-spotify-grid[data-count="3"] {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
}

.nav-spotify-grid[data-count="3"] .nav-grid-img:first-child {
    grid-column: 1 / -1;
}

.nav-spotify-grid[data-count="4"] {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
}

.nav-grid-img {
    overflow: hidden;
    background: #e2e8f0;
}

.nav-grid-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nav-folder-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.nav-folder-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.nav-folder-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

[data-theme="dark"] .nav-folder-title {
    color: #f1f5f9;
}

.nav-pin {
    color: #f59e0b;
    font-size: 12px;
}

.nav-folder-meta {
    display: flex;
    gap: 12px;
    font-size: 0.75rem;
    color: #64748b;
}

.nav-folder-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-folder-meta i {
    font-size: 10px;
}

/* User Results */
.nav-users-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-user-result {
    display: flex;
    gap: 12px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s;
}

[data-theme="dark"] .nav-user-result {
    background: rgba(30, 41, 59, 0.3);
}

.nav-user-result:hover {
    background: white;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .nav-user-result:hover {
    background: rgba(51, 65, 85, 0.5);
}

.nav-user-avatar {
    position: relative;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.nav-user-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    object-fit: cover;
}

.nav-avatar-default {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.nav-level-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    padding: 1px 4px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: white;
    border-radius: 4px;
    font-size: 0.625rem;
    font-weight: 700;
    border: 2px solid white;
}

[data-theme="dark"] .nav-level-badge {
    border-color: #1E293B;
}

.nav-user-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.nav-user-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 4px;
}

[data-theme="dark"] .nav-user-name {
    color: #f1f5f9;
}

.nav-verified {
    color: #3b82f6;
    font-size: 12px;
}

.nav-user-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: #64748b;
}

.nav-username {
    font-weight: 500;
}

.nav-followers {
    display: flex;
    align-items: center;
    gap: 3px;
}

.nav-followers i {
    font-size: 10px;
}

/* Search Footer */
.nav-search-footer {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
}

[data-theme="dark"] .nav-search-footer {
    border-top-color: #334155;
}

.nav-view-all {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: #f0f9ff;
    border-radius: 8px;
    text-decoration: none;
    color: #3b82f6;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
}

[data-theme="dark"] .nav-view-all {
    background: rgba(59, 130, 246, 0.1);
}

.nav-view-all:hover {
    background: #dbeafe;
}

[data-theme="dark"] .nav-view-all:hover {
    background: rgba(59, 130, 246, 0.2);
}

/* No Results */
.nav-no-results {
    padding: 32px 20px;
    text-align: center;
}

.nav-no-results-icon {
    font-size: 48px;
    color: #e2e8f0;
    margin-bottom: 12px;
}

.nav-no-results-text {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0 0 4px 0;
}

.nav-no-results-text strong {
    color: #1e293b;
}

[data-theme="dark"] .nav-no-results-text strong {
    color: #f1f5f9;
}

.nav-no-results-hint {
    font-size: 0.75rem;
    color: #94a3b8;
    margin: 0 0 16px 0;
}

.nav-no-results-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.nav-btn-create,
.nav-btn-ai {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.nav-btn-create {
    background: #3b82f6;
    color: white;
}

.nav-btn-create:hover {
    background: #2563eb;
}

.nav-btn-ai {
    background: linear-gradient(135deg, #818CF8, #C084FC);
    color: white;
}

.nav-btn-ai:hover {
    transform: scale(1.05);
}

/* Suggestions */
.nav-search-suggestions {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    margin-bottom: 12px;
    background: #f0f9ff;
    border-radius: 8px;
}

[data-theme="dark"] .nav-search-suggestions {
    background: rgba(59, 130, 246, 0.1);
}

.nav-suggestion-label {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
}

.nav-suggestion-pill {
    padding: 4px 10px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    font-size: 0.75rem;
    color: #334155;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

[data-theme="dark"] .nav-suggestion-pill {
    background: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
}

.nav-suggestion-pill:hover {
    background: #f8fafc;
    border-color: #3b82f6;
    color: #3b82f6;
}

/* Trending Indicator */
.trending-indicator {
    color: #F59E0B;
    font-weight: 500;
}

.trending-indicator i {
    color: #EF4444;
}

/* ============ SWIFT BOT TRIGGER ============ */
.swift-bot-trigger {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: var(--gradient-ai);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(129, 140, 248, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100;
    color: white;
    font-size: 24px;
}

.swift-bot-trigger:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 40px rgba(129, 140, 248, 0.4);
}

.bot-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--gradient-ai);
    transform: translate(-50%, -50%);
    animation: bot-pulse 2s infinite;
}

@keyframes bot-pulse {
    0% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.5);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.5);
    }
}

/* ============ ICON BUTTONS ============ */
.nav-icon-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: none;
    border-radius: 12px;
    background: transparent;
    color: var(--color-gray-600);
    cursor: pointer;
    transition: all var(--transition-fast);
    outline: none;
}

.nav-icon-btn:hover {
    background: var(--color-gray-100);
    color: var(--color-gray-900);
    transform: translateY(-1px);
}

[data-theme="dark"] .nav-icon-btn {
    color: var(--color-gray-400);
}

[data-theme="dark"] .nav-icon-btn:hover {
    background: rgba(51, 65, 85, 0.5);
    color: var(--color-gray-100);
}

.nav-icon-btn .icon {
    width: 20px;
    height: 20px;
}

/* ============ STREAK PILL ============ */
.streak-pill {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.1), rgba(239, 68, 68, 0.1));
    border: 1px solid rgba(249, 115, 22, 0.2);
    border-radius: 20px;
    margin-right: 8px;
}

[data-theme="dark"] .streak-pill {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.15), rgba(239, 68, 68, 0.15));
    border-color: rgba(249, 115, 22, 0.3);
}

.streak-pill i {
    color: #F97316;
    font-size: 16px;
}

.streak-count {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--color-warning);
}

.streak-glow {
    position: absolute;
    inset: -1px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--color-warning), var(--danger-red));
    opacity: 0.2;
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { 
        transform: scale(1);
        opacity: 0.2;
    }
    50% { 
        transform: scale(1.05);
        opacity: 0.4;
    }
}

/* ============ NOTIFICATIONS ============ */
.notification-container {
    position: relative;
}

.notification-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 380px;
    background: white;
    border: 1px solid var(--color-gray-200);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    max-height: 480px;
    display: flex;
    flex-direction: column;
}

[data-theme="dark"] .notification-dropdown {
    background: #1E293B;
    border-color: #334155;
}

.notification-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.notification-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--color-gray-200);
}

[data-theme="dark"] .notification-header {
    border-bottom-color: #334155;
}

.notification-header h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0;
    color: var(--color-gray-900);
}

[data-theme="dark"] .notification-header h3 {
    color: white;
}

.mark-all-read {
    font-size: 0.8125rem;
    color: var(--primary-indigo);
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: opacity 0.2s;
}

.mark-all-read:hover {
    opacity: 0.8;
}

.notification-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}

.notification-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    transition: background 0.2s;
    cursor: pointer;
}

.notification-item:hover {
    background: rgba(99, 102, 241, 0.05);
}

.notification-item.unread {
    background: rgba(99, 102, 241, 0.08);
}

.notification-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 10px;
    flex-shrink: 0;
}

[data-theme="dark"] .notification-icon {
    background: rgba(30, 41, 59, 0.5);
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-text {
    font-size: 0.875rem;
    color: var(--color-gray-700);
    margin: 0 0 4px 0;
    line-height: 1.4;
}

[data-theme="dark"] .notification-text {
    color: var(--color-gray-300);
}

.notification-time {
    font-size: 0.75rem;
    color: var(--color-gray-500);
}

.notification-footer {
    padding: 12px;
    border-top: 1px solid var(--color-gray-200);
    text-align: center;
}

[data-theme="dark"] .notification-footer {
    border-top-color: #334155;
}

.see-all-link {
    color: var(--primary-indigo);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
}

.see-all-link:hover {
    text-decoration: underline;
}

.notification-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: var(--gradient-danger);
    color: white;
    font-size: 0.625rem;
    font-weight: 700;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
}

/* Inline notification badge for mobile dropdown */
.notification-badge-inline {
    margin-left: auto;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: var(--gradient-danger);
    color: white;
    font-size: 0.625rem;
    font-weight: 700;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============ LIVE DOT ============ */
.live-dot {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 8px;
    height: 8px;
    background: var(--color-success);
    border-radius: 50%;
    border: 2px solid var(--color-white);
    animation: live-pulse 2s infinite;
}

[data-theme="dark"] .live-dot {
    border-color: var(--dark-bg);
}

@keyframes live-pulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* ============ USER MENU ============ */
.user-menu-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 6px;
    border: none;
    border-radius: 12px;
    background: transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
    outline: none;
}

.user-menu-btn:hover {
    background: var(--color-gray-100);
    transform: translateY(-1px);
}

[data-theme="dark"] .user-menu-btn:hover {
    background: rgba(51, 65, 85, 0.5);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    position: relative;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: transform var(--transition-fast);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-text {
    color: white;
    font-weight: 700;
    font-size: 0.9375rem;
}

.level-indicator {
    position: absolute;
    bottom: -2px;
    right: -2px;
    background: var(--primary-indigo);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 6px;
    border: 2px solid var(--color-white);
}

[data-theme="dark"] .level-indicator {
    border-color: var(--dark-bg);
}

/* ============ DROPDOWNS ============ */
.user-dropdown,
.create-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: 16px;
    box-shadow: var(--shadow-2xl);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all var(--transition-base);
    overflow: hidden;
    z-index: 100;
}

[data-theme="dark"] .user-dropdown,
[data-theme="dark"] .create-dropdown {
    background: var(--dark-surface);
    border-color: var(--dark-border);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.user-dropdown {
    width: 240px;
}

.create-dropdown {
    width: 260px;
}

.user-dropdown.active,
.create-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.dropdown-header {
    padding: 16px;
    background: var(--color-gray-50);
}

[data-theme="dark"] .dropdown-header {
    background: rgba(30, 41, 59, 0.5);
}

.user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.user-avatar-large {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.user-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-text-large {
    color: white;
    font-weight: 700;
    font-size: 1rem;
}

.user-info {
    flex: 1;
}

.user-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-gray-900);
    display: flex;
    align-items: center;
    gap: 4px;
}

[data-theme="dark"] .user-name {
    color: var(--color-gray-100);
}

.user-handle {
    font-size: 0.8125rem;
    color: var(--color-gray-500);
}

/* XP Bar */
.xp-bar {
    padding-top: 12px;
    border-top: 1px solid var(--color-gray-200);
}

[data-theme="dark"] .xp-bar {
    border-top-color: rgba(51, 65, 85, 0.5);
}

.xp-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

.xp-level {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-indigo);
}

.xp-next {
    font-size: 0.6875rem;
    color: var(--color-gray-500);
}

.xp-track {
    height: 4px;
    background: var(--color-gray-200);
    border-radius: 2px;
    overflow: hidden;
}

[data-theme="dark"] .xp-track {
    background: rgba(51, 65, 85, 0.5);
}

.xp-fill {
    position: relative;
    height: 100%;
    background: var(--gradient-primary);
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.xp-glow {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 20px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4));
    animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-20px); }
    100% { transform: translateX(20px); }
}

/* Dropdown Navigation */
.dropdown-nav {
    padding: 8px;
}

.dropdown-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    color: var(--color-gray-700);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.15s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

[data-theme="dark"] .dropdown-link {
    color: var(--color-gray-300);
}

.dropdown-link:hover {
    background: var(--color-gray-100);
    color: var(--color-gray-900);
    transform: translateX(2px);
}

[data-theme="dark"] .dropdown-link:hover {
    background: rgba(51, 65, 85, 0.5);
    color: var(--color-gray-100);
}

.dropdown-link i {
    font-size: 16px;
    width: 16px;
    text-align: center;
}

.dropdown-link.pro-link {
    background: var(--gradient-primary);
    color: white;
    font-weight: 600;
    margin: 4px 0;
}

.dropdown-link.pro-link:hover {
    transform: scale(1.02);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.2);
}

.dropdown-separator {
    height: 1px;
    background: var(--color-gray-200);
    margin: 8px 0;
}

[data-theme="dark"] .dropdown-separator {
    background: var(--dark-border);
}

/* Create Button */
.create-container {
    position: relative;
}

.create-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.15);
}

.create-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.25);
}

.create-btn:active {
    transform: scale(0.98);
}

/* Create Option Icons */
.create-option-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.create-option-icon.flashcards {
    background: linear-gradient(135deg, var(--primary-cyan), #0EA5E9);
}

.create-option-icon.folder {
    background: linear-gradient(135deg, var(--color-warning), #F97316);
}

.create-option-icon.studyroom {
    background: linear-gradient(135deg, var(--primary-purple), #A855F7);
}

.create-option-icon.import {
    background: linear-gradient(135deg, var(--color-success), #14B8A6);
}

.create-option-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.create-option-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-gray-900);
}

[data-theme="dark"] .create-option-title {
    color: var(--color-gray-100);
}

.create-option-desc {
    font-size: 0.75rem;
    color: var(--color-gray-500);
    margin-top: 2px;
}

/* Auth Buttons */
.auth-buttons {
    display: flex;
    gap: 8px;
}

.nav-auth-btn {
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.login-btn {
    color: var(--color-gray-700);
    background: transparent;
    border: 1px solid var(--color-gray-300);
}

.login-btn:hover {
    background: var(--color-gray-50);
    border-color: var(--color-gray-400);
}

.signup-btn {
    color: white;
    background: var(--gradient-primary);
    border: 1px solid transparent;
}

.signup-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

/* Loading States */
.spinner-border {
    width: 1rem;
    height: 1rem;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-rotate 0.75s linear infinite;
}

.spinner-border-sm {
    width: 0.875rem;
    height: 0.875rem;
}

@keyframes spinner-rotate {
    to { transform: rotate(360deg); }
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Text Utilities */
.text-primary { color: #3b82f6; }
.text-warning { color: #f59e0b; }
.text-danger { color: #ef4444; }
.text-success { color: #10b981; }
.text-info { color: #06b6d4; }

/* ============ MOBILE SEARCH MODAL ============ */
.mobile-search-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(100%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] .mobile-search-modal {
    background: #0f172a;
}

.mobile-search-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-search-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: white;
    border-bottom: 1px solid var(--color-gray-200);
    position: sticky;
    top: 0;
    z-index: 10;
}

[data-theme="dark"] .mobile-search-header {
    background: #1e293b;
    border-bottom-color: #334155;
}

.mobile-search-back {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: var(--color-gray-600);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

[data-theme="dark"] .mobile-search-back {
    color: var(--color-gray-400);
}

.mobile-search-back:active {
    background: var(--color-gray-100);
}

[data-theme="dark"] .mobile-search-back:active {
    background: rgba(51, 65, 85, 0.5);
}

.mobile-search-input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: var(--color-gray-100);
    border-radius: 12px;
}

[data-theme="dark"] .mobile-search-input-wrapper {
    background: rgba(30, 41, 59, 0.8);
}

.mobile-search-input-wrapper i:first-child {
    color: var(--color-gray-400);
    font-size: 18px;
}

.mobile-search-input {
    flex: 1;
    border: none;
    background: none;
    outline: none;
    font-size: 1rem;
    color: var(--color-gray-900);
}

[data-theme="dark"] .mobile-search-input {
    color: var(--color-gray-100);
}

.mobile-search-input::placeholder {
    color: var(--color-gray-400);
}

.mobile-search-clear {
    width: 24px;
    height: 24px;
    display: none;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: var(--color-gray-500);
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
}

.mobile-search-clear.visible {
    display: flex;
}

.mobile-search-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

/* Mobile search results styling */
.mobile-search-content .search-section {
    margin-bottom: 24px;
}

.mobile-search-content .search-section-title {
    font-size: 0.8125rem;
    margin-bottom: 12px;
}

.mobile-search-content .recent-searches {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mobile-search-content .recent-search-pill {
    font-size: 0.875rem;
    padding: 8px 12px;
}

.mobile-search-content .search-result {
    padding: 12px;
    margin-bottom: 8px;
}

.mobile-search-content .quick-actions {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.mobile-search-content .quick-action-btn {
    padding: 12px 8px;
}

.mobile-search-content .featured-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.mobile-search-content .featured-card {
    display: flex;
    gap: 12px;
}

.mobile-search-content .featured-visual {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.mobile-search-content .featured-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    /* Show/Hide desktop and mobile specific elements */
    .desktop-only {
        display: none !important;
    }
    
    .mobile-only {
        display: flex !important;
    }
    
    /* Hide desktop search, show mobile search trigger */
    .navbar-center-desktop {
        display: none;
    }
    
    .mobile-search-trigger {
        display: flex;
    }
    
    .streak-pill {
        padding: 6px 8px;
    }
    
    .streak-pill i {
        font-size: 14px;
    }
    
    .streak-count {
        font-size: 0.8125rem;
    }
    
    /* Make create button icon-only on mobile */
    .create-btn {
        width: 40px;
        height: 40px;
        padding: 0;
        justify-content: center;
        min-width: unset;
    }
    
    .create-text {
        display: none;
    }
    
    .swift-bot-trigger {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 16px;
        font-size: 20px;
    }
    
    /* Adjust dropdowns for mobile */
    .user-dropdown,
    .create-dropdown,
    .notification-dropdown {
        position: fixed;
        right: 8px;
        left: 8px;
        width: auto;
    }
}

@media (max-width: 640px) {
    .navbar-container {
        padding: 0 0.75rem;
    }
    
    .logo-text {
        display: none;
    }
}

@media (max-width: 480px) {
    .nav-card-author span {
        display: none;
    }
    
    .featured-meta span:last-child {
        display: none;
    }
    
    .nav-no-results-actions {
        flex-direction: column;
    }
    
    .nav-btn-create,
    .nav-btn-ai {
        width: 100%;
    }
}