/* ================================================
   postbit_kakaotalk.css — fading-to-dust.de
   KakaoTalk Chat Layout für Communication-Foren
   ================================================ */

/* Reset Container */
td#posts_container,
td#posts_container > div#posts,
table.tborder.tfixed.clear,
.tborder.tfixed.clear {
    background: transparent !important;
}

/* ------------------------------------------------
   WRAPPER
   ------------------------------------------------ */
.kk-post {
    margin-bottom: 2px;
    background: rgba(240, 232, 240, 0.6);
    font-family: 'Jost', sans-serif;
    overflow: visible !important;
    border: none;
}

.kk-post + .kk-post .kk-topbar {
    display: none;
}

/* ------------------------------------------------
   TOPBAR
   ------------------------------------------------ */
.kk-topbar {
    background: rgba(128, 108, 154, 0.82);
    padding: 20px 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    backdrop-filter: blur(4px);
}

.kk-topbar-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: #c9a8b2;
    border: 1.5px solid rgba(255,255,255,0.35);
}

.kk-topbar-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.kk-topbar-info {
    flex: 1;
    min-width: 0;
}

.kk-topbar-title {
    font-family: 'DMSerifDisplay-Regular', 'DM Serif Display', Georgia, serif;
    font-size: 14px;
    font-style: italic;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.04em;
}

.kk-topbar-chars {
    font-size: 9px;
    color: rgba(255,255,255,0.6);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-top: 1px;
}

.kk-topbar-app {
    font-size: 9px;
    color: rgba(255,255,255,0.45);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    flex-shrink: 0;
}

/* ------------------------------------------------
   BODY / NACHRICHTENBEREICH
   ------------------------------------------------ */
.kk-body {
       padding: 40px 150px;
    background: rgba(240, 232, 240, 0.55);
}

.kk-msg {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    max-width: 80%;
    margin-bottom: 4px;
}

.kk-msg.left {
    align-self: flex-start;
    flex-direction: row;
}

.kk-msg.right {
    align-self: flex-end;
    flex-direction: row-reverse;
    margin-left: auto;
}

/* ------------------------------------------------
   AVATAR
   ------------------------------------------------ */
.kk-avatar {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #c9a8b2;
    align-self: flex-start;
}

.kk-avatar img,
.kk-avatar a img {
    width: 38px !important;
    height: 38px !important;
    object-fit: cover;
    object-position: top center;
    display: block !important;
    border-radius: 0 !important;
}

/* ------------------------------------------------
   BUBBLE WRAP
   ------------------------------------------------ */
.kk-bubble-wrap {
    display: flex;
    flex-direction: column;
    gap: 3px;
    max-width: 100%;
}

.kk-msg.right .kk-bubble-wrap {
    align-items: flex-end;
}

.kk-msg.left .kk-bubble-wrap {
    align-items: flex-start;
}

/* ------------------------------------------------
   SENDER NAME
   ------------------------------------------------ */
.kk-sender {
    font-size: 9px;
    color: #806c9a;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 0 6px;
    font-weight: 400;
}

/* ------------------------------------------------
   SPRECHBLASE
   ------------------------------------------------ */
.kk-bubble {
    padding: 10px 14px;
    font-size: 12px;
    line-height: 1.8;
    color: #3b3b3b;
    max-width: 420px;
    position: relative;
    word-break: break-word;
}

.kk-bubble.left {
    background: rgba(255, 255, 255, 0.88);
    border: 0.5px solid rgba(201, 168, 178, 0.4);
    border-radius: 4px 14px 14px 14px;
}

.kk-bubble.right {
    background: rgba(128, 108, 154, 0.18);
    border: 0.5px solid rgba(128, 108, 154, 0.28);
    border-radius: 14px 4px 14px 14px;
}

.kk-bubble .post_body {
    font-size: 12px;
    line-height: 1.8;
    color: #3b3b3b;
    text-align: left;
}

.kk-bubble .post_body img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-top: 6px;
}

/* ------------------------------------------------
   META (Zeit, Wordcount, Postnr)
   ------------------------------------------------ */
.kk-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 6px;
    flex-wrap: wrap;
}

.kk-meta.right {
    flex-direction: row-reverse;
}

.kk-time {
    font-size: 9px;
    color: #9b7080;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.kk-wordcount {
    font-size: 9px;
    color: #9b7080;
    letter-spacing: 0.08em;
}

.kk-postnr {
    font-size: 9px;
    color: #806c9a;
    letter-spacing: 0.06em;
}

.kk-postnr a {
    color: #806c9a;
    text-decoration: none;
}

/* ------------------------------------------------
   TYL
   ------------------------------------------------ */
.kk-tyl {
    margin: 0 18px 6px 18px;
    padding: 8px 14px;
    background: rgba(201, 168, 178, 0.2);
    border: 0.5px solid rgba(201, 168, 178, 0.35);
    font-size: 11px;
}

/* ------------------------------------------------
   SIGNATUR
   ------------------------------------------------ */
.kk-signature {
    margin: 0 18px 6px 18px;
    padding: 8px 14px;
    border-top: 0.5px solid rgba(212, 197, 208, 0.3);
    font-size: 11px;
    color: #9b7080;
}

/* ------------------------------------------------
   FOOTER
   ------------------------------------------------ */
.kk-post .pb-footer {
    margin: 0;
}

/* ------------------------------------------------
   POPUP MENU (geerbt)
   ------------------------------------------------ */
.popup_menu {
    position: absolute !important;
    z-index: 9999 !important;
    background: rgba(245, 238, 240, 0.98);
    border: 0.5px solid #c9a8b2;
    box-shadow: 0 4px 12px rgba(42, 31, 46, 0.15);
    border-radius: 4px;
    min-width: 150px;
    padding: 5px 0;
    margin-top: 5px !important;
}

.popup_item {
    display: block !important;
    padding: 8px 20px !important;
    color: #3b3b3b !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    font-size: 11px !important;
    font-family: 'Jost', sans-serif !important;
    letter-spacing: 0.1em !important;
    background: none !important;
}

.popup_item:hover {
    background: rgba(128, 108, 154, 0.08) !important;
    color: #806c9a !important;
}