/**
 * Educational Section UI/UX Enhancement Styles
 *
 * All styles scoped under .edu-enhanced to prevent affecting other calculators.
 * Add the edu-enhanced class to the .educational-section wrapper to enable.
 *
 * @version 1.0.0
 */

/* ============================================
   1. SECTION HEADINGS WITH ICONS
   ============================================ */
.edu-enhanced .edu-section-heading {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e5e7eb;
}

.edu-enhanced .edu-section-heading i {
    color: #2563eb;
    font-size: 1.1rem;
}

.edu-enhanced .edu-section-heading:first-of-type {
    margin-top: 0;
}

/* ============================================
   2. FORMULA DISPLAY BOX
   ============================================ */
.edu-enhanced .formula-box {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    text-align: center;
}

.edu-enhanced .formula-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #3b82f6;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.edu-enhanced .formula-content {
    font-size: 1.5rem;
    font-family: 'Georgia', serif;
    color: #1e40af;
    font-weight: 500;
}

/* ============================================
   3. TWO-COLUMN COMPARISON CARDS
   ============================================ */
.edu-enhanced .comparison-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.edu-enhanced .comparison-card {
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.edu-enhanced .comparison-card--positive {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-color: #86efac;
}

.edu-enhanced .comparison-card--negative {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-color: #fca5a5;
}

/* Neutral variant for non-good/bad comparisons */
.edu-enhanced .comparison-card--neutral-left {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-color: #93c5fd;
}

.edu-enhanced .comparison-card--neutral-right {
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
    border-color: #c4b5fd;
}

.edu-enhanced .comparison-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.edu-enhanced .comparison-card--positive .comparison-icon {
    background: #22c55e;
    color: white;
}

.edu-enhanced .comparison-card--negative .comparison-icon {
    background: #ef4444;
    color: white;
}

.edu-enhanced .comparison-card--neutral-left .comparison-icon {
    background: #2563eb;
    color: white;
}

.edu-enhanced .comparison-card--neutral-right .comparison-icon {
    background: #7c3aed;
    color: white;
}

.edu-enhanced .comparison-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.edu-enhanced .comparison-desc {
    font-size: 0.9rem;
    color: #4b5563;
    margin: 0;
    line-height: 1.6;
}

@media (max-width: 767px) {
    .edu-enhanced .comparison-cards {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   4. LIFECYCLE TIMELINE/STEPPER
   ============================================ */
.edu-enhanced .lifecycle-timeline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin: 2rem 0;
    padding: 1rem 0;
    list-style: none;
    gap: 1rem;
}

.edu-enhanced .lifecycle-step {
    flex: 1;
    text-align: center;
    position: relative;
}

/* Visual connector via pseudo-element */
.edu-enhanced .lifecycle-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 24px;
    right: -0.75rem;
    width: calc(100% - 48px);
    height: 3px;
    background: linear-gradient(90deg, #2563eb, #60a5fa);
    border-radius: 2px;
    transform: translateX(50%);
}

.edu-enhanced .lifecycle-marker {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    margin: 0 auto 1rem;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.edu-enhanced .lifecycle-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.edu-enhanced .lifecycle-desc {
    font-size: 0.875rem;
    color: #4b5563;
    line-height: 1.5;
    margin: 0;
    padding: 0 0.5rem;
}

@media (max-width: 767px) {
    .edu-enhanced .lifecycle-timeline {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .edu-enhanced .lifecycle-step {
        text-align: left;
        display: flex;
        gap: 1rem;
        padding: 0.5rem 0;
    }

    .edu-enhanced .lifecycle-step:not(:last-child)::after {
        top: auto;
        bottom: -0.5rem;
        left: 24px;
        right: auto;
        width: 3px;
        height: 30px;
        transform: none;
    }

    .edu-enhanced .lifecycle-marker {
        flex-shrink: 0;
        margin: 0;
    }

    .edu-enhanced .lifecycle-content {
        text-align: left;
    }
}

/* ============================================
   5. ENHANCED ALERT BOXES
   ============================================ */
.edu-enhanced .alert-info {
    border-left: 4px solid #3b82f6;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

.edu-enhanced .alert-warning {
    border-left: 4px solid #f59e0b;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
}
