/* ═══════════════════════════════════════════════════
   KNOWLEDGE BASE ARTICLE STYLES
═══════════════════════════════════════════════════ */

.kb-article-page {
    background: #fff;
    padding: 40px 20px 80px;
}

.kb-article-container {
    max-width: 900px;
    margin: 0 auto;
}

/* ── Breadcrumb ── */
.kb-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.kb-breadcrumb a {
    color: #667eea;
    text-decoration: none;
}

.kb-breadcrumb a:hover {
    text-decoration: underline;
}

/* ── Header ── */
.kb-article-header {
    margin-bottom: 40px;
    padding: 10px;
}

.kb-article-category {
    display: inline-block;
    background: #667eea20;
    color: #667eea;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 50px;
    margin-bottom: 16px;
}

.kb-article-h1 {
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 800;
    color: #111827;
    margin: 0 0 16px;
    line-height: 1.2;
}

.kb-article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
    color: #6b7280;
    flex-wrap: wrap;
}

/* ── Content ── */
.kb-article-content {
    font-size: 17px;
    line-height: 1.8;
    color: #374151;
}

.kb-article-content h2 {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    margin: 48px 0 20px;
    line-height: 1.3;
}

.kb-article-content h3 {
    font-size: 22px;
    font-weight: 600;
    color: #111827;
    margin: 36px 0 16px;
}

.kb-article-content p {
    margin: 0 0 20px;
}

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

.kb-article-content li {
    margin-bottom: 10px;
}

.kb-article-content strong {
    color: #111827;
    font-weight: 600;
    text-wrap: nowrap;
}

.kb-article-content code {
    background: #f3f4f6;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.9em;
    font-family: 'Courier New', monospace;
}

.kb-article-content a {
    color: #667eea;
    text-decoration: none;
}

.kb-article-content a:hover {
    text-decoration: underline;
}

/* ── Info Boxes ── */
.kb-info-box {
    background: linear-gradient(135deg, #667eea10, #764ba210);
    border-left: 4px solid #667eea;
    padding: 20px 24px;
    border-radius: 8px;
    margin: 32px 0;
}

.kb-info-box-title {
    font-size: 16px;
    font-weight: 700;
    color: #667eea;
    margin: 0 0 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.kb-info-box p {
    margin: 0;
    font-size: 15px;
}

.kb-warning-box {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 20px 24px;
    border-radius: 8px;
    margin: 32px 0;
}

.kb-warning-box-title {
    font-size: 16px;
    font-weight: 700;
    color: #92400e;
    margin: 0 0 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.kb-warning-box p {
    margin: 0;
    font-size: 15px;
    color: #78350f;
}

.kb-success-box {
    background: #d1fae5;
    border-left: 4px solid #10b981;
    padding: 20px 24px;
    border-radius: 8px;
    margin: 32px 0;
}

.kb-success-box-title {
    font-size: 16px;
    font-weight: 700;
    color: #065f46;
    margin: 0 0 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.kb-success-box p {
    margin: 0;
    font-size: 15px;
    color: #047857;
}

.kb-danger-box {
    background: #fee2e2;
    border-left: 4px solid #ef4444;
    padding: 20px 24px;
    border-radius: 8px;
    margin: 32px 0;
}

.kb-danger-box-title {
    font-size: 16px;
    font-weight: 700;
    color: #991b1b;
    margin: 0 0 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.kb-danger-box p {
    margin: 0;
    font-size: 15px;
    color: #7f1d1d;
}

/* ── Step Cards ── */
.kb-step-card {
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
    transition: border-color .2s;
}

.kb-step-card:hover {
    border-color: #667eea;
}

.kb-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    border-radius: 50%;
    margin-bottom: 12px;
}

.kb-step-title {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 12px;
}

/* ── Related Articles ── */
.kb-related {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #e5e7eb;
}

.kb-related-title {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 24px;
}

.kb-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.kb-related-card {
    background: #f9fafb;
    border-radius: 12px;
    padding: 20px;
    text-decoration: none;
    transition: all .2s;
    display: block;
}

.kb-related-card:hover {
    background: #667eea10;
    transform: translateY(-2px);
}

.kb-related-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 8px;
}

.kb-related-card-desc {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

/* ── Table ── */
.kb-article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 32px 0;
    font-size: 15px;
}

.kb-article-content table th {
    background: #f9fafb;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: #111827;
    border-bottom: 2px solid #e5e7eb;
}

.kb-article-content table td {
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;
}

.kb-article-content table tr:hover {
    background: #f9fafb;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .kb-article-page {
        padding: 24px 16px 60px;
    }
    
    .kb-article-h1 {
        font-size: 28px;
    }
    
    .kb-article-content {
        font-size: 16px;
    }
    
    .kb-article-content h2 {
        font-size: 24px;
        margin: 36px 0 16px;
    }
    
    .kb-article-content h3 {
        font-size: 20px;
        margin: 28px 0 12px;
    }
    
    .kb-related-grid {
        grid-template-columns: 1fr;
    }
}
