/* ATS Job Cards Styling */

.ats-job-card {
    background: var(--hi-card-bg);
    border: 1.5px solid var(--hi-card-border);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 20px;
}

.ats-job-card:hover {
    border-color: rgba(102, 126, 234, 0.4);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.12);
    transform: translateY(-2px);
}

.ats-job-title {
    margin: 0 0 16px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
}

.ats-job-title a {
    color: var(--hi-heading-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.ats-job-title a:hover {
    color: #667eea;
}

.ats-job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 14px;
    color: var(--hi-text-muted);
}

.ats-job-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ats-job-excerpt {
    color: var(--hi-text-secondary);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.ats-job-actions {
    display: flex;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid var(--hi-separator);
}

.ats-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    border: none;
    font-family: inherit;
}

.ats-btn svg {
    flex-shrink: 0;
}

.ats-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.ats-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.ats-btn-outline {
    background: transparent;
    color: var(--hi-text-primary);
    border: 1.5px solid var(--hi-card-border);
}

.ats-btn-outline:hover {
    background: rgba(102, 126, 234, 0.08);
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-1px);
}

/* Theme Variables */
:root {
    --hi-card-bg: #ffffff;
    --hi-card-border: #e2e8f0;
    --hi-heading-color: #1a202c;
    --hi-text-primary: #2d3748;
    --hi-text-secondary: #4a5568;
    --hi-text-muted: #718096;
    --hi-separator: rgba(226, 232, 240, 0.6);
}

[data-theme="dark"] {
    --hi-card-bg: #1a202c;
    --hi-card-border: #2d3748;
    --hi-heading-color: #f7fafc;
    --hi-text-primary: #e2e8f0;
    --hi-text-secondary: #cbd5e0;
    --hi-text-muted: #a0aec0;
    --hi-separator: rgba(45, 55, 72, 0.6);
}

/* Filters */
.ats-filters {
    margin-bottom: 32px;
    padding: 24px;
    background: var(--hi-card-bg);
    border: 1.5px solid var(--hi-card-border);
    border-radius: 16px;
}

.ats-filter-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    align-items: end;
}

.ats-filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ats-search-input,
.ats-filter-select {
    padding: 12px 16px;
    border: 1.5px solid var(--hi-card-border);
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    background: var(--hi-form-input-bg);
    color: var(--hi-text-primary);
    transition: all 0.2s ease;
}

.ats-search-input:focus,
.ats-filter-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.ats-filter-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.ats-filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Jobs Grid */
.ats-jobs-grid {
    display: grid;
    gap: 20px;
}

.ats-no-jobs {
    text-align: center;
    padding: 60px 20px;
    color: var(--hi-text-muted);
    font-size: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .ats-filter-form {
        grid-template-columns: 1fr;
    }
    
    .ats-job-actions {
        flex-direction: column;
    }
    
    .ats-btn {
        width: 100%;
    }
}
