/* =============================================================================
   KB ARTICLE: Sérvhálók beültetési pozíciói és típusai
   ============================================================================= */

.kb-mt-article {
    max-width: 960px;
    margin: 0 auto;
    padding: 3.5rem 1rem;
}

/* Lead */
.kb-mt-lead {
    font-size: 1.2rem;
    line-height: 1.9;
    color: var(--text-secondary);
    border-left: 4px solid var(--primary);
    padding-left: 1.5rem;
    margin-bottom: 3rem;
}

/* Section heading */
.kb-mt-section-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 3rem 0 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--bg-blue-light);
}

.kb-mt-section-title:first-of-type {
    margin-top: 0;
}

/* Diagram image */
.kb-mt-diagram {
    margin-bottom: 2.5rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: var(--bg-light);
    text-align: center;
}

.kb-mt-diagram img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.kb-mt-diagram figcaption {
    font-size: 0.9rem;
    color: var(--text-light);
    padding: 0.75rem 1rem;
    font-style: italic;
}

/* Position cards */
.kb-mt-positions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.kb-mt-pos {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.kb-mt-pos:hover {
    box-shadow: var(--shadow-sm);
}

.kb-mt-pos--good {
    border-left: 4px solid var(--success);
    background: #f0fdf4;
}

.kb-mt-pos--bad {
    border-left: 4px solid var(--danger);
    background: #fef2f2;
}

.kb-mt-pos--neutral {
    border-left: 4px solid var(--warning);
    background: #fffbeb;
}

.kb-mt-pos-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.5rem;
}

.kb-mt-pos-badge {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.kb-mt-pos--good .kb-mt-pos-badge {
    background: var(--success);
    color: #fff;
}

.kb-mt-pos--bad .kb-mt-pos-badge {
    background: var(--danger);
    color: #fff;
}

.kb-mt-pos--neutral .kb-mt-pos-badge {
    background: var(--warning);
    color: #fff;
}

.kb-mt-pos-details {
    list-style: none;
    margin: 0;
    padding: 0;
}

.kb-mt-pos-details li {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    padding: 0.2rem 0;
}

.kb-mt-pos p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0;
}

/* Quote / key insight box */
.kb-mt-quote {
    background: var(--bg-blue-light);
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    padding: 1.75rem 2rem;
    margin: 2.5rem 0;
    font-size: 1.15rem;
    font-style: italic;
    color: var(--primary-dark);
    line-height: 1.7;
}

.kb-mt-quote p {
    margin: 0 0 0.5rem;
    font-size: 1.08rem;
    color: var(--text-primary);
}

.kb-mt-quote p:last-child {
    margin-bottom: 0;
}

/* Key points list below quote */
.kb-mt-keypoints {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
}

.kb-mt-keypoints li {
    position: relative;
    padding-left: 1.5rem;
    font-size: 1rem;
    font-style: normal;
    line-height: 1.7;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
}

.kb-mt-keypoints li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

/* Materials section */
.kb-mt-materials {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.kb-mt-material-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.kb-mt-material-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-sm);
}

.kb-mt-material-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.75rem;
}

.kb-mt-material-card h5 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin: 0.75rem 0 0.4rem;
}

.kb-mt-material-items {
    list-style: none;
    margin: 0;
    padding: 0;
}

.kb-mt-material-items li {
    position: relative;
    padding-left: 1.25rem;
    font-size: 0.98rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 0.3rem;
}

.kb-mt-material-items li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
}

.kb-mt-props {
    margin-top: 0.5rem;
}

.kb-mt-props li::before {
    background: var(--primary-light);
}

/* Structure tags */
.kb-mt-structure {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 3rem;
}

.kb-mt-struct-tag {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 0.85rem 1.25rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.kb-mt-struct-tag:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-sm);
}

.kb-mt-struct-tag strong {
    display: block;
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.kb-mt-struct-tag span {
    font-size: 0.88rem;
    color: var(--text-light);
}

.kb-mt-struct-tag--preferred {
    border-color: var(--success);
    background: #f0fdf4;
}

/* Back link */
.kb-mt-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.2s ease;
}

.kb-mt-back:hover {
    gap: 0.75rem;
}

/* Responsive */
@media (min-width: 768px) {
    .kb-mt-positions {
        grid-template-columns: 1fr 1fr;
    }

    .kb-mt-pos--wide {
        grid-column: 1 / -1;
    }

    .kb-mt-materials {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .kb-mt-article {
        padding: 2rem 1rem;
    }

    .kb-mt-quote {
        padding: 1.25rem 1.5rem;
    }
}