/**
 * Resume Analyzer Frontend Styles
 * Professional and modern styling for the resume analyzer
 */

.resume-analyzer-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.analyzer-header {
    text-align: center;
    margin-bottom: 30px;
    color: white;
}

.analyzer-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.analyzer-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.progress-container {
    margin-bottom: 20px;
}

.progress-bar {
    background: rgba(255, 255, 255, 0.2);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    background: linear-gradient(90deg, #4CAF50, #45a049);
    height: 100%;
    transition: width 0.3s ease;
    border-radius: 4px;
}

.step-counter {
    color: white;
    font-weight: 500;
}

.analyzer-form {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

.step-header {
    text-align: center;
    margin-bottom: 30px;
}

.step-icon {
    background: linear-gradient(135deg, #667eea, #764ba2);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.step-icon .dashicons {
    color: white;
    font-size: 24px;
}

.step-header h2 {
    color: #333;
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0;
}

.form-fields {
    space-y: 20px;
}

.field-group {
    margin-bottom: 25px;
}

.field-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
}

.field-group input[type="text"],
.field-group input[type="email"],
.field-group select,
.field-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #fff;
}

.field-group input[type="text"]:focus,
.field-group input[type="email"]:focus,
.field-group select:focus,
.field-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.field-group input.error,
.field-group select.error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.radio-group,
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
    margin-top: 8px;
}

.radio-group label,
.checkbox-group label {
    display: flex;
    align-items: center;
    padding: 12px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 400;
}

.radio-group label:hover,
.checkbox-group label:hover {
    background: #e3f2fd;
    border-color: #667eea;
}

.radio-group input,
.checkbox-group input {
    margin-right: 10px;
    accent-color: #667eea;
}

.radio-group.error {
    border: 2px solid #e74c3c;
    border-radius: 8px;
    padding: 10px;
}

.form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e9ecef;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.btn-success {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(40, 167, 69, 0.4);
}

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

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-screen p {
    font-size: 1.1rem;
    color: #666;
    margin: 0;
}

.results-container {
    background: white;
    border-radius: 12px;
    padding: 40px;
}

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

.results-header h2 {
    color: #333;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.results-header p {
    color: #666;
    font-size: 1.1rem;
}

.top-recommendation {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    border: 2px solid #28a745;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 40px;
}

.recommendation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.recommendation-header h3 {
    color: #155724;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.recommendation-header .score {
    background: #28a745;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 1.2rem;
    font-weight: 700;
}

.recommendation-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

.recommendation-details h4 {
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.recommendation-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recommendation-details li {
    padding: 5px 0;
    color: #555;
    position: relative;
    padding-left: 20px;
}

.recommendation-details li:before {
    content: "•";
    color: #28a745;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.all-recommendations {
    margin-bottom: 40px;
}

.all-recommendations h3 {
    color: #333;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.recommendation-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 15px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.recommendation-item.top-choice {
    background: #d4edda;
    border-color: #28a745;
}

.recommendation-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.rec-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.rec-header h4 {
    margin: 0;
    color: #333;
    font-size: 1.2rem;
    font-weight: 600;
}

.rec-header .score {
    background: #667eea;
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 600;
}

.recommendation-item .progress-bar {
    background: #e9ecef;
    height: 6px;
    border-radius: 3px;
    margin-bottom: 10px;
    overflow: hidden;
}

.recommendation-item .progress-fill {
    background: linear-gradient(90deg, #667eea, #764ba2);
    height: 100%;
    transition: width 0.5s ease;
}

.suggestions {
    margin-bottom: 40px;
}

.suggestions h3 {
    color: #333;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.suggestion-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.suggestion-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.suggestion-item.warning {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
}

.suggestion-item.tip {
    background: #d1ecf1;
    border-left: 4px solid #17a2b8;
}

.suggestion-item.action {
    background: #d4edda;
    border-left: 4px solid #28a745;
}

.suggestion-icon {
    background: #fff;
    padding: 10px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.suggestion-content h4 {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
}

.suggestion-content p {
    margin: 0;
    color: #555;
    line-height: 1.5;
}

.results-actions {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #e9ecef;
}

/* Responsive Design */
@media (max-width: 768px) {
    .resume-analyzer-wrapper {
        margin: 10px;
        padding: 15px;
    }
    
    .analyzer-form {
        padding: 20px;
    }
    
    .analyzer-title {
        font-size: 2rem;
    }
    
    .radio-group,
    .checkbox-group {
        grid-template-columns: 1fr;
    }
    
    .recommendation-details {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .form-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .rec-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* Print Styles */
@media print {
    .form-navigation,
    .results-actions {
        display: none;
    }
    
    .resume-analyzer-wrapper {
        background: none;
        box-shadow: none;
    }
}
