/* Contribution Search Page Styles */

.contribution-search-page {
    padding: 40px 0;
    background: #f8f9fa;
    min-height: calc(100vh - 200px);
}

.search-header {
    text-align: center;
    margin-bottom: 40px;
}

.search-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 10px;
}

.search-header p {
    font-size: 16px;
    color: #6b7280;
}

.search-filters {
    background: white;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    position: sticky;
    top: 100px;
}

.filter-section {
    margin-bottom: 20px;
}

.filter-section:last-child {
    margin-bottom: 0;
}

.filter-title {
    display: block;
    font-weight: 600;
    color: #1f2937;
    font-size: 14px;
    margin-bottom: 8px;
}

.filter-section .form-control,
.filter-section .form-select {
    border-color: #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
}

.filter-section .form-control:focus,
.filter-section .form-select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.quick-actions {
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.empty-state {
    background: white;
    padding: 60px 20px;
    border-radius: 12px;
    text-align: center;
}

.empty-icon {
    font-size: 48px;
    color: #d1d5db;
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 10px;
}

.empty-state p {
    color: #6b7280;
    margin-bottom: 20px;
}

.results-info {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 20px;
}

.contributions-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contribution-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.contribution-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: #d1d5db;
}

.card-header {
    padding: 16px;
    border-bottom: 1px solid #f3f4f6;
}

.card-title-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 8px 0;
}

.card-title-section h3 a {
    color: #2563eb;
    text-decoration: none;
}

.card-title-section h3 a:hover {
    text-decoration: underline;
}

.card-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.type-badge {
    display: inline-block;
    padding: 4px 10px;
    background: #dbeafe;
    color: #1e40af;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    color: white;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.card-body {
    padding: 16px;
    border-bottom: 1px solid #f3f4f6;
}

.course-details {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 12px;
}

.card-stats {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #6b7280;
}

.card-footer {
    padding: 12px 16px;
    background: #f9fafb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contributor-info {
    display: flex;
    gap: 12px;
    font-size: 13px;
    color: #6b7280;
}

.contributor-info strong {
    color: #1f2937;
}

.text-muted {
    color: #9ca3af;
}

@media (max-width: 768px) {
    .search-header h1 {
        font-size: 24px;
    }

    .search-filters {
        position: relative;
        top: 0;
    }

    .card-footer {
        flex-direction: column;
        gap: 12px;
    }

    .contributor-info {
        justify-content: space-between;
    }
}
