/* Advanced Search Styles */

.advanced-search-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

.search-header {
    background: white;
    border-radius: var(--radius-lg);
    padding: 3rem 2.5rem;
    margin-bottom: 2.5rem;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.search-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-border);
}

.search-header h1 {
    font-size: 2.75rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-header h1::before {
    content: '';
    width: 6px;
    height: 48px;
    background: var(--gradient-border);
    border-radius: 3px;
}

.search-header p {
    color: var(--text-muted);
    font-size: 1.125rem;
    margin: 0;
    font-weight: 400;
    margin-left: 1.5rem;
}

.filter-sidebar {
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    padding-right: 0.5rem;
}

.filter-sidebar::-webkit-scrollbar {
    width: 6px;
}

.filter-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.filter-sidebar::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: 3px;
}

.filter-sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--border-hover);
}

.filter-section {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    margin-bottom: 1.25rem;
    transition: all 0.3s ease;
    position: relative;
}

.filter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-border);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.filter-section:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.filter-section:hover::before {
    transform: scaleX(1);
}

.filter-section-title {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.filter-section-title i {
    font-size: 1rem;
    color: var(--accent-primary);
}

.form-label {
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.625rem;
    font-size: 0.875rem;
    display: block;
}

.form-control-sm, .form-select-sm {
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    font-size: 0.875rem;
    padding: 0.625rem 0.875rem;
}

.form-control-sm:focus, .form-select-sm:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    outline: none;
}

.form-check {
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    margin-bottom: 0.5rem;
    border: 1px solid transparent;
}

.form-check:hover {
    background: rgba(99, 102, 241, 0.04);
    border-color: var(--border-light);
}

.form-check-input {
    margin-top: 0.25rem;
    cursor: pointer;
    width: 1.125rem;
    height: 1.125rem;
}

.form-check-input:checked {
    background-color: var(--accent-primary);
    border-color: var(--accent-primary);
}

.form-check-label {
    font-size: 0.875rem;
    color: var(--text-main);
    cursor: pointer;
    font-weight: 500;
    margin-left: 0.5rem;
}

.results-header {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1.5rem 2rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
}

.results-count {
    font-size: 1rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.results-count i {
    color: var(--accent-primary);
    font-size: 1.25rem;
}

.results-count strong {
    color: var(--text-main);
    font-weight: 700;
    font-size: 1.125rem;
}

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

.result-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1.5rem 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.result-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: var(--gradient-border);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.result-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-border);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.result-card:hover {
    border-color: var(--accent-primary);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.02) 0%, rgba(6, 182, 212, 0.02) 100%);
    box-shadow: var(--shadow-md);
    transform: translateX(6px) translateY(-2px);
}

.result-card:hover::before {
    transform: scaleY(1);
}

.result-card:hover::after {
    transform: scaleX(1);
}

.result-word {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
    transition: color 0.2s ease;
    display: inline-block;
}

.result-card:hover .result-word {
    color: var(--accent-primary);
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.result-meta {
    font-size: 0.875rem;
    color: var(--text-muted);
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

.result-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.875rem;
    background: rgba(99, 102, 241, 0.08);
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-main);
    border: 1px solid rgba(99, 102, 241, 0.15);
    transition: all 0.2s ease;
}

.result-badge:hover {
    background: rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.25);
    transform: translateY(-1px);
}

.result-badge i {
    font-size: 0.875rem;
    color: var(--accent-primary);
}

.empty-state {
    background: white;
    border: 2px dashed var(--border-light);
    border-radius: var(--radius-lg);
    padding: 5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.empty-state::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.empty-state > * {
    position: relative;
    z-index: 1;
}

.empty-state i {
    font-size: 4.5rem;
    background: var(--gradient-border);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.empty-state h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.empty-state p {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 400px;
    margin: 0 auto;
}

.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border-light);
}

.pagination {
    gap: 0.5rem;
    display: flex;
    align-items: center;
}

.pagination .page-link {
    color: var(--text-main);
    border: 1.5px solid var(--border-light);
    padding: 0.625rem 1rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    min-width: 42px;
    text-align: center;
    transition: all 0.2s ease;
    background: white;
}

.pagination .page-link:hover {
    background: rgba(99, 102, 241, 0.08);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.pagination .page-item.active .page-link {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.pagination .page-item.disabled .page-link {
    opacity: 0.4;
    cursor: not-allowed;
    background: var(--bg-surface-hover);
}

.pagination .page-link i {
    font-size: 0.875rem;
    vertical-align: middle;
}

.btn-primary {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.2);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    background: #4f46e5;
    border-color: #4f46e5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-primary i {
    position: relative;
    z-index: 1;
}

.btn-outline-secondary {
    border: 1.5px solid var(--border-light);
    color: var(--text-main);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    background: white;
    transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
    background: var(--bg-surface-hover);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* Responsive */
@media (max-width: 992px) {
    .filter-sidebar {
        position: static;
        max-height: none;
        margin-bottom: 2rem;
    }
    
    .results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

