/* ATS Checker Styles */

.ats-container {
    max-width: 1400px;
    margin: calc(var(--header-height, 52px) + 20px) auto calc(var(--status-bar-height, 28px) + 20px);
    padding: 20px;
}

/* Input Section */
.ats-input-section {
    margin-bottom: 30px;
}

.input-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.input-group.full-width {
    width: 100%;
}

.input-group h3 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.input-helper {
    margin-top: 10px;
    padding: 12px 15px;
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    border-radius: 6px;
    color: #1565c0;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.input-helper .iconify {
    font-size: 18px;
}

#jd-input {
    width: 100%;
    min-height: 350px;
    padding: 20px;
    border: 2px solid var(--border-default, #ddd);
    border-radius: var(--radius-md, 8px);
    font-family: var(--font-mono, monospace);
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
    background: var(--surface-card, white);
    color: var(--text-primary, #333);
}

#jd-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* Actions */
.ats-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.ats-actions button {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

#analyze-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

#analyze-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

#download-json-btn {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    color: white;
}

#download-json-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

#ai-enhance-btn {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

#ai-enhance-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 87, 108, 0.4);
}

#clear-btn {
    background: #95a5a6;
    color: white;
}

#clear-btn:hover {
    background: #7f8c8d;
}

/* Results Section */
#ats-results {
    background: var(--surface-card, white);
    border-radius: var(--radius-lg, 12px);
    padding: 30px;
    box-shadow: var(--shadow-lg, 0 4px 20px rgba(0, 0, 0, 0.1));
}

.results-header h2 {
    margin: 0 0 30px 0;
    color: #2c3e50;
    font-size: 28px;
    text-align: center;
}

/* Score Section */
.score-section {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 40px;
    margin-bottom: 40px;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: white;
}

.score-circle {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

#ats-score {
    font-size: 64px;
    font-weight: 700;
    line-height: 1;
}

.score-high {
    color: #27ae60;
}

.score-medium {
    color: #f39c12;
}

.score-low {
    color: #e74c3c;
}

.score-label {
    font-size: 20px;
    color: #7f8c8d;
    font-weight: 500;
}

.score-breakdown {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.score-breakdown h3 {
    margin: 0 0 15px 0;
    font-size: 20px;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.breakdown-label {
    font-weight: 500;
}

.breakdown-value {
    font-weight: 700;
    font-size: 18px;
}

/* Keywords Section */
.keywords-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.keywords-column h3 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 18px;
}

.keyword-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 100px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.keyword {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

.keyword.matched {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.keyword.missing {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.keyword.missing.high-impact {
    background: #dc3545;
    color: white;
    border: 1px solid #c82333;
    font-weight: 600;
}

.keyword.missing.medium-impact {
    background: #ff9800;
    color: white;
    border: 1px solid #f57c00;
}

/* Recommendations Section */
.recommendations-section {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.recommendations-section h3 {
    margin: 0 0 15px 0;
    color: #856404;
    font-size: 18px;
}

.recommendations-list {
    margin: 0;
    padding-left: 20px;
}

.recommendations-list li {
    margin-bottom: 10px;
    color: #856404;
    line-height: 1.6;
}

.rec-good {
    color: #155724;
    font-weight: 600;
}

.rec-medium {
    color: #856404;
    font-weight: 600;
}

.rec-bad {
    color: #721c24;
    font-weight: 600;
}

/* AI Results */
#ai-results {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 25px;
    border-radius: 12px;
    margin-top: 30px;
}

#ai-results h3 {
    margin: 0 0 15px 0;
    font-size: 20px;
}

#ai-analysis {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 8px;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .score-section {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .score-circle {
        margin: 0 auto;
    }
    
    .keywords-section {
        grid-template-columns: 1fr;
    }
}

/* Print Styles */
@media print {
    .ats-input-section,
    .ats-actions {
        display: none;
    }
    
    #ats-results {
        margin-top: 0;
        box-shadow: none;
    }
}
