/* Search Results Page Styles */
.search-results-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    min-height: 80vh;
    background: var(--dark-bg);
}

/* Ensure proper spacing from navbar */
.search-results-main {
    padding-top: 100px;
}

/* Basic fallback styles */
.search-results-page {
    background: var(--dark-bg);
    color: var(--text-primary);
    min-height: 100vh;
}

/* Ensure content is visible */
.search-results-page .container {
    background: rgba(26, 26, 26, 0.8);
    border-radius: 15px;
    padding: 2rem;
    margin-top: 2rem;
}

/* Make sure text is visible */
.search-results-page h1,
.search-results-page h2,
.search-results-page h3,
.search-results-page p {
    color: var(--text-primary);
}

.search-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
    background: linear-gradient(135deg, rgba(42, 42, 42, 0.9), rgba(20, 20, 20, 0.9));
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.search-header h1 {
    color: var(--neon-green);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

.search-query {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.query-term {
    color: var(--neon-blue);
    font-weight: bold;
    margin: 0 0.5rem;
}

.result-count {
    color: var(--neon-green);
    font-weight: bold;
    margin-left: 1rem;
}

/* Search Controls */
.search-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background: rgba(42, 42, 42, 0.8);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Filters Section */
.filters-section {
    position: relative;
}

.filter-btn {
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.4);
}

.filter-panel {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 1.5rem;
    min-width: 300px;
    z-index: 1000;
    display: none;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.filter-panel.active {
    display: block;
    animation: slideInDown 0.3s ease;
}

.filter-group {
    margin-bottom: 1.5rem;
}

.filter-group label {
    display: block;
    color: var(--neon-green);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-weight: normal;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    accent-color: var(--neon-green);
    transform: scale(1.2);
}

.date-inputs {
    display: flex;
    gap: 1rem;
}

.date-inputs input[type="date"] {
    background: rgba(42, 42, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    padding: 0.5rem;
    color: var(--text-light);
    flex: 1;
}

.date-inputs input[type="date"]:focus {
    outline: none;
    border-color: var(--neon-blue);
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.3);
}

#sort-select {
    background: rgba(42, 42, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    padding: 0.5rem;
    color: var(--text-light);
    width: 100%;
    cursor: pointer;
}

#sort-select:focus {
    outline: none;
    border-color: var(--neon-blue);
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.3);
}

.filter-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.apply-filters-btn, .clear-filters-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    flex: 1;
}

.apply-filters-btn {
    background: var(--neon-green);
    color: white;
}

.apply-filters-btn:hover {
    background: #00cc52;
    transform: translateY(-1px);
}

.clear-filters-btn {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.clear-filters-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* View Options */
.view-options {
    display: flex;
    gap: 0.5rem;
}

.view-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-muted);
    padding: 0.75rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-light);
}

.view-btn.active {
    background: var(--neon-blue);
    color: white;
    border-color: var(--neon-blue);
}

/* Search Results Container */
.search-results-container {
    margin-bottom: 2rem;
}

.results-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.result-item {
    background: rgba(42, 42, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.result-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border-color: rgba(0, 255, 65, 0.3);
}

.result-item h3 {
    color: var(--neon-blue);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.result-item .result-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.result-item .result-content {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.result-item .result-highlight {
    background: rgba(0, 255, 65, 0.1);
    border: 1px solid rgba(0, 255, 65, 0.3);
    padding: 0.5rem;
    border-radius: 5px;
    margin-top: 0.75rem;
}

.result-item .result-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.result-actions a {
    color: var(--neon-green);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.result-actions a:hover {
    color: #00cc52;
}

/* Grid View */
.results-list.grid-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
}

.no-results-content i {
    font-size: 4rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.no-results-content h3 {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.no-results-content p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.back-to-search {
    background: var(--neon-blue);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.back-to-search:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
}

.page-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-light);
    padding: 0.75rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.page-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-light);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-numbers {
    display: flex;
    gap: 0.5rem;
}

.page-number {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-light);
    padding: 0.75rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 40px;
    text-align: center;
}

.page-number:hover {
    background: rgba(255, 255, 255, 0.2);
}

.page-number.active {
    background: var(--neon-blue);
    color: white;
    border-color: var(--neon-blue);
}

/* Animations */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .search-results-main {
        padding: 1rem;
    }
    
    .search-header {
        padding: 1.5rem 1rem;
        margin-bottom: 2rem;
    }
    
    .search-header h1 {
        font-size: 2rem;
    }
    
    .search-controls {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .filter-panel {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 90%;
        max-width: 350px;
    }
    
    .date-inputs {
        flex-direction: column;
    }
    
    .results-list.grid-view {
        grid-template-columns: 1fr;
    }
    
    .pagination {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .page-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .search-header h1 {
        font-size: 1.8rem;
    }
    
    .filter-panel {
        width: 95%;
        padding: 1rem;
    }
    
    .result-item {
        padding: 1rem;
    }
    
    .result-item h3 {
        font-size: 1.1rem;
    }
}
