/* Akıllı Arama Sistemi CSS */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 9999;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    display: none;
    animation: searchDropdownFade 0.2s ease-out;
}

/* Dropdown menü z-index düzeltmeleri */
.dropdown-menu {
    z-index: 9999 !important;
}

.notification-dropdown {
    z-index: 9999 !important;
}

.navbar-nav .dropdown-menu {
    z-index: 9999 !important;
}

/* Navbar z-index */
.navbar {
    z-index: 1000;
}

/* Hero section z-index düzeltmesi */
.hero-section {
    z-index: 1;
    position: relative;
}

@keyframes searchDropdownFade {
    from { 
        opacity: 0; 
        transform: translateY(-10px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.search-suggestions.show {
    display: block;
}

.search-section {
    border-bottom: 1px solid #e9ecef;
}

.search-section:last-child {
    border-bottom: none;
}

.search-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-radius: 0.25rem;
    margin: 0.25rem;
}

.search-item:hover {
    background-color: #f8f9fa;
}

.search-item-icon {
    width: 20px;
    height: 20px;
    margin-right: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.search-item-title {
    font-weight: 500;
    color: #212529;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-item-meta {
    font-size: 0.875rem;
    color: #6c757d;
    margin: 0;
}

.search-item-type {
    font-size: 0.75rem;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-weight: 500;
}

.search-item-type.topic {
    background-color: #e3f2fd;
    color: #1976d2;
}

.search-item-type.user {
    background-color: #f3e5f5;
    color: #7b1fa2;
}

.search-item-type.job {
    background-color: #fff3e0;
    color: #f57c00;
}

.search-item-type.category {
    background-color: #e8f5e8;
    color: #388e3c;
}

.search-highlight {
    background-color: #fff3cd;
    font-weight: 600;
}

.search-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    color: #6c757d;
}

.search-no-results {
    text-align: center;
    padding: 1rem;
    color: #6c757d;
    font-style: italic;
}

.search-shortcuts {
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
    font-size: 0.75rem;
    color: #6c757d;
}

.search-shortcut {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.search-shortcut-key {
    background-color: #e9ecef;
    padding: 0.125rem 0.25rem;
    border-radius: 0.125rem;
    font-family: monospace;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .search-suggestions {
        position: fixed;
        top: 60px;
        left: 10px;
        right: 10px;
        max-height: 70vh;
    }
    
    .search-item {
        padding: 0.75rem;
    }
    
    .search-item-title {
        font-size: 0.9rem;
    }
    
    .search-item-meta {
        font-size: 0.8rem;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .search-suggestions {
        background: #212529;
        border-color: #495057;
        color: #fff;
    }
    
    .search-item:hover {
        background-color: #343a40;
    }
    
    .search-item-title {
        color: #fff;
    }
    
    .search-item-meta {
        color: #adb5bd;
    }
    
    .search-shortcuts {
        background-color: #343a40;
        border-color: #495057;
        color: #adb5bd;
    }
    
    .search-shortcut-key {
        background-color: #495057;
        color: #fff;
    }
}
