/* Search Container Styles */
.search-container {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
}

.search-form {
    position: relative;
    width: 100%;
}

.search-input {
    border: 2px solid #E5E7EB;
    border-radius: 12px !important;
    padding: 1rem 1.5rem !important;
    font-size: 1.1rem !important;
    transition: all 0.3s ease;
    background: white;
    width: 100%;
}

.search-input:focus {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
    outline: none;
}

.search-input::placeholder {
    color: #9CA3AF;
}

[data-theme="dark"] .search-input {
    background: var(--form-bg);
    border-color: var(--border-color);
    color: var(--text-primary);
}

.search-button {
    position: absolute;
    right: 5px;
    top: 5px;
    border-radius: 10px;
    padding: 0.8rem 2rem;
    font-weight: 600;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.search-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Autocomplete Styles */
.ui-autocomplete {
    max-height: 200px;
    overflow-y: auto;
    overflow-x: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 2px solid #E5E7EB;
    font-family: "Inter", sans-serif;
    padding: 0.5rem 0;
    scrollbar-width: thin;
    scrollbar-color: #E5E7EB transparent;
    background: white;
}

[data-theme="dark"] .ui-autocomplete {
    background: var(--form-bg) !important;
    border-color: var(--border-color) !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3) !important;
    scrollbar-color: var(--border-color) transparent !important;
}

.ui-autocomplete::-webkit-scrollbar {
    width: 6px;
}

.ui-autocomplete::-webkit-scrollbar-track {
    background: transparent;
}

.ui-autocomplete::-webkit-scrollbar-thumb {
    background-color: #E5E7EB;
    border-radius: 3px;
}

[data-theme="dark"] .ui-autocomplete::-webkit-scrollbar-thumb {
    background-color: var(--border-color) !important;
}

.ui-autocomplete::-webkit-scrollbar-thumb:hover {
    background-color: #D1D5DB;
}

[data-theme="dark"] .ui-autocomplete::-webkit-scrollbar-thumb:hover {
    background-color: var(--hover-bg) !important;
}

.ui-menu-item {
    padding: 0 !important;
}

.ui-menu .ui-menu-item-wrapper {
    padding: 0.5rem 1rem !important;
    border: none !important;
    color: var(--text-primary);
}

[data-theme="dark"] .ui-menu .ui-menu-item-wrapper {
    color: var(--text-primary) !important;
}

.ui-state-active {
    border: none !important;
    background: #F3F4F6 !important;
    margin: 0 !important;
    color: inherit !important;
}

[data-theme="dark"] .ui-state-active {
    background: var(--hover-bg) !important;
    color: var(--text-primary) !important;
}

/* Trending Searches */
.trending-searches {
    text-align: center;
    margin-top: 2.5rem;
}

.trending-searches .heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: #6B7280;
    font-size: 0.875rem;
}

.trending-searches .heading svg {
    width: 16px;
    height: 16px;
}

.trending-searches .trending-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    max-width: 600px;
    margin: 0 auto;
}

.trending-searches .btn-trending {
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid #E5E7EB;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    color: #374151;
    backdrop-filter: blur(8px);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.trending-searches .btn-trending:hover {
    background-color: white;
    border-color: #D1D5DB;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.trending-searches .btn-trending .count {
    background: #F3F4F6;
    color: #6B7280;
    padding: 0.125rem 0.5rem;
    border-radius: 50px;
    font-size: 0.75rem;
}

/* Related Searches */
.related-searches {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    padding: 1.5rem;
}

[data-theme="dark"] .related-searches {
    background: var(--card-bg);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -1px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .related-searches h3 {
    color: var(--text-primary);
}

.related-searches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.related-search-item {
    background: #F3F4F6;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    color: #374151;
    text-decoration: none;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

[data-theme="dark"] .related-search-item {
    background: var(--form-bg);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.related-search-item:hover {
    background: #E5E7EB;
    transform: translateY(-1px);
}

[data-theme="dark"] .related-search-item:hover {
    background: var(--hover-bg);
}

.related-search-item svg {
    width: 16px;
    height: 16px;
    color: #6B7280;
}

[data-theme="dark"] .related-search-item svg {
    color: var(--text-secondary);
}

/* Result Card */
.result-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .result-card {
    background: var(--card-bg);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .search-container {
        padding: 0 1rem;
        margin: 0 auto;
        width: 100%;
        box-sizing: border-box;
    }
    
    .search-form,
    .search-input {
        width: 100%;
        box-sizing: border-box;
    }

    .result-card {
        padding: 1rem !important;
    }

    .related-searches-grid {
        grid-template-columns: 1fr;
    }
}
