/* Category Hero Section */
.category-hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--light-color);
    padding-top: 80px;
    
    position: relative;
    overflow: hidden;
}

.category-hero-image {
    position: relative;
    animation: float 6s ease-in-out infinite;
}

.category-hero-image img {
    max-width: 80%;
    height: auto;
    transform: perspective(1000px) rotateY(5deg);
    transition: transform 0.3s ease;
}

.category-hero-image:hover img {
    transform: perspective(1000px) rotateY(0deg);
}

/* Search Section */
.search-section {
    background-color: var(--gray-color);
    padding: 4rem 0;
}

.search-container {
    background-color: var(--light-color);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.search-container h2 {
    color: var(--dark-color);
    font-weight: 700;
    margin-bottom: 2rem;
    position: relative;
}

.search-container h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 50%;
    transform: translateX(50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(to left, var(--primary-color), var(--secondary-color));
}

/* Search Box */
.search-box .input-group {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.search-box .input-group-text {
    background-color: var(--light-color);
    border: 2px solid #eee;
    border-right: none;
    padding: 0.75rem 1.25rem;
}

.search-box .input-group-text i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.search-box .form-control {
    border: 2px solid #eee;
    border-left: none;
    padding: 0.75rem 1.25rem;
    font-size: 1.1rem;
    font-weight: 500;
    text-align: right;
}

.search-box .form-control:focus {
    box-shadow: none;
    border-color: #eee;
}

/* Search Filters */
.search-filters {
    margin-top: 2rem;
}

.form-label {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-label i {
    color: var(--primary-color);
}

/* Select2 Customization */
.select2-container--bootstrap-5 .select2-selection {
    border: 2px solid #eee;
    border-radius: 12px;
    padding: 0.5rem;
    height: auto;
    background-color: var(--light-color);
    transition: all 0.3s ease;
    text-align: right;
}

.select2-container--bootstrap-5 .select2-selection:hover {
    border-color: var(--primary-color);
}

.select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
    color: var(--dark-color);
    padding: 0.25rem 0.5rem;
    font-weight: 500;
    text-align: right;
}

.select2-container--bootstrap-5 .select2-dropdown {
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: right;
}

.select2-container--bootstrap-5 .select2-results__option {
    padding: 0.75rem 1rem;
    font-weight: 500;
    text-align: right;
}

.select2-container--bootstrap-5 .select2-results__option--highlighted {
    background-color: var(--primary-color);
    color: var(--light-color);
}

/* Search Actions */
.search-actions {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.search-actions .btn {
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.search-actions .btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.2);
}

.search-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.3);
}

.search-actions .btn-outline-secondary {
    border: 2px solid #ddd;
    color: #666;
}

.search-actions .btn-outline-secondary:hover {
    background-color: #f5f5f5;
    border-color: #ddd;
    color: #444;
}

/* Results Section */
.results-section {
    background-color: var(--light-color);
}

.result-item {
    background-color: var(--light-color);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.result-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.result-item img {
    border-radius: 8px;
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.result-item h3 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    text-align: right;
}

.result-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-align: right;
}

.result-meta .source {
    margin-left: 1rem;
    font-weight: 600;
}

.result-description {
    color: #666;
    margin-bottom: 1.5rem;
    text-align: justify;
    line-height: 1.8;
}

/* Pagination */
.pagination {
    margin-top: 2rem;
}

.page-link {
    color: var(--primary-color);
    border: 1px solid #ddd;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.page-link:hover {
    background-color: var(--primary-color);
    color: var(--light-color);
    border-color: var(--primary-color);
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--light-color);
}

.page-item.disabled .page-link {
    color: #6c757d;
    pointer-events: none;
    background-color: var(--light-color);
    border-color: #ddd;
}

/* Responsive Design */
@media (max-width: 768px) {
    .category-hero {
        text-align: center;
        height: auto;
        padding: 6rem 0 3rem;
    }

    .category-hero-image {
        margin-top: 2rem;
    }

    .search-container {
        padding: 1.5rem;
    }

    .search-box .form-control {
        font-size: 1rem;
    }

    .search-actions .btn {
        width: 100%;
        margin: 0.5rem 0;
    }

    .result-item {
        text-align: center;
    }

    .result-item img {
        margin-bottom: 1rem;
    }

    .result-meta,
    .result-description {
        text-align: center;
    }
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
} 