
.search-results-container {
    position: fixed;
    top: 80px;
    right: 20px;
    width: 400px;
    max-width: 90%;
    max-height: 500px;
    background: rgba(20, 20, 30, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: none;
    overflow-y: auto;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-results-header {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.3);
}

.search-results-header h6 {
    margin: 0;
    color: #fff;
    font-weight: bold;
}

.search-results-header small {
    color: #aaa;
    font-size: 12px;
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
}

.search-result-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.search-result-icon i {
    font-size: 18px;
    color: white;
}

.search-result-content {
    flex: 1;
}

.search-result-content h6 {
    margin: 0 0 5px 0;
    font-size: 14px;
    font-weight: 600;
}

.search-result-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.search-result-category {
    background: rgba(13, 110, 253, 0.2);
    color: #0d6efd;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.search-result-price {
    background: rgba(25, 135, 84, 0.2);
    color: #198754;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.search-result-platform {
    background: rgba(108, 117, 125, 0.2);
    color: #6c757d;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.search-result-arrow {
    color: #aaa;
    font-size: 14px;
}

.search-no-results {
    padding: 40px 20px;
    text-align: center;
    color: #aaa;
}

.search-no-results i {
    font-size: 40px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.search-no-results p {
    margin: 0 0 5px 0;
    font-weight: 500;
}

.search-no-results small {
    font-size: 12px;
}


.search-input:focus {
    border-color: #6a11cb;
    box-shadow: 0 0 0 0.25rem rgba(106, 17, 203, 0.25);
}


@media (max-width: 768px) {
    .search-results-container {
        position: fixed;
        top: 70px;
        left: 10px;
        right: 10px;
        width: auto;
        max-width: none;
    }
}

.search-input {
    border-radius: 25px 0 0 25px !important;
    border: 2px solid #6c757d;
    border-right: none;
    padding: 10px 20px;
    min-width: 250px;
}

.btn-search {
    border-radius: 0 25px 25px 0 !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 2px solid #667eea;
    color: white;
    padding: 10px 25px;
    transition: all 0.3s ease;
}

.btn-search:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4290 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* Search suggestions */
.search-suggestions {
    background: white !important;
    color: #333 !important;
}

.search-suggestions::-webkit-scrollbar {
    width: 8px;
}

.search-suggestions::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.search-suggestions::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 4px;
}

.search-suggestions::-webkit-scrollbar-thumb:hover {
    background: #5a6fd8;
}


#noResultsMessage {
    animation: fadeIn 0.5s ease;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Search container */
.search-container {
    position: relative;
}


@media (max-width: 768px) {
    .search-input {
        min-width: 200px;
    }
    
    .search-suggestions {
        max-width: 300px !important;
    }
}

@media (max-width: 576px) {
    #searchForm {
        width: 100%;
    }
    
    .search-input {
        min-width: auto;
        width: 70%;
    }
    
    .btn-search {
        width: 30%;
        padding: 10px 15px;
    }
}
/* assets/css/search.css - Universal Search Styles */

/* Search container */
.search-container {
    position: relative;
    min-width: 300px;
}

/* Search input styling */
.search-input {
    border-radius: 25px 0 0 25px !important;
    border: 2px solid #6c757d;
    border-right: none;
    padding: 10px 20px;
    width: 250px;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.search-input:focus {
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.25);
    border-color: #667eea;
    background: white;
}

/* Search button */
.btn-search {
    border-radius: 0 25px 25px 0 !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 2px solid #667eea;
    color: white;
    padding: 10px 25px;
    transition: all 0.3s ease;
}

.btn-search:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4290 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* Search suggestions dropdown */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-top: 5px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    animation: fadeIn 0.2s ease;
}

.suggestion-item {
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    color: #333;
    display: flex;
    align-items: center;
    transition: background-color 0.2s;
}

.suggestion-item:hover {
    background-color: #f8f9fa;
    color: #667eea;
}

.suggestion-item i {
    margin-right: 10px;
    color: #667eea;
}

/* Search results highlight */
.search-highlight {
    border: 2px solid #ff6b6b !important;
    box-shadow: 0 0 25px rgba(255, 107, 107, 0.4) !important;
    transform: scale(1.02);
    transition: all 0.3s ease;
    animation: pulse 1s infinite;
}

/* No results message */
#noResultsMessage {
    animation: fadeIn 0.5s ease;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 20px;
    border-radius: 10px;
    margin-top: 30px;
}

/* Clear search button */
.btn-clear-search {
    background: #6c757d;
    color: white;
    border: none;
    margin-top: 10px;
}

.btn-clear-search:hover {
    background: #5a6268;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 25px rgba(255, 107, 107, 0.4);
    }
    50% {
        box-shadow: 0 0 35px rgba(255, 107, 107, 0.6);
    }
    100% {
        box-shadow: 0 0 25px rgba(255, 107, 107, 0.4);
    }
}

/* Search stats */
.search-stats {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 15px;
}

/* Scrollbar for suggestions */
.search-suggestions::-webkit-scrollbar {
    width: 8px;
}

.search-suggestions::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.search-suggestions::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 4px;
}

.search-suggestions::-webkit-scrollbar-thumb:hover {
    background: #5a6fd8;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .search-container {
        width: 100%;
        margin-bottom: 15px;
    }
    
    .search-input {
        width: 70%;
    }
    
    .btn-search {
        width: 30%;
        padding: 10px 15px;
    }
    
    .search-suggestions {
        max-width: 100% !important;
    }
}

@media (max-width: 576px) {
    #searchForm {
        flex-direction: column;
    }
    
    .search-input, .btn-search {
        width: 100%;
        border-radius: 25px !important;
        margin: 5px 0;
    }
    
    .search-input {
        border: 2px solid #6c757d !important;
    }
}