/* AI-Powered Natural Language Job Search */

.ai-search-container {
    background: linear-gradient(135deg, var(--revolution-red), var(--dark-red));
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.ai-search-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

.ai-search-header {
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.ai-search-title {
    font-family: 'Anton', sans-serif;
    font-size: 1.8rem;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.ai-search-subtitle {
    opacity: 0.9;
    font-size: 1rem;
}

.ai-search-input-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    z-index: 1;
}

.ai-search-input {
    width: 100%;
    padding: 1.25rem 60px 1.25rem 20px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.95);
    color: var(--pure-black);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.ai-search-input:focus {
    outline: none;
    background: var(--pure-white);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.ai-search-input::placeholder {
    color: var(--medium-gray);
    font-style: italic;
}

.ai-search-button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--revolution-red);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.ai-search-button:hover {
    background: var(--dark-red);
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.ai-processing {
    display: none;
    text-align: center;
    margin-top: 1rem;
    position: relative;
    z-index: 1;
}

.ai-processing.active {
    display: block;
}

.processing-text {
    opacity: 0.9;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.processing-dots {
    display: inline-block;
    width: 60px;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.processing-dots::after {
    content: '';
    position: absolute;
    left: -100%;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 3px;
    animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

.ai-suggestions {
    display: none;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 1rem;
    margin-top: 1rem;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
}

.ai-suggestions.active {
    display: block;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.suggestions-title {
    font-weight: 700;
    color: var(--pure-black);
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.suggestion-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.suggestion-tag {
    background: var(--light-gray);
    color: var(--medium-gray);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.suggestion-tag:hover {
    background: var(--revolution-red);
    color: white;
    transform: translateY(-1px);
}

.suggestion-tag.selected {
    background: var(--revolution-red);
    color: white;
    border-color: var(--dark-red);
}

.ai-insights {
    display: none;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-top: 1rem;
    position: relative;
    z-index: 1;
}

.ai-insights.active {
    display: grid;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.insight-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 0.75rem;
    text-align: center;
    backdrop-filter: blur(10px);
}

.insight-icon {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.insight-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
    margin-bottom: 0.25rem;
}

.insight-value {
    font-weight: 700;
    font-size: 0.8rem;
}

.clear-search {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2;
}

.ai-search-container.has-content .clear-search {
    opacity: 1;
}

.clear-search:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Sample queries for inspiration */
.sample-queries {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.sample-query {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.sample-query:hover {
    background: rgba(255, 255, 255, 0.25);
    opacity: 1;
    transform: translateY(-1px);
}

/* Manual filters styling fix */
.manual-filters-container {
    background: var(--light-gray);
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.manual-filters-header {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--medium-gray);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive */
@media (max-width: 768px) {
    .ai-search-container {
        padding: 1.5rem 1rem;
    }
    
    .ai-search-title {
        font-size: 1.5rem;
    }
    
    .ai-search-input {
        font-size: 1rem;
        padding: 1rem 50px 1rem 16px;
    }
    
    .sample-queries {
        gap: 0.5rem;
    }
    
    .sample-query {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
    
    .ai-insights {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }
    
    .insight-card {
        padding: 0.5rem;
    }
    
    .insight-icon {
        font-size: 1rem;
    }
    
    .insight-label {
        font-size: 0.65rem;
    }
    
    .insight-value {
        font-size: 0.75rem;
    }
}