/* biasChecker.css - Styles for the Feedback Bias Checker tool */

/* Form Styles */
.bias-form {
    max-width: 800px;
    margin: 0 auto;
}

.bias-textarea {
    font-size: 1rem;
    line-height: 1.6;
    resize: vertical;
    min-height: 150px;
}

.bias-textarea:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

/* Results Section */
.results-section {
    max-width: 800px;
    margin: 0 auto;
}

/* Score Card */
.score-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border: 1px solid #dee2e6;
}

.score-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.score-good {
    background: linear-gradient(135deg, #198754 0%, #20c997 100%);
}

.score-medium {
    background: linear-gradient(135deg, #fd7e14 0%, #ffc107 100%);
}

.score-poor {
    background: linear-gradient(135deg, #dc3545 0%, #fd7e14 100%);
}

.score-label {
    flex: 1;
}

/* Result Cards */
.result-card {
    padding: 1.25rem;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}

.result-card h3 {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e9ecef;
}

/* Bias Indicators */
.bias-indicator {
    padding: 1rem;
    margin-bottom: 1rem;
    background: #fff8e6;
    border-left: 4px solid #ffc107;
    border-radius: 0 8px 8px 0;
}

.bias-indicator:last-child {
    margin-bottom: 0;
}

.indicator-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.indicator-header .phrase {
    background: #f8f9fa;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #495057;
}

.bias-indicator .explanation {
    margin-bottom: 0.5rem;
    color: #495057;
}

.bias-indicator .suggestion {
    margin-bottom: 0;
    color: #198754;
    font-size: 0.95rem;
}

/* Improved Version */
.improved-version {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-color: #86efac;
}

.improved-quote {
    font-style: italic;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border-left: 4px solid #198754;
    color: #374151;
    line-height: 1.7;
}

/* Bias Type Cards (Educational Section) */
.bias-type-card {
    height: 100%;
    padding: 1.5rem;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bias-type-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.bias-type-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: #1f2937;
}

.bias-type-card p {
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.bias-type-card .example {
    font-size: 0.9rem;
    padding: 0.75rem;
    background: #f9fafb;
    border-radius: 6px;
    margin-bottom: 0;
    color: #4b5563;
}

/* Strengths List */
#strengthsList {
    padding-left: 1.25rem;
}

#strengthsList li {
    margin-bottom: 0.5rem;
    color: #374151;
}

#strengthsList li:last-child {
    margin-bottom: 0;
}

/* Loading State */
.btn-loading .spinner-border {
    width: 1rem;
    height: 1rem;
}

/* Stats Highlight Section */
.stats-highlight {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
}

.stat-box {
    padding: 1rem;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #6366f1;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.4;
}

/* Bias Type Number Badge */
.bias-type-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 50%;
    margin-bottom: 0.75rem;
}

/* Example Comparison Boxes */
.example-comparison {
    margin-top: 1rem;
    font-size: 0.9rem;
}

.example-bad,
.example-good {
    padding: 0.75rem;
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

.example-bad {
    background: #fef2f2;
    border-left: 3px solid #ef4444;
    color: #991b1b;
}

.example-good {
    background: #f0fdf4;
    border-left: 3px solid #22c55e;
    color: #166534;
}

.example-comparison .label {
    font-weight: 600;
    margin-right: 0.25rem;
}

/* Tips Grid */
.tips-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tip-item {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tip-item:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.tip-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 50%;
    flex-shrink: 0;
}

.tip-content strong {
    display: block;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.tip-content p {
    margin: 0;
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 768px) {
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .tip-item {
        padding: 1rem;
    }
    
    .tip-number {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .score-card {
        flex-direction: column;
        text-align: center;
    }
    
    .indicator-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .bias-textarea {
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .stats-highlight {
        padding: 1rem;
    }
    
    .stat-box {
        padding: 0.5rem;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .example-comparison {
        font-size: 0.85rem;
    }
    
    .tip-item {
        flex-direction: column;
        text-align: center;
    }
    
    .tip-number {
        margin: 0 auto;
    }
}
