/**
 * AI Answer Evaluator - Main Styles
 */

/* Results Styles */
.aae-results {
    animation: fadeIn 0.5s ease;
}

.aae-results-header {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px 12px 0 0;
    margin: -2rem -2rem 2rem -2rem;
}

.aae-results-title {
    font-size: 1.75rem;
    margin: 0 0 1.5rem 0;
    font-weight: 600;
}

.aae-results-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.aae-score-main {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.aae-score-number {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1;
}

.aae-score-grade {
    font-size: 2rem;
    padding: 0.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-weight: 600;
}

.aae-score-detail {
    font-size: 1.25rem;
    opacity: 0.95;
}

.aae-results-sections {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.aae-result-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    border-left: 4px solid #3498db;
}

.aae-result-section.aae-mistakes {
    border-left-color: #e74c3c;
}

.aae-result-section.aae-strengths {
    border-left-color: #2ecc71;
}

.aae-result-section.aae-suggestions {
    border-left-color: #f39c12;
}

.aae-result-heading {
    font-size: 1.25rem;
    margin: 0 0 1rem 0;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.aae-result-content {
    color: #555;
    line-height: 1.6;
}

/* Mistake Items */
.aae-mistake-item,
.aae-strength-item,
.aae-suggestion-item {
    background: white;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 0.75rem;
}

.aae-mistake-item:last-child,
.aae-strength-item:last-child,
.aae-suggestion-item:last-child {
    margin-bottom: 0;
}

.aae-mistake-header,
.aae-strength-header,
.aae-suggestion-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.aae-mistake-number,
.aae-strength-number,
.aae-suggestion-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 600;
    flex-shrink: 0;
}

.aae-strength-number {
    background: #2ecc71;
}

.aae-suggestion-number {
    background: #f39c12;
}

.aae-mistake-title,
.aae-strength-title,
.aae-suggestion-title {
    flex: 1;
    font-weight: 600;
    color: #2c3e50;
}

.aae-marks-deducted {
    background: #fee;
    color: #e74c3c;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.aae-mistake-location {
    font-size: 0.875rem;
    color: #7f8c8d;
    margin-bottom: 0.5rem;
}

.aae-mistake-correction,
.aae-strength-explanation,
.aae-suggestion-explanation {
    font-size: 0.95rem;
    color: #555;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 4px;
    margin-top: 0.5rem;
}

.aae-priority {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.aae-priority-high {
    background: #fee;
    color: #e74c3c;
}

.aae-priority-medium {
    background: #fff4e6;
    color: #f39c12;
}

.aae-priority-low {
    background: #e8f5e9;
    color: #2ecc71;
}

/* Breakdown Grid */
.aae-breakdown-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.aae-breakdown-item {
    background: white;
    padding: 1rem;
    border-radius: 6px;
    text-align: center;
}

.aae-breakdown-label {
    font-size: 0.875rem;
    color: #7f8c8d;
    margin-bottom: 0.5rem;
    text-transform: capitalize;
}

.aae-breakdown-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
}

/* Results Actions */
.aae-results-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #f0f0f0;
}

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

.aae-btn-secondary:hover {
    background: #5a6268;
}

/* Upload States */
.aae-upload-area.aae-drag-over {
    border-color: #3498db;
    background: #f0f8ff;
}

.aae-upload-preview {
    padding: 1rem;
}

.aae-preview-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: white;
    padding: 1rem;
    border-radius: 6px;
}

.aae-preview-icon {
    width: 40px;
    height: 40px;
    background: #2ecc71;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
}

.aae-preview-name {
    flex: 1;
    font-weight: 600;
    color: #2c3e50;
}

.aae-preview-remove {
    width: 30px;
    height: 30px;
    border: none;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
    transition: background 0.3s ease;
}

.aae-preview-remove:hover {
    background: #c0392b;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .aae-score-main {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .aae-score-number {
        font-size: 2.5rem;
    }
    
    .aae-score-grade {
        font-size: 1.5rem;
    }
    
    .aae-form-grid {
        grid-template-columns: 1fr;
    }
    
    .aae-breakdown-grid {
        grid-template-columns: 1fr;
    }
    
    .aae-results-actions {
        flex-direction: column;
    }
    
    .aae-results-header {
        margin: -1rem -1rem 1rem -1rem;
        padding: 1.5rem 1rem;
    }
}

/* Print Styles */
@media print {
    .aae-results-actions,
    .aae-header,
    .aae-form {
        display: none !important;
    }
    
    .aae-card {
        box-shadow: none;
    }
    
    .aae-results-header {
        margin: 0;
        page-break-after: avoid;
    }
    
    .aae-result-section {
        page-break-inside: avoid;
    }
}
