/* ===================================================================
   EXAMPLES PAGE - BEFORE & AFTER ESSAY COMPARISONS
   =================================================================== */

.content-width {
    max-width: 900px;
    margin: 0 auto;
}

/* Introduction Box */
.intro-box {
    background: white;
    border: 2px solid var(--primary);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 3rem;
}

.legend {
    list-style: none;
    margin: 1.5rem 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.legend li {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.legend-removed,
.legend-added,
.legend-citation {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.875rem;
}

.legend-removed {
    background: #fee2e2;
    color: #991b1b;
    text-decoration: line-through;
}

.legend-added {
    background: #d1fae5;
    color: #065f46;
    font-weight: 600;
}

.legend-citation {
    background: #dbeafe;
    color: #1e40af;
    font-weight: 600;
}

/* Example Header */
.example-header {
    text-align: center;
    margin-bottom: 2rem;
}

.example-header h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.example-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--gray-600);
}

.example-assignment {
    background: var(--gray-100);
    padding: 1rem;
    border-radius: 8px;
    max-width: 800px;
    margin: 1rem auto 0;
}

/* Grade Comparison */
.grade-comparison {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: center;
    max-width: 900px;
    margin: 0 auto 3rem;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.grade-before,
.grade-after {
    text-align: center;
    padding: 1.5rem;
    border-radius: 8px;
}

.grade-before {
    background: #fee2e2;
}

.grade-after {
    background: #d1fae5;
}

.grade-label {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray-600);
    margin-bottom: 0.5rem;
}

.grade-value {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.grade-before .grade-value {
    color: var(--danger);
}

.grade-after .grade-value {
    color: var(--success);
}

.grade-class {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
}

.grade-arrow {
    font-size: 3rem;
    color: var(--primary);
}

/* Essay Comparison */
.essay-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.essay-panel {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.panel-label {
    padding: 1rem 1.5rem;
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.essay-before .panel-label {
    background: #fee2e2;
    color: #991b1b;
}

.essay-after .panel-label {
    background: #d1fae5;
    color: #065f46;
}

.essay-content {
    padding: 2rem;
    font-family: Georgia, 'Times New Roman', serif;
    line-height: 1.8;
}

.essay-content h4 {
    font-family: var(--font-display);
    font-size: 1.125rem;
    color: var(--primary);
    margin: 1.5rem 0 1rem 0;
}

.essay-content h4:first-child {
    margin-top: 0;
}

.essay-content p {
    margin-bottom: 1rem;
}

/* Text Highlighting */
.removed {
    background: #fee2e2;
    color: #991b1b;
    text-decoration: line-through;
    padding: 2px 4px;
    border-radius: 3px;
}

.added {
    background: #d1fae5;
    color: #065f46;
    font-weight: 600;
    padding: 2px 4px;
    border-radius: 3px;
}

.citation {
    background: #dbeafe;
    color: #1e40af;
    font-weight: 600;
    padding: 2px 4px;
    border-radius: 3px;
}

/* Issue/Improvement Tags */
.issue-tags,
.improvement-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px dashed var(--gray-300);
}

.issue-tag,
.improvement-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: var(--font-primary);
}

.issue-tag {
    background: #fee2e2;
    color: #991b1b;
}

.improvement-tag {
    background: #d1fae5;
    color: #065f46;
}

/* Transformation Analysis */
.transformation-analysis {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.transformation-analysis h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.transformation-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.transformation-item {
    border-left: 4px solid var(--primary);
    padding-left: 1rem;
}

.transformation-item strong {
    display: block;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.before-text {
    display: block;
    background: #fee2e2;
    color: #991b1b;
    padding: 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.after-text {
    display: block;
    background: #d1fae5;
    color: #065f46;
    padding: 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
}

/* Deliverables Section */
.deliverables-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.deliverable-card {
    background: white;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
}

.deliverable-card:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(26, 54, 93, 0.1);
    transform: translateY(-4px);
}

.deliverable-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.deliverable-icon i {
    font-size: 2rem;
    color: white;
}

.deliverable-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.deliverable-card p {
    color: var(--gray-600);
    margin: 0;
}

/* Responsive */
@media (max-width: 968px) {
    .essay-comparison {
        grid-template-columns: 1fr;
    }
    
    .transformation-grid {
        grid-template-columns: 1fr;
    }
    
    .deliverables-grid {
        grid-template-columns: 1fr;
    }
    
    .grade-comparison {
        grid-template-columns: 1fr;
    }
    
    .grade-arrow {
        transform: rotate(90deg);
    }
}

@media (max-width: 768px) {
    .example-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .grade-value {
        font-size: 2.5rem;
    }
    
    .transformation-item {
        border-left: none;
        border-top: 4px solid var(--primary);
        padding-left: 0;
        padding-top: 1rem;
    }
    
    .legend {
        gap: 0.5rem;
    }
    
    .legend li {
        flex-direction: column;
        align-items: flex-start;
    }
}
