/* ==========================================================================
   POSTBIT AUTHOR HUD (250x200 AVATAR & CHARAKTER-ECKDATEN)
   ========================================================================== */

.post.classic .post_author.capitol-postbit-author {
    width: 274px !important;
    min-width: 274px !important;
    padding: 14px 12px !important;
    background: linear-gradient(180deg, rgba(11, 17, 26, 0.98) 0%, rgba(7, 10, 16, 0.99) 100%) !important;
    border-right: 1px solid rgba(0, 240, 255, 0.2) !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.pb-avatar-box {
    width: 250px !important;
    height: 200px !important;
    min-width: 250px !important;
    min-height: 200px !important;
    border: 1px solid var(--capitol-cyan);
    background: rgba(0, 240, 255, 0.04);
    padding: 3px;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    overflow: hidden;
    box-shadow: 0 0 14px rgba(0, 240, 255, 0.16);
}

.pb-avatar-box a {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
}

.pb-avatar-box img {
    width: 244px !important;
    height: 194px !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center top !important;
    display: block !important;
}
/* Name, Titel & Distrikt-Badge */
.pb-identity {
    width: 100%;
    text-align: center;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0, 240, 255, 0.15);
}

.pb-username {
    font-family: 'Rajdhani', sans-serif;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.pb-usertitle {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

.pb-district-tag {
    --badge-color: var(--capitol-cyan);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 6px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--badge-color);
    background: rgba(5, 8, 13, 0.9);
    border: 1px solid var(--badge-color);
    border-left: 3px solid var(--badge-color);
    padding: 2px 10px;
    clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
}

.pb-district-tag[data-district*="Kapitol" i] { --badge-color: #ffb703; }
.pb-district-tag[data-district*="1"]          { --badge-color: #e879f9; }
.pb-district-tag[data-district*="2"]          { --badge-color: #f97316; }
.pb-district-tag[data-district*="3"]          { --badge-color: #00f0ff; }
.pb-district-tag[data-district*="4"]          { --badge-color: #0ea5e9; }
.pb-district-tag[data-district*="5"]          { --badge-color: #facc15; }
.pb-district-tag[data-district*="6"]          { --badge-color: #818cf8; }
.pb-district-tag[data-district*="7"]          { --badge-color: #10b981; }
.pb-district-tag[data-district*="8"]          { --badge-color: #fb7185; }
.pb-district-tag[data-district*="9"]          { --badge-color: #eab308; }
.pb-district-tag[data-district*="10"]         { --badge-color: #d97706; }
.pb-district-tag[data-district*="11"]         { --badge-color: #84cc16; }
.pb-district-tag[data-district*="12"]         { --badge-color: #ef4444; }
.pb-district-tag[data-district*="13"]         { --badge-color: #22c55e; }

/* Kompakte Charakter-Eckdaten */
.pb-char-dossier {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pb-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    background: rgba(5, 8, 13, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-left: 2px solid var(--capitol-cyan);
    padding: 4px 8px;
    font-size: 11.5px;
}

.pb-info-row span {
    font-family: 'Rajdhani', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.pb-info-row strong {
    color: #e2e8f0;
    font-weight: 600;
    text-align: right;
}

/* Spielername & Beitragszähler */
.pb-footer-meta {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 2px;
}

.pb-operator-badge {
    background: rgba(255, 183, 3, 0.08);
    border: 1px solid rgba(255, 183, 3, 0.32);
    color: var(--capitol-gold);
    font-family: 'Rajdhani', sans-serif;
    font-size: 11px;
    letter-spacing: 1px;
    padding: 4px 8px;
    text-align: center;
}

.pb-operator-badge strong {
    color: #fff;
}

.pb-post-stats {
    text-align: center;
    font-size: 10.5px;
    color: var(--text-muted);
}

/* Wenn kein Avatarbild vorhanden ist -> Capitol No-Signal Hologramm */
.pb-avatar-box:empty {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: 
        repeating-linear-gradient(0deg, rgba(0, 240, 255, 0.04) 0px, rgba(0, 240, 255, 0.04) 1px, transparent 1px, transparent 4px),
        radial-gradient(circle, rgba(0, 240, 255, 0.14) 0%, rgba(5, 8, 13, 0.96) 80%) !important;
}

.pb-avatar-box:empty::before {
    content: "\f21b"; /* FontAwesome Agent/Signal-Icon (alternativ \f030 für Kamera) */
    font-family: "FontAwesome";
    font-size: 42px;
    color: var(--capitol-cyan);
    opacity: 0.75;
    margin-bottom: 8px;
    text-shadow: 0 0 12px rgba(0, 240, 255, 0.5);
}

.pb-avatar-box:empty::after {
    content: "// NO_VISUAL_FEED";
    font-family: 'Rajdhani', monospace, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--capitol-gold);
}

/* ==========================================================================
   PROFIL-HEADER AVATAR AUF 250x200px ANPASSEN
   ========================================================================== */

.id-avatar-frame {
    width: 250px !important;
    height: 200px !important;
    min-width: 250px !important;
    min-height: 200px !important;
    padding: 3px !important;
}

.id-avatar-frame img {
    width: 244px !important;
    height: 194px !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center top !important;
}

@media (max-width: 768px) {
    .id-avatar-frame {
        width: 200px !important;
        height: 160px !important;
        min-width: 200px !important;
        min-height: 160px !important;
    }
    .id-avatar-frame img {
        width: 194px !important;
        height: 154px !important;
    }
}