/* ===== SEARCH PAGE SPECIFIC STYLES ===== */

/* Search Hero */
.search-hero {
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.search-hero-content {
    max-width: 900px;
}

.search-main-box {
    max-width: 700px;
    margin: 40px auto;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    background: var(--dark-card);
    border: 2px solid rgba(212, 175, 55, 0.2);
    border-radius: 60px;
    overflow: hidden;
    transition: var(--transition);
}

.search-input-wrapper:focus-within {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.search-icon {
    padding: 0 15px 0 25px;
    color: var(--gold);
    font-size: 1.2rem;
}

#searchInput {
    flex: 1;
    padding: 18px 0;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.1rem;
}

#searchInput:focus {
    outline: none;
}

#searchInput::placeholder {
    color: var(--text-muted);
}

.search-submit {
    margin: 5px;
    padding: 12px 28px;
    border-radius: 50px;
    background: var(--gold);
    color: var(--dark);
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.search-submit:hover {
    background: #e5b83b;
    transform: translateY(-2px);
}

.search-stats {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.search-stats strong {
    color: var(--gold);
    font-size: 1.2rem;
}

.stats-time {
    margin-left: 15px;
}

/* Search Filters */
.search-filters {
    padding: 30px 0;
    background: var(--dark-light);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.filter-header h3 {
    color: white;
    font-size: 1.2rem;
}

.clear-filters {
    background: transparent;
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--text-muted);
    padding: 8px 18px;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.clear-filters:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.filter-group {
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--border-radius-md);
    padding: 20px;
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.filter-group label {
    display: block;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-checkbox, .filter-radio {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.filter-checkbox:hover, .filter-radio:hover {
    color: white;
}

.filter-checkbox input, .filter-radio input {
    accent-color: var(--gold);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* Active Filters */
.active-filters {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.active-filter-label {
    color: var(--text-muted);
    font-weight: 500;
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-tag {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--gold);
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-tag i {
    cursor: pointer;
    transition: var(--transition);
}

.filter-tag i:hover {
    color: white;
}

/* Results Tabs */
.results-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding-bottom: 15px;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 8px 20px;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.tab-btn:hover {
    color: var(--gold);
    background: rgba(212, 175, 55, 0.05);
}

.tab-btn.active {
    background: var(--gold);
    color: var(--dark);
}

/* Results Container */
.results-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.result-item {
    background: var(--dark-card);
    border-radius: var(--border-radius-lg);
    padding: 25px;
    border: 1px solid rgba(212, 175, 55, 0.1);
    transition: var(--transition);
    display: flex;
    gap: 20px;
}

.result-item:hover {
    border-color: var(--gold);
    box-shadow: var(--shadow-gold);
    transform: translateX(5px);
}

.result-icon {
    width: 50px;
    height: 50px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.result-content {
    flex: 1;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 10px;
}

.result-header h3 {
    font-size: 1.2rem;
    margin: 0;
}

.result-header h3 a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.result-header h3 a:hover {
    color: var(--gold);
}

.result-badge {
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold);
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.result-excerpt {
    color: var(--text-muted);
    margin-bottom: 12px;
    line-height: 1.6;
}

.result-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.result-meta span i {
    margin-right: 5px;
    color: var(--gold);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
}

.page-btn {
    background: transparent;
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.95rem;
}

.page-btn:hover:not(:disabled) {
    border-color: var(--gold);
    color: var(--gold);
}

.page-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.page-numbers {
    display: flex;
    gap: 8px;
    align-items: center;
}

.page-number {
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid rgba(212, 175, 55, 0.2);
    color: var(--text-muted);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.page-number:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.page-number.active {
    background: var(--gold);
    color: var(--dark);
    border-color: var(--gold);
}

.page-dots {
    color: var(--text-muted);
    padding: 0 5px;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 20px;
    background: var(--dark-card);
    border-radius: var(--border-radius-lg);
    border: 2px dashed rgba(212, 175, 55, 0.2);
}

.no-results i {
    margin-bottom: 20px;
}

.no-results h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: white;
}

.no-results p {
    color: var(--text-muted);
    margin-bottom: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.no-results-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.suggestion-link {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--gold);
    padding: 10px 25px;
    border-radius: 40px;
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.suggestion-link:hover {
    background: var(--gold);
    color: var(--dark);
    transform: translateY(-3px);
}

/* Suggested Searches */
.suggested-searches {
    padding: 60px 0;
    background: var(--dark-light);
}

.suggested-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 30px;
}

.suggested-tag {
    background: var(--dark-card);
    border: 1px solid rgba(212, 175, 55, 0.2);
    color: white;
    padding: 10px 22px;
    border-radius: 40px;
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
}

.suggested-tag:hover {
    background: var(--gold);
    color: var(--dark);
    border-color: var(--gold);
    transform: translateY(-2px);
}

/* Help Section */
.help-section {
    padding: 60px 0;
    background: var(--dark-deep);
}

.help-box {
    text-align: center;
    background: var(--dark-card);
    border-radius: var(--border-radius-lg);
    padding: 60px 40px;
    border: 2px solid rgba(212, 175, 55, 0.2);
    max-width: 800px;
    margin: 0 auto;
}

.help-box h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: white;
}

.help-box p {
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.help-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.help-response {
    color: var(--gold) !important;
    margin-top: 20px;
    font-size: 1rem !important;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gold);
    color: var(--dark);
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99;
    transition: var(--transition);
    border: 2px solid transparent;
}

.back-to-top:hover {
    background: transparent;
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-5px);
}

/* Responsive */
@media (max-width: 992px) {
    .filter-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pagination {
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .search-input-wrapper {
        flex-direction: column;
        background: transparent;
        border: none;
        gap: 10px;
    }
    
    .search-icon {
        display: none;
    }
    
    #searchInput {
        width: 100%;
        background: var(--dark-card);
        border: 2px solid rgba(212, 175, 55, 0.2);
        border-radius: 60px;
        padding: 18px 25px;
    }
    
    .search-submit {
        width: 100%;
        margin: 0;
    }
    
    .filter-grid {
        grid-template-columns: 1fr;
    }
    
    .result-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .result-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .result-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .pagination {
        flex-direction: column;
    }
    
    .page-numbers {
        order: -1;
    }
    
    .back-to-top {
        bottom: 80px;
        right: 20px;
    }
}