/*
 * OASC Article Formatter - Component Styles
 * Extracted from the reference article (post-2091)
 * Self-contained typography: Poppins headings, Rubik body
 */

/* ── Fonts ─────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&family=Rubik:wght@400;500;600&display=swap');

/* ── Article Container ─────────────────────── */
.medical-article-container {
    margin: 0 auto;
    color: #333;
    font-family: 'Rubik', sans-serif;
    font-weight: 400;
    line-height: 1.7;
    font-size: 1rem;
}

.medical-article-container h2 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: #243C8E;
    margin: 0 0 1.25rem 0;
    font-size: 1.6rem;
    line-height: 1.3;
}

.medical-article-container h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: #243C8E;
    margin: 1.5rem 0 1rem 0;
    font-size: 1.25rem;
    line-height: 1.3;
}

.medical-article-container p {
    font-family: 'Rubik', sans-serif;
    font-weight: 400;
    margin: 0 0 1rem 0;
}

.medical-article-container a {
    color: #12367f;
    text-decoration: underline;
}

.medical-article-container ul,
.medical-article-container ol {
    font-family: 'Rubik', sans-serif;
    font-weight: 400;
    margin: 0 0 1rem 0;
    padding-left: 1.5rem;
}

.medical-article-container li {
    margin-bottom: 0.4rem;
}

/* ── Hero Section ──────────────────────────── */
.hero-section {
    background: linear-gradient(135deg, #12367f 0%, #195a7d 100%);
    color: #fff;
    padding: 3rem 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    text-align: center;
}

.hero-section p {
    color: #fff;
    opacity: 0.9;
    max-width: 600px;
    margin: 1rem auto 0 auto;
}

/* ── Stat Highlight ────────────────────────── */
.stat-highlight {
    background: #f8f9fa;
    border-left: 4px solid #243C8E;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #12367f;
    display: block;
    font-family: 'Poppins', sans-serif;
}

/* ── Content Section ───────────────────────── */
.content-section {
    margin: 2.5rem 0;
}

/* ── Key Takeaway Box ──────────────────────── */
.key-takeaway-box {
    background: #f8f9fa;
    border-left: 4px solid #243C8E;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
}

.key-takeaway-box h3 {
    margin: 0 0 1rem 0;
    color: #243C8E;
}

.key-takeaway-box p {
    margin: 0;
    font-weight: 400;
}

/* ── Warning Box ───────────────────────────── */
.warning-box {
    background: #fff3cd;
    border: 1px solid #ffecb5;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.warning-title {
    color: #856404;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.warning-icon {
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

.warning-box ul {
    margin-bottom: 0;
}

/* ── Recovery Milestone ────────────────────── */
.recovery-milestone {
    background: #d4edda;
    border-left: 4px solid #28a745;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 6px 6px 0;
}

.milestone-title {
    font-weight: 600;
    color: #155724;
    margin-bottom: 0.5rem;
    font-family: 'Poppins', sans-serif;
}

.recovery-milestone ul {
    margin-bottom: 0;
}

/* ── Equipment / List Container ────────────── */
.equipment-list {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.equipment-title {
    font-weight: 600;
    color: #12367f;
    margin-bottom: 1rem;
    font-family: 'Poppins', sans-serif;
}

.equipment-list ul {
    margin-bottom: 0;
}

/* ── Scoped Table Styles ───────────────────── */
.equipment-list table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.equipment-list table th {
    padding: 1rem;
    text-align: left;
    border: 1px solid #dee2e6;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: #243C8E;
    background: #f8f9fa;
}

.equipment-list table td {
    padding: 1rem;
    border: 1px solid #dee2e6;
    font-family: 'Rubik', sans-serif;
    font-weight: 400;
}

.equipment-list table tbody tr:nth-child(even) {
    background: #f8f9fa;
}

.equipment-list .table-scroll {
    overflow-x: auto;
    margin-top: 1rem;
}

/* ── Pain Scale ────────────────────────────── */
.pain-scale {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 6px;
    margin: 1rem 0;
}

.pain-number {
    background: #12367f;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-right: 1rem;
    flex-shrink: 0;
    font-family: 'Poppins', sans-serif;
}

.pain-scale-content strong {
    display: block;
    margin-bottom: 0.25rem;
}

.pain-scale-content p {
    margin: 0;
}

/* ── Highlight Text ────────────────────────── */
.highlight-text {
    background: linear-gradient(120deg, #a8dadc 0%, #a8dadc 100%);
    background-repeat: no-repeat;
    background-size: 100% 0.3em;
    background-position: 0 88%;
    font-weight: 600;
}

/* ── CTA Section ───────────────────────────── */
.cta-section {
    background: linear-gradient(135deg, #12367f 0%, #195a7d 100%);
    color: #fff;
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
    margin: 3rem 0;
}

.cta-title {
    margin-bottom: 1rem;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.6rem;
}

.cta-section p {
    color: #fff;
    opacity: 0.9;
}

.cta-button {
    background: #fff;
    color: #12367f;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin-top: 1rem;
    font-family: 'Poppins', sans-serif;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    color: #12367f;
    text-decoration: none;
}

/* ── Responsive ────────────────────────────── */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 1.5rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .pain-scale {
        flex-direction: column;
        text-align: center;
    }

    .pain-number {
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .cta-section {
        padding: 2rem 1.5rem;
    }

    .equipment-list table {
        min-width: 500px;
    }
}
