/* =========================================================
   BLUEPOST
   Offizielle Blizzard-Beiträge in News und Guides.
========================================================= */

.mk-bluepost {
    --bp-blue: #00aeff;
    --bp-blue-soft: rgba(0, 174, 255, .1);
    --bp-line: rgba(0, 174, 255, .28);
    --bp-text: #d3dbe4;
    --bp-change: #5cc8ff;

    position: relative;
    margin: 2em 0;
    overflow: hidden;
    border: 1px solid var(--bp-line);
    border-radius: 22px;
    background: rgba(12, 14, 17, .9);
    box-shadow: 0 0 48px rgba(0, 174, 255, .08);
    color: var(--bp-text);
    font-size: 15px;
    line-height: 1.65;
}

/* ---------- Kopfzeile ---------- */

.mk-bluepost-head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(0, 174, 255, .18);
    background: linear-gradient(90deg, rgba(0, 174, 255, .14), rgba(0, 174, 255, .04));
}

.mk-bluepost-avatar {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--bp-line);
    border-radius: 12px;
    background: rgba(0, 174, 255, .12);
    color: var(--bp-blue);
    font-size: 20px;
}

.mk-bluepost-who {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.mk-bluepost-author {
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.2;
}

.mk-bluepost-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    color: #8aa0b4;
    font-size: 12px;
    font-weight: 600;
}

.mk-bluepost-meta > span + span::before {
    content: "·";
    margin-right: 10px;
    color: #4d5c6a;
}

.mk-bluepost-meta .mk-bluepost-badge + span::before {
    display: none;
}

.mk-bluepost-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border: 1px solid var(--bp-line);
    border-radius: 6px;
    background: var(--bp-blue-soft);
    color: var(--bp-blue);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

/* ---------- Inhalt ---------- */

.mk-bluepost .mk-bluepost-body {
    position: relative;
    padding: 22px 24px 24px 44px;
}

.mk-bluepost .mk-bluepost-body::before {
    content: "\201C";
    position: absolute;
    top: 10px;
    left: 18px;
    color: var(--bp-blue);
    font-family: Georgia, serif;
    font-size: 34px;
    line-height: 1;
    opacity: .7;
}

.mk-bluepost .mk-bluepost-body > :first-child {
    margin-top: 0;
}

.mk-bluepost .mk-bluepost-body > :last-child {
    margin-bottom: 0;
}

.mk-bluepost .mk-bluepost-body p {
    margin: 0 0 12px;
    color: var(--bp-text);
}

.mk-bluepost .mk-bluepost-body a {
    color: var(--bp-blue);
    text-decoration: underline;
    text-decoration-color: rgba(0, 174, 255, .35);
    text-underline-offset: 3px;
}

.mk-bluepost .mk-bluepost-body strong {
    color: #fff;
}

.mk-bluepost .mk-bluepost-title,
.mk-bluepost .mk-bluepost-body h2,
.mk-bluepost .mk-bluepost-body h3 {
    margin: 22px 0 10px;
    padding: 0;
    color: #fff;
    font-size: 19px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -.01em;
    text-transform: none;
}

.mk-bluepost .mk-bluepost-body h2::before,
.mk-bluepost .mk-bluepost-body h3::before,
.mk-bluepost .mk-bluepost-body h4::before {
    display: none;
}

.mk-bluepost .mk-bluepost-body h4,
.mk-bluepost .mk-bluepost-body h5 {
    margin: 18px 0 8px;
    padding: 0;
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.3;
}

/* Klassennamen in Klassenfarbe */
.mk-bluepost .mk-bluepost-body [data-class] {
    color: var(--bp-class);
}

/* Erste Listenebene = Karte */
.mk-bluepost .mk-bluepost-body > ul,
.mk-bluepost .mk-bluepost-body > ol {
    margin: 0 0 14px;
    padding: 12px 16px 12px 32px;
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 12px;
    background: rgba(255, 255, 255, .03);
}

