.article-hero {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 50%, #1e3a5f 100%);
    padding: 120px 20px 60px;
    text-align: center;
    margin-top: 70px;
}

body.light-mode .article-hero {
    background: linear-gradient(135deg, #e8f4fd 0%, #d1e8f8 50%, #b8ddf5 100%);
}

.article-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -1px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.article-category {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    display: inline-block;
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
    background: var(--bg-primary);
}

.article-content h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 50px 0 20px;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.article-content h3 {
    font-size: 1.6rem;
    font-weight: 600;
    margin: 30px 0 15px;
    color: var(--text-primary);
}

.article-content p {
    font-size: 1.15rem;
    line-height: 1.9;
    margin-bottom: 25px;
    color: var(--text-secondary);
}

.article-content ul,
.article-content ol {
    margin: 20px 0;
    padding-left: 25px;
}

.article-content li {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.article-content li:last-child {
    margin-bottom: 0;
}

.article-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

.article-content em {
    color: var(--accent-start);
    font-style: italic;
}

/* Part headers */
.part-header {
    background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
    color: white;
    padding: 20px 30px;
    border-radius: 12px;
    margin: 50px 0 30px;
    text-align: center;
}

.part-header h2 {
    color: white;
    margin: 0;
    font-size: 1.8rem;
}

/* Framework boxes */
.framework-box {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 30px;
    margin: 30px 0;
}

.framework-box h3 {
    color: var(--accent-start);
    font-size: 1.5rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.framework-box .framework-label {
    background: var(--accent-start);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.framework-box .step-number {
    background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-right: 10px;
}

/* COIN Model specific styles */
.coin-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.coin-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 25px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.coin-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

body.light-mode .coin-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.coin-card h4 {
    color: var(--accent-start);
    font-size: 1.3rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.coin-card .example {
    background: rgba(102, 126, 234, 0.1);
    border-left: 3px solid var(--accent-start);
    padding: 15px;
    margin-top: 15px;
    border-radius: 0 8px 8px 0;
}

.coin-card .example-label {
    font-size: 0.85rem;
    color: var(--accent-start);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.coin-card .example p {
    font-size: 1rem;
    margin: 0;
    color: var(--text-secondary);
}

.coin-card .example strong {
    color: #22c55e;
}

.coin-card .example-bad {
    border-left-color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.coin-card .example-bad .example-label,
.coin-card .example-bad strong {
    color: #ef4444;
}

/* Highlight box */
.highlight-box {
    background: var(--card-bg);
    border-left: 4px solid var(--accent-start);
    padding: 25px;
    margin: 40px 0;
    border-radius: 8px;
}

body.light-mode .highlight-box {
    background: #f8f9fa;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.highlight-box h4 {
    color: var(--accent-start);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

/* Stats box */
.stats-box {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.stat-card {
    background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    color: white;
}

.stat-card .stat-number {
    font-size: 3rem;
    font-weight: 800;
    display: block;
    margin-bottom: 5px;
}

.stat-card .stat-label {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Comparison table */
.comparison-table {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 30px;
    margin: 40px 0;
    overflow-x: auto;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table th {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 15px;
    text-align: left;
    font-weight: 700;
    border-bottom: 2px solid var(--card-border);
}

.comparison-table td {
    padding: 15px;
    border-bottom: 1px solid var(--card-border);
    vertical-align: top;
}

.comparison-table tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

/* Checklist styles */
.checklist {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 30px;
    margin: 30px 0;
}

.checklist h3 {
    color: var(--accent-start);
    margin-bottom: 20px;
}

.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    padding: 15px;
    background: var(--bg-secondary);
    border-radius: 8px;
}

.checklist-item:last-child {
    margin-bottom: 0;
}

.checklist-checkbox {
    width: 24px;
    height: 24px;
    border: 2px solid var(--accent-start);
    border-radius: 4px;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Exercise box */
.exercise-box {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 2px solid #22c55e;
    border-radius: 12px;
    padding: 30px;
    margin: 40px 0;
}

body.dark-mode .exercise-box {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(34, 197, 94, 0.05));
}

.exercise-box h3 {
    color: #16a34a;
    margin-bottom: 15px;
}

.exercise-box h4 {
    color: #16a34a;
    margin: 20px 0 10px;
    font-size: 1.1rem;
}

body.dark-mode .exercise-box {
    border-color: var(--accent-start);
}

body.dark-mode .exercise-box h3,
body.dark-mode .exercise-box h4 {
    color: var(--accent-start);
}

.exercise-box .fill-in {
    background: white;
    border: 1px dashed #16a34a;
    padding: 10px 15px;
    margin: 10px 0;
    border-radius: 6px;
    color: #6b7280;
    font-style: italic;
}

body.dark-mode .exercise-box .fill-in {
    background: var(--card-bg);
    border-color: var(--accent-start);
    color: var(--text-secondary);
}

/* Callout boxes */
.callout {
    padding: 20px 25px;
    border-radius: 12px;
    margin: 30px 0;
}

.callout-info {
    background: rgba(59, 130, 246, 0.1);
    border-left: 4px solid #3b82f6;
}

.callout-warning {
    background: rgba(245, 158, 11, 0.1);
    border-left: 4px solid #f59e0b;
}

.callout-success {
    background: rgba(34, 197, 94, 0.1);
    border-left: 4px solid #22c55e;
}

.callout-danger {
    background: rgba(239, 68, 68, 0.1);
    border-left: 4px solid #ef4444;
}

.callout h4 {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.callout p {
    margin: 0;
    font-size: 1.05rem;
}

/* CTA Box */
.cta-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    margin: 60px 0;
}

.cta-box h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: white;
}

.cta-box p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.cta-button {
    display: inline-block;
    background: white;
    color: #667eea;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Real-world examples */
.example-scenario {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 30px;
    margin: 40px 0;
}

.example-scenario .scenario-label {
    background: #f59e0b;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 15px;
}

.example-scenario h4 {
    color: var(--text-primary);
    margin: 15px 0 10px;
}

.example-scenario .dialogue {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
}

.example-scenario .dialogue p {
    font-size: 1rem;
    margin-bottom: 10px;
}

.example-scenario .dialogue p:last-child {
    margin-bottom: 0;
}

/* Two column layout */
.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 30px 0;
}

.two-column .column {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 25px;
}

.two-column h4 {
    color: var(--accent-start);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

/* Table of contents */
.toc {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 25px;
    margin: 30px 0;
}

.toc h4 {
    color: var(--text-primary);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.toc ul {
    list-style: none;
    padding: 0;
}

.toc li {
    margin-bottom: 10px;
}

.toc a {
    color: var(--accent-start);
    text-decoration: none;
    transition: color 0.2s;
}

.toc a:hover {
    color: var(--accent-end);
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .article-hero h1 {
        font-size: 2.2rem;
    }

    .article-content h2 {
        font-size: 1.8rem;
    }

    .article-content h3 {
        font-size: 1.4rem;
    }

    .article-content p {
        font-size: 1.05rem;
    }

    .article-meta {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .coin-section {
        grid-template-columns: 1fr;
    }

    .stats-box {
        grid-template-columns: 1fr;
    }

    .two-column {
        grid-template-columns: 1fr;
    }

    .comparison-table {
        font-size: 0.9rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 10px;
    }
}
