/* Search Page Styles */

/* Search Hero Section */
.search-hero {
    background: var(--gradient-dark);
    padding: 140px 0 80px;
    position: relative;
    overflow: hidden;
}

.search-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(57, 255, 20, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 212, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.search-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    background: var(--gradient-neon);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.search-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Enhanced Search Container */
.enhanced-search-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(57, 255, 20, 0.3);
    border-radius: 50px;
    padding: 8px;
    transition: all 0.3s ease;
}

.search-input-wrapper:focus-within {
    border-color: var(--neon-green);
    box-shadow: 0 0 20px rgba(57, 255, 20, 0.3);
}

.search-icon {
    color: var(--neon-green);
    font-size: 1.2rem;
    margin-left: 15px;
    margin-right: 10px;
}

.enhanced-search-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.1rem;
    padding: 12px 15px;
    outline: none;
}

.enhanced-search-input::placeholder {
    color: var(--text-muted);
}

.search-submit-btn {
    background: var(--gradient-neon);
    border: none;
    border-radius: 50px;
    padding: 12px 20px;
    color: var(--dark-bg);
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.search-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(57, 255, 20, 0.4);
}

/* Filters Section */
.filters-section {
    background: var(--card-bg);
    padding: 40px 0;
    min-height: calc(100vh - 300px);
}

.filters-sidebar {
    background: var(--dark-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 25px;
    position: sticky;
    top: 120px;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
}

.filters-title {
    color: var(--neon-green);
    font-weight: 600;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.filter-group {
    margin-bottom: 25px;
}

.filter-label {
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.filter-select,
.price-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    padding: 8px 12px;
    font-size: 0.9rem;
}

.filter-select:focus,
.price-input:focus {
    border-color: var(--neon-green);
    box-shadow: 0 0 10px rgba(57, 255, 20, 0.2);
    outline: none;
}

.filter-select option {
    background: var(--dark-bg);
    color: var(--text-primary);
}

/* Price Range Presets */
.price-range-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.price-preset {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-secondary);
    padding: 6px 12px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.price-preset:hover,
.price-preset.active {
    background: var(--neon-green);
    color: var(--dark-bg);
    border-color: var(--neon-green);
}

/* Status Checkboxes */
.status-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.status-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.status-checkbox:hover {
    background: rgba(255, 255, 255, 0.05);
}

.status-checkbox input[type="checkbox"] {
    margin: 0;
    accent-color: var(--neon-green);
}

.status-icon {
    font-size: 1.1rem;
}

/* Results Header */
.results-header {
    background: var(--dark-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 25px;
}

.results-info h4 {
    color: var(--text-primary);
    margin: 0;
    font-size: 1.4rem;
}

.results-count {
    color: var(--text-muted);
    margin: 5px 0 0 0;
    font-size: 0.9rem;
}

/* View Options */
.view-options {
    display: flex;
    gap: 8px;
}

.view-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-btn:hover,
.view-btn.active {
    background: var(--neon-green);
    color: var(--dark-bg);
    border-color: var(--neon-green);
}

/* Active Filters */
.active-filters {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.active-filters-label {
    color: var(--text-primary);
    font-weight: 500;
    margin-right: 10px;
}

.filter-tags {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-tag {
    background: var(--neon-green);
    color: var(--dark-bg);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.filter-tag .remove-filter {
    cursor: pointer;
    font-weight: bold;
}

.filter-tag .remove-filter:hover {
    color: red;
}

/* Search Results */
.search-results {
    min-height: 400px;
}

.search-results.grid-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.search-results.list-view {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Project Cards for Search */
.search-project-card {
    background: var(--dark-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.search-project-card:hover {
    transform: translateY(-5px);
    border-color: var(--neon-green);
    box-shadow: 0 10px 30px rgba(57, 255, 20, 0.2);
}

.search-project-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
}

.search-project-content {
    padding: 20px;
}

.search-project-title {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 10px;
    line-height: 1.3;
}

.search-project-description {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.search-project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.search-project-price {
    color: var(--neon-green);
    font-weight: 600;
    font-size: 1.1rem;
}

.search-project-status {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-early-stage {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.status-in-progress {
    background: rgba(13, 202, 240, 0.2);
    color: #0dcaf0;
}

.status-finished {
    background: rgba(25, 135, 84, 0.2);
    color: #198754;
}

.search-project-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.search-project-seller {
    display: flex;
    align-items: center;
    gap: 5px;
}

.search-project-date {
    opacity: 0.8;
}

/* List View Specific Styles */
.search-results.list-view .search-project-card {
    display: flex;
    flex-direction: row;
}

.search-results.list-view .search-project-image {
    width: 200px;
    height: 150px;
    flex-shrink: 0;
}

.search-results.list-view .search-project-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.no-results-icon {
    font-size: 4rem;
    color: var(--text-muted);
    opacity: 0.5;
    margin-bottom: 20px;
}

.no-results h3 {
    color: var(--text-primary);
    margin-bottom: 10px;
}

/* Pagination */
.pagination-custom {
    --bs-pagination-bg: var(--dark-bg);
    --bs-pagination-border-color: var(--border-color);
    --bs-pagination-color: var(--text-primary);
    --bs-pagination-hover-bg: var(--neon-green);
    --bs-pagination-hover-color: var(--dark-bg);
    --bs-pagination-active-bg: var(--neon-green);
    --bs-pagination-active-color: var(--dark-bg);
    --bs-pagination-active-border-color: var(--neon-green);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .search-hero {
        padding: 120px 0 60px;
    }
    
    .search-title {
        font-size: 2rem;
    }
    
    .search-subtitle {
        font-size: 1rem;
    }
    
    .filters-sidebar {
        position: relative;
        top: auto;
        max-height: none;
        margin-bottom: 30px;
    }
    
    .search-results.grid-view {
        grid-template-columns: 1fr;
    }
    
    .search-results.list-view .search-project-card {
        flex-direction: column;
    }
    
    .search-results.list-view .search-project-image {
        width: 100%;
        height: 200px;
    }
    
    .view-options {
        display: none;
    }
    
    .results-header {
        padding: 15px;
    }
    
    .price-range-presets {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .search-hero {
        padding: 100px 0 40px;
    }
    
    .enhanced-search-container {
        margin: 0 15px;
    }
    
    .search-input-wrapper {
        flex-direction: column;
        gap: 10px;
        padding: 15px;
        border-radius: 15px;
    }
    
    .enhanced-search-input {
        text-align: center;
    }
    
    .search-submit-btn {
        width: 100%;
        border-radius: 10px;
    }
    
    .filters-sidebar {
        padding: 15px;
    }
    
    .search-project-content {
        padding: 15px;
    }
}