.mk-bluepost .mk-bluepost-body li {
    margin: 4px 0;
    padding: 0;
    color: var(--bp-change);
}

.mk-bluepost .mk-bluepost-body li::marker {
    color: var(--bp-blue);
}

/* Spezialisierung als Überschrift innerhalb der Karte */
.mk-bluepost .mk-bluepost-body > ul > li > strong:first-child,
.mk-bluepost .mk-bluepost-body > ol > li > strong:first-child {
    color: #fff;
}

.mk-bluepost .mk-bluepost-body li:has(> ul) {
    color: #fff;
    font-weight: 700;
}

.mk-bluepost .mk-bluepost-body li > ul,
.mk-bluepost .mk-bluepost-body li > ol {
    margin: 4px 0 8px;
    padding-left: 18px;
    font-weight: 400;
}

.mk-bluepost .mk-bluepost-body li > ul > li,
.mk-bluepost .mk-bluepost-body li > ol > li {
    color: var(--bp-change);
}

/* Anmerkungen der Entwickler (kursiv im Original) */
.mk-bluepost .mk-bluepost-body em,
.mk-bluepost .mk-bluepost-body i:not([class]) {
    color: #8fd8ff;
    font-style: italic;
}

.mk-bluepost .mk-bluepost-body blockquote {
    margin: 12px 0;
    padding: 10px 16px;
    border-left: 3px solid var(--bp-blue);
    border-radius: 0 10px 10px 0;
    background: var(--bp-blue-soft);
    color: #e2eaf2;
}

.mk-bluepost .mk-bluepost-body img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.mk-bluepost .mk-bluepost-body hr {
    margin: 18px 0;
    border: 0;
    border-top: 1px solid rgba(0, 174, 255, .15);
}

.mk-bluepost .mk-bluepost-body table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.mk-bluepost .mk-bluepost-body th,
.mk-bluepost .mk-bluepost-body td {
    padding: 8px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    text-align: left;
}

/* ---------- Footer mit Link zum Original ---------- */

.mk-bluepost-foot {
    padding: 12px 20px;
    border-top: 1px solid rgba(0, 174, 255, .15);
    background: rgba(0, 174, 255, .05);
}

.mk-bluepost-foot a,
.mk-bluepost-link {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: #c8d6e3;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.mk-bluepost-foot a:hover {
    color: #fff;
}

.mk-bluepost-host {
    color: var(--bp-blue);
    text-decoration: underline;
    text-decoration-color: rgba(0, 174, 255, .35);
    text-underline-offset: 3px;
}

.mk-bluepost-foot i {
    color: var(--bp-blue);
    font-size: 11px;
}

.mk-bluepost-foot.is-empty .mk-bluepost-link {
    color: #e0a14d;
    font-weight: 600;
}

/* ---------- Editor ---------- */

.mk-bluepost-editor .mk-bluepost-body .block-editor-block-list__layout > ul,
.mk-bluepost-editor .mk-bluepost-body .wp-block-list {
    padding: 12px 16px 12px 32px;
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 12px;
    background: rgba(255, 255, 255, .03);
}

.editor-styles-wrapper .mk-bluepost {
    color: var(--bp-text);
}

/* ---------- Mobil ---------- */

@media (max-width: 640px) {

    .mk-bluepost {
        margin: 1.5em -4px;
        border-radius: 16px;
        font-size: 14px;
    }

    .mk-bluepost-head {
        padding: 12px 14px;
    }

    .mk-bluepost .mk-bluepost-body {
        padding: 18px 14px 18px 30px;
    }

    .mk-bluepost .mk-bluepost-body::before {
        left: 8px;
        font-size: 28px;
    }

    .mk-bluepost .mk-bluepost-body > ul,
    .mk-bluepost .mk-bluepost-body > ol {
        padding: 10px 12px 10px 26px;
    }

    .mk-bluepost-foot {
        padding: 12px 14px;
    }
}
