/* Search & Filter Styles */
.search-box {
    position: relative;
}

.live-search-container {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 242, 255, 0.2);
    border-radius: 8px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.live-search-container.active {
    display: block;
}

.live-search-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s;
}

.live-search-item:hover {
    background: rgba(0, 242, 255, 0.05);
}

.live-search-item .ls-title {
    color: #e2e8f0;
    font-weight: 500;
}

.live-search-item .ls-type {
    font-size: 0.65rem;
    text-transform: uppercase;
    color: #00f2ff;
    margin-left: 0.5rem;
}

.live-search-item .ls-desc {
    color: #94a3b8;
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.live-search-item a {
    text-decoration: none;
    display: block;
}

/* Search results */
.search-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    padding: 2rem 0;
}

.search-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

.filter-card {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(0, 242, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.filter-card h4 {
    color: #e2e8f0;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.filter-group {
    margin-bottom: 0.75rem;
}

.filter-group label {
    display: block;
    color: #94a3b8;
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
    cursor: pointer;
    transition: color 0.2s;
}

.filter-group label:hover {
    color: #00f2ff;
}

.filter-group input[type="radio"],
.filter-group input[type="checkbox"] {
    margin-right: 0.5rem;
    accent-color: #00f2ff;
}

.btn-filter {
    width: 100%;
    padding: 0.6rem;
    background: linear-gradient(135deg, #00f2ff, #8b5cf6);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-filter:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 242, 255, 0.3);
}

.btn-reset {
    width: 100%;
    padding: 0.6rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #94a3b8;
    cursor: pointer;
    margin-top: 0.5rem;
    text-align: center;
    text-decoration: none;
    display: block;
    transition: background 0.2s;
}

.btn-reset:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Results */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.results-header h1 {
    font-size: 1.5rem;
    color: #e2e8f0;
}

.results-header h1 span {
    color: #00f2ff;
}

.results-header .result-count {
    color: #94a3b8;
    font-size: 0.9rem;
}

.results-header .sort-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.results-header .sort-wrapper label {
    color: #94a3b8;
    font-size: 0.85rem;
}

.results-header .sort-wrapper select {
    padding: 0.4rem 0.75rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 242, 255, 0.2);
    border-radius: 8px;
    color: #e2e8f0;
    font-size: 0.85rem;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.result-card {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(0, 242, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s;
}

.result-card:hover {
    border-color: #00f2ff;
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 242, 255, 0.05);
}

.result-card .type-badge {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
    background: rgba(0, 242, 255, 0.1);
    color: #00f2ff;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.result-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.result-card h3 a {
    color: #e2e8f0;
    text-decoration: none;
    transition: color 0.2s;
}

.result-card h3 a:hover {
    color: #00f2ff;
}

.result-card .description {
    color: #94a3b8;
    font-size: 0.85rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.result-card .meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.result-card .rating {
    color: #fbbf24;
    font-size: 0.85rem;
}

.result-card .price {
    color: #94a3b8;
    font-size: 0.85rem;
}

.result-card .btn {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background: rgba(0, 242, 255, 0.1);
    border: 1px solid rgba(0, 242, 255, 0.2);
    border-radius: 6px;
    color: #00f2ff;
    text-decoration: none;
    font-size: 0.8rem;
    transition: all 0.3s;
}

.result-card .btn:hover {
    background: rgba(0, 242, 255, 0.2);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 2rem 0;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    padding: 0.4rem 0.8rem;
    border: 1px solid rgba(0, 242, 255, 0.1);
    border-radius: 6px;
    text-decoration: none;
    color: #94a3b8;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.pagination a:hover {
    background: rgba(0, 242, 255, 0.1);
    color: #00f2ff;
}

.pagination .active {
    background: rgba(0, 242, 255, 0.1);
    color: #00f2ff;
    border-color: #00f2ff;
}

/* Tabs */
.type-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0, 242, 255, 0.1);
    padding-bottom: 0.5rem;
    flex-wrap: wrap;
}

.type-tabs a {
    padding: 0.4rem 1.25rem;
    border-radius: 8px;
    text-decoration: none;
    color: #94a3b8;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.type-tabs a:hover {
    background: rgba(0, 242, 255, 0.05);
    color: #e2e8f0;
}

.type-tabs a.active {
    background: rgba(0, 242, 255, 0.1);
    color: #00f2ff;
    border: 1px solid rgba(0, 242, 255, 0.2);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: #64748b;
}

.empty-state .icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
}

.empty-state h3 {
    color: #e2e8f0;
    margin-bottom: 0.5rem;
}

.empty-state .btn {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    background: rgba(0, 242, 255, 0.1);
    border: 1px solid rgba(0, 242, 255, 0.2);
    border-radius: 8px;
    color: #00f2ff;
    text-decoration: none;
    transition: all 0.3s;
}

.empty-state .btn:hover {
    background: rgba(0, 242, 255, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .search-layout {
        grid-template-columns: 1fr;
    }
    
    .search-sidebar {
        position: relative;
        top: 0;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .results-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .type-tabs {
        flex-wrap: wrap;
    }
    
    .live-search-container {
        max-height: 300px;
    }
}

@media (max-width: 480px) {
    .filter-card {
        padding: 1rem;
    }
    
    .result-card {
        padding: 1rem;
    }
    
    .results-header h1 {
        font-size: 1.2rem;
    }
}