/**
 * assets/css/profile/comments_thread.css
 * 
 * DROPX PRIME SYSTEM - THREADED HOZZÁSZÓLÁS, SZAVAZÓ ÉS KÉTOSZTATÚ MÉDIA MODUL (DRY)
 * 
 * Használja: Hírfolyam (home.php), Csoportok (group_view.php).
 * 
 * JAVÍTÁSOK (V7.0 - JOBB OLDALRA DOKKOLT CSATOLT KÉP ELRENDEZÉS):
 * - Kétosztatú .has-media-layout: Bal oldalon a szöveg, jobb oldalon a csatolt képminiatűr.
 * - Szigorú rejtési védelem a szerkesztőre (.comment-edit-box.hidden-box).
 * - Csatolt képek előnézete piros kuka törlőgombbal (.comment-preview-remove).
 * - Szigorúan vertikális textarea átméretezés.
 * - Szigorúan 0 db szabály.
 */

/* =========================================================================
   0. SPECIFIKUS REJTÉSI SZABÁLYOK
   ========================================================================= */
.hidden-box,
.comment-edit-box.hidden-box,
.reply-input-box-wrapper.hidden-box,
.comment-content.hidden-box {
    display: none;
}

/* =========================================================================
   1. KOMMENT SZEKCIÓ KONTÉNER ÉS LISTA
   ========================================================================= */
.post-comments-section {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 14px;
}

.comment-item-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
}

/* =========================================================================
   2. KOMMENT FEJLÉC ÉS SZERZŐ
   ========================================================================= */
.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.comment-author-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.comment-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--color-border-subtle, rgba(255, 255, 255, 0.1));
    flex-shrink: 0;
    cursor: pointer;
}

.reply-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--color-border-subtle, rgba(255, 255, 255, 0.1));
    flex-shrink: 0;
    cursor: pointer;
}

.comment-meta-text {
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1.2;
}

.comment-author-name-btn {
    background: none;
    border: none;
    padding: 0;
    color: var(--text-light, #ffffff);
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    text-align: left;
    transition: color 0.2s;
}

.comment-author-name-btn:hover {
    color: var(--color-gold, #e59e00);
}

.comment-time-sub {
    font-size: 0.76rem;
    color: var(--text-muted, #aba29a);
}

.comment-actions-corner {
    display: flex;
    align-items: center;
    gap: 4px;
}

.comment-corner-btn {
    background: transparent;
    border: none;
    color: var(--text-muted, #aba29a);
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s, background 0.2s;
}

.comment-corner-btn {
    min-width: 27px;
    min-height: 27px;
    border: 1px solid rgba(143, 152, 162, 0.24);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.015);
}

.edit-comment-trigger-btn {
    border-color: rgba(143, 152, 162, 0.32);
}

.edit-comment-trigger-btn:hover {
    border-color: rgba(229, 158, 0, 0.65);
}

.delete-comment-btn {
    border-color: rgba(239, 68, 68, 0.55);
}

.comment-corner-btn:hover {
    color: var(--color-gold, #e59e00);
    background: rgba(229, 158, 0, 0.12);
}

.delete-comment-btn:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.15);
}

/* =========================================================================
   3. EGYSÉGES ZÁRT KOMMENT TÁBLA (BAL: SZÖVEG, JOBB: KÉP)
   ========================================================================= */
.comment-bubble-box {
    background: rgba(14, 16, 22, 0.85);
    border: 1px solid var(--color-border-subtle, rgba(255, 255, 255, 0.08));
    border-radius: 6px;
    padding: 10px 14px;
    box-sizing: border-box;
    width: 100%;
}

/* Kétosztatú elrendezés: Szöveg balra, csatolt kép(ek) jobbra */
.comment-bubble-box.has-media-layout {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
}

.comment-text-block {
    flex: 1;
    min-width: 0;
}

.comment-content {
    color: var(--text-light, #ffffff);
    font-size: 0.96rem;
    line-height: 1.45;
    word-break: break-word;
}

/* Csatolt képek jobb oldali dokkolója */
.comment-media-block {
    flex-shrink: 0;
    margin-top: 0;
}

.comment-attachments-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.comment-attachment-item {
    width: 80px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--color-border-gold, rgba(229, 158, 0, 0.45));
    background: #0d0f14;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    cursor: pointer;
}

.comment-attachment-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.2s ease;
}

.comment-attachment-item:hover img {
    transform: scale(1.06);
}

/* INLINE KOMMENT SZERKESZTŐ */
.comment-edit-box {
    margin-top: 6px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.comment-edit-textarea {
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    min-height: 60px;
    background: rgba(0, 0, 0, 0.65);
    border: 1px solid var(--color-border-gold, rgba(229, 158, 0, 0.45));
    border-radius: 4px;
    padding: 8px 10px;
    color: var(--text-light, #ffffff);
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.95rem;
    outline: none;
    box-sizing: border-box;
    resize: vertical;
}

.comment-edit-actions {
    display: flex;
    gap: 6px;
    justify-content: flex-end;
}

/* =========================================================================
   4. CSATOLT KÉPEK ELŐNÉZETE FELTÖLTÉS ELŐTT (KUKÁVAL)
   ========================================================================= */
.comment-upload-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
    width: 100%;
}

.comment-preview-thumbnail {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--color-border-gold, rgba(229, 158, 0, 0.45));
    background: #0d0f14;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.comment-preview-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.comment-preview-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    background: rgba(239, 68, 68, 0.92);
    border: none;
    color: #ffffff;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
    transition: background 0.2s, transform 0.15s;
}

.comment-preview-remove:hover {
    background: #dc2626;
    transform: scale(1.15);
}

/* =========================================================================
   5. MARKDOWN TIPOGRÁFIA KOMMENTEKBEN
   ========================================================================= */
.comment-content .cyber-quote {
    margin: 4px 0;
    padding: 4px 10px;
    background: rgba(229, 158, 0, 0.08);
    border-left: 3px solid var(--color-gold, #e59e00);
    border-radius: 0 4px 4px 0;
    color: var(--color-silver, #c5bdbc);
    font-style: italic;
    display: block;
}

.comment-content .cyber-code-pre {
    background: #080a0e;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 6px 10px;
    margin: 4px 0;
    overflow-x: auto;
    display: block;
}

.comment-content .cyber-code-block {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--color-gold, #e59e00);
}

.comment-content .cyber-inline-code {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--color-gold, #e59e00);
    padding: 1px 5px;
    border-radius: 3px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
}

.comment-content .cyber-spoiler {
    background: #11141c;
    color: transparent;
    cursor: pointer;
    border-radius: 3px;
    padding: 1px 5px;
    border: 1px dashed #ef4444;
    transition: all 0.2s ease;
    user-select: none;
    font-size: 0.9rem;
    display: inline-block;
}

.comment-content .cyber-spoiler:hover {
    border-color: var(--color-gold, #e59e00);
    box-shadow: 0 0 8px rgba(229, 158, 0, 0.4);
}

.comment-content .cyber-spoiler.revealed {
    color: #ffffff;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.15);
    user-select: text;
}

/* =========================================================================
   6. SZAVAZÓ KAPSZULA (UPVOTE / DOWNVOTE) ÉS VÁLASZ GOMB
   ========================================================================= */
.comment-actions-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-left: 2px;
}

.comment-vote-group {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(10, 8, 7, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 2px 6px;
}

.comment-vote-btn {
    background: transparent;
    border: none;
    color: var(--text-muted, #aba29a);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 4px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    transition: color 0.2s, background 0.2s;
}

.comment-vote-btn:hover {
    color: var(--color-gold, #e59e00);
}

.comment-vote-btn.active-vote.vote-like-btn {
    color: #10b981;
    background: rgba(16, 185, 129, 0.15);
}

.comment-vote-btn.active-vote.vote-dislike-btn {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.15);
}

.vote-net-score {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted, #aba29a);
    padding: 0 4px;
}

.vote-net-score.score-positive {
    color: #10b981;
}

.vote-net-score.score-negative {
    color: #ef4444;
}

.reply-comment-trigger {
    background: transparent;
    border: none;
    color: var(--text-muted, #aba29a);
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
}

.reply-comment-trigger:hover {
    color: var(--color-gold, #e59e00);
}

/* =========================================================================
   7. THREADED BEÁGYAZOTT VÁLASZOK
   ========================================================================= */
.comment-replies-list {
    margin-left: 28px;
    padding-left: 10px;
    border-left: 2px solid rgba(229, 158, 0, 0.25);
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 6px;
}

.comment-reply-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* =========================================================================
   8. HOZZÁSZÓLÁS ÉS VÁLASZ BEVITELI MEZŐK
   ========================================================================= */
.comment-publisher-wrapper,
.reply-input-box-wrapper {
    margin-top: 10px;
    width: 100%;
}

.reply-input-box-wrapper {
    margin-left: 28px;
    width: calc(100% - 28px);
    box-sizing: border-box;
}

.comment-publisher-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.root-comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--color-border-gold, rgba(229, 158, 0, 0.4));
    flex-shrink: 0;
}

.comment-input-box-container {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: rgba(10, 8, 7, 0.7);
    border: 1px solid var(--color-border-subtle, rgba(255, 255, 255, 0.08));
    border-radius: 6px;
    overflow: hidden;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.comment-input-box-container:focus-within {
    border-color: var(--color-gold, #e59e00);
    box-shadow: 0 0 8px var(--color-gold-glow, rgba(229, 158, 0, 0.3));
}

.comment-mini-formatting-toolbar {
    display: flex;
    align-items: center;
    gap: 2px;
    background: rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 3px 6px;
}

.comment-format-btn {
    background: transparent;
    border: none;
    color: var(--color-silver, #c5bdbc);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    padding: 2px 5px;
    border-radius: 2px;
    line-height: 1;
    transition: background 0.2s, color 0.2s;
}

.comment-format-btn:hover {
    background: rgba(229, 158, 0, 0.15);
    color: var(--color-gold, #e59e00);
}

.root-comment-input,
.reply-comment-input {
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    min-height: 48px;
    background: transparent;
    border: none;
    padding: 8px 10px;
    color: var(--text-light, #ffffff);
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.98rem;
    outline: none;
    box-sizing: border-box;
    resize: vertical;
}

.comment-tools-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 8px 6px 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.comment-tool-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.comment-tool-btn {
    background: transparent;
    border: none;
    color: var(--text-muted, #aba29a);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border-radius: 3px;
    transition: color 0.2s, background 0.2s;
}

.comment-tool-btn:hover {
    color: var(--color-gold, #e59e00);
    background: rgba(229, 158, 0, 0.1);
}
/* ============================================================================
   UNIFIED COMMENT REACTIONS — same interaction language as post reactions
   ============================================================================ */
.comment-actions-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.comment-reaction-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.comment-react-btn,
.comment-reactions-summary,
.reply-comment-trigger {
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-muted, #8f98a2);
    border-radius: 8px;
    min-height: 30px;
    padding: 5px 8px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    font-family: inherit;
    font-size: .72rem;
    font-weight: 700;
    transition: color .16s ease, background .16s ease, border-color .16s ease;
}

.comment-react-btn:hover,
.comment-react-btn.active,
.comment-reactions-summary:hover,
.reply-comment-trigger:hover {
    color: var(--color-gold, #e59e00);
    background: rgba(229,158,0,.07);
    border-color: rgba(229,158,0,.18);
}

.com-react-icon,
.comment-preview-emoji {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* A reakcióösszesítő ne foglalja el a teljes szabad helyet: ettől a Válasz
   gomb reakció leadása után jobbra ugrik. A három művelet maradjon egymás mellett. */
.comment-reactions-summary {
    margin-left: 0;
    padding-inline: 5px;
    flex: 0 0 auto;
}

.comment-reactions-summary.is-empty {
    display: none;
}

.comment-preview-emoji {
    font-size: .9rem;
    margin-right: -2px;
}

.comment-reactions-count-link {
    margin-left: 3px;
    color: var(--text-muted, #8f98a2);
    font-size: .68rem;
    font-weight: 800;
}

.active-comment-react-emoji {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    line-height: 1;
    transform: translateY(-.5px);
}

.comment-reaction-picker {
    position: absolute;
    left: 0;
    bottom: calc(100% + 7px);
    z-index: 2500;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 8px;
    border: 1px solid rgba(229,158,0,.42);
    border-radius: 18px;
    background: rgba(13,16,20,.98);
    box-shadow: 0 12px 30px rgba(0,0,0,.38);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(5px) scale(.97);
    transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
}

.comment-reaction-picker::after {
    /* Folytonos pointer-terület a reakciógomb és a picker között. */
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 10px;
}

.comment-reaction-wrap:focus-within .comment-reaction-picker,
.comment-reaction-wrap:hover .comment-reaction-picker,
.comment-reaction-wrap.is-open .comment-reaction-picker {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.quick-comment-reaction {
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    transition: transform .14s ease, background .14s ease;
}

.quick-comment-reaction:hover {
    background: rgba(229,158,0,.10);
    transform: translateY(-2px) scale(1.12);
}

body.light-mode .comment-react-btn,
body.light-mode .comment-reactions-summary,
body.light-mode .reply-comment-trigger {
    color: #665342;
}

body.light-mode .comment-react-btn:hover,
body.light-mode .comment-react-btn.active,
body.light-mode .comment-reactions-summary:hover,
body.light-mode .reply-comment-trigger:hover {
    color: #8a5b12;
    background: rgba(149,102,28,.09);
    border-color: rgba(149,102,28,.20);
}

body.light-mode .comment-reaction-picker {
    background: linear-gradient(180deg, #f2e6d5 0%, #e0cdb2 100%);
    border-color: rgba(149,102,28,.34);
    box-shadow: 0 12px 28px rgba(67,52,38,.20);
}


/* DropX Security hivatalos megjegyzés */
.comment-security-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(145deg, #d7ad45, #8b681d);
    color: #fff;
    box-shadow: 0 0 0 2px rgba(218, 174, 70, .22), 0 4px 12px rgba(93, 66, 10, .18);
}
.comment-security-author {
    cursor: default;
    color: #8a671d;
    font-weight: 800;
}
.comment-item-card:has(.comment-security-author) .comment-bubble-box,
.comment-reply-item:has(.comment-security-author) .comment-bubble-box {
    border-color: rgba(184, 140, 42, .45);
    background: rgba(214, 181, 119, .18);
}


/* ========================================================================
   DROPX SECURITY — FIGYELMEZTETŐ / MODERÁCIÓS KOMMENT
   Kifejezetten ritka, hivatalos rendszerüzenet: erős piros jelzés,
   sötét és világos témában egyaránt.
   ======================================================================== */
.comment-item-card.is-security-comment,
.comment-reply-item.is-security-comment {
    border: 1px solid rgba(210, 52, 52, .58);
    background: linear-gradient(145deg, rgba(44, 12, 14, .92), rgba(18, 8, 9, .96));
    box-shadow: 0 0 0 1px rgba(255, 73, 73, .08), 0 12px 30px rgba(120, 15, 20, .22), inset 0 0 24px rgba(255, 50, 50, .035);
    position: relative;
    overflow: hidden;
}
.comment-item-card.is-security-comment::before,
.comment-reply-item.is-security-comment::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: linear-gradient(180deg, #ff5b5b, #a91622, #ff5b5b);
    box-shadow: 0 0 14px rgba(255, 55, 55, .75);
}
.comment-item-card.is-security-comment .comment-security-avatar,
.comment-reply-item.is-security-comment .comment-security-avatar {
    background: radial-gradient(circle at 35% 30%, #ff7070, #a91521 62%, #51070d 100%);
    color: #fff;
    box-shadow: 0 0 0 2px rgba(255, 78, 78, .22), 0 0 18px rgba(229, 40, 50, .42);
    animation: dropxSecurityPulse 2.8s ease-in-out infinite;
}
.comment-security-author {
    color: #ff6868;
    text-shadow: 0 0 10px rgba(255, 65, 65, .24);
    letter-spacing: .02em;
}
.comment-security-actor {
    color: rgba(255, 180, 180, .78);
    font-size: .82em;
    font-weight: 600;
}
.comment-item-card.is-security-comment .comment-bubble-box,
.comment-reply-item.is-security-comment .comment-bubble-box {
    border-color: rgba(229, 62, 62, .52);
    background: linear-gradient(135deg, rgba(92, 21, 25, .72), rgba(40, 12, 14, .78));
    color: #ffe7e7;
    box-shadow: inset 0 0 18px rgba(255, 55, 55, .04);
}
.comment-item-card.is-security-comment .comment-actions-row,
.comment-reply-item.is-security-comment .comment-actions-row {
    border-top-color: rgba(211, 52, 52, .22);
}
@keyframes dropxSecurityPulse {
    0%, 100% { box-shadow: 0 0 0 2px rgba(255, 78, 78, .20), 0 0 12px rgba(229, 40, 50, .24); }
    50% { box-shadow: 0 0 0 2px rgba(255, 78, 78, .34), 0 0 22px rgba(229, 40, 50, .48); }
}

body.light-mode .comment-item-card.is-security-comment,
body.light-mode .comment-reply-item.is-security-comment {
    border-color: rgba(190, 38, 45, .58);
    background: linear-gradient(145deg, #fff3f1 0%, #f8dfdc 55%, #f2d0cf 100%);
    box-shadow: 0 0 0 1px rgba(191, 39, 47, .06), 0 12px 28px rgba(133, 31, 35, .13), inset 0 0 22px rgba(200, 40, 48, .035);
}
body.light-mode .comment-item-card.is-security-comment::before,
body.light-mode .comment-reply-item.is-security-comment::before {
    background: linear-gradient(180deg, #e43b43, #a71822, #e43b43);
}
body.light-mode .comment-item-card.is-security-comment .comment-security-avatar,
body.light-mode .comment-reply-item.is-security-comment .comment-security-avatar {
    background: radial-gradient(circle at 35% 30%, #ef5a61, #bd2029 62%, #81121a 100%);
}
body.light-mode .comment-security-author {
    color: #a91722;
    text-shadow: none;
}
body.light-mode .comment-security-actor {
    color: #7c3d40;
}
body.light-mode .comment-item-card.is-security-comment .comment-bubble-box,
body.light-mode .comment-reply-item.is-security-comment .comment-bubble-box {
    border-color: rgba(190, 38, 45, .46);
    background: linear-gradient(135deg, rgba(255, 239, 236, .98), rgba(246, 215, 211, .94));
    color: #4e2426;
}

/* =========================================================================
   9. VALÓDI THREAD-JELÖLÉS + ÖSSZECSUKHATÓ VÁLASZÁGAK
   ========================================================================= */
.comment-thread-item {
    --thread-line: rgba(229, 158, 0, 0.22);
}

.comment-reply-target-label,
.reply-target-label {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 1px 0 3px;
    color: var(--color-gold, #e59e00);
    font-size: .66rem;
    font-weight: 700;
    line-height: 1.35;
}

.comment-reply-target-label {
    padding-left: 2px;
}

.reply-target-label {
    padding: 0 2px;
}

.comment-replies-list {
    position: relative;
    margin: 6px 0 0 18px;
    padding-left: 12px;
    border-left: 1px solid rgba(229, 158, 0, 0.22);
}

.comment-replies-list .comment-replies-list {
    margin-left: 18px;
    padding-left: 10px;
    border-left: 1px solid rgba(229, 158, 0, 0.16);
}

.comment-thread-item {
    position: relative;
}

.comment-thread-item::before {
    content: '';
    position: absolute;
    left: -13px;
    top: 18px;
    width: 9px;
    border-top: 1px solid rgba(229, 158, 0, 0.22);
    pointer-events: none;
}

.comment-thread-item[data-comment-depth="2"] { margin-left: 12px; }
.comment-thread-item[data-comment-depth="3"] { margin-left: 24px; }
.comment-thread-item[data-comment-depth="4"] { margin-left: 36px; }
.comment-thread-item[data-comment-depth="5"] { margin-left: 48px; }
.comment-thread-item[data-comment-depth="6"] { margin-left: 60px; }
.comment-thread-item[data-comment-depth="7"] { margin-left: 72px; }
.comment-thread-item[data-comment-depth="8"] { margin-left: 84px; }

.comment-replies-extra.hidden-box {
    display: none;
}

.thread-replies-toggle {
    align-self: flex-start;
    margin: 1px 0 1px 2px;
    padding: 3px 0;
    border: 0;
    background: transparent;
    color: var(--color-gold, #e59e00);
    font-family: 'Rajdhani', sans-serif;
    font-size: .72rem;
    font-weight: 800;
    cursor: pointer;
}

.thread-replies-toggle:hover {
    text-decoration: underline;
}

.comment-reply-item .reply-input-box-wrapper {
    margin-top: 7px;
}

@media (max-width: 700px) {
    .comment-replies-list {
        margin-left: 12px;
        padding-left: 8px;
    }

    .comment-replies-list .comment-replies-list {
        margin-left: 10px;
        padding-left: 7px;
    }

    .comment-thread-item[data-comment-depth="2"] { margin-left: 8px; }
    .comment-thread-item[data-comment-depth="3"] { margin-left: 16px; }
    .comment-thread-item[data-comment-depth="4"] { margin-left: 24px; }
    .comment-thread-item[data-comment-depth="5"] { margin-left: 32px; }
    .comment-thread-item[data-comment-depth="6"] { margin-left: 40px; }
    .comment-thread-item[data-comment-depth="7"] { margin-left: 48px; }
    .comment-thread-item[data-comment-depth="8"] { margin-left: 56px; }

    .comment-reply-target-label,
    .reply-target-label {
        font-size: .61rem;
    }
}

/* =========================================================================
   DROPX COMMENT CARD V8 — egységes komment + külön, keskeny interakciós sáv
   ========================================================================= */
.comment-item-card.comment-thread-item,
.comment-reply-item.comment-thread-item {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 11px 8px;
    border: 1px solid rgba(255,255,255,.065);
    border-radius: 11px;
    background: linear-gradient(180deg, rgba(16,19,24,.78), rgba(10,12,16,.66));
    box-shadow: 0 5px 16px rgba(0,0,0,.12);
}

.comment-item-card.comment-thread-item > .comment-header,
.comment-reply-item.comment-thread-item > .comment-header {
    padding: 0 1px;
}

.comment-item-card.comment-thread-item > .comment-bubble-box,
.comment-reply-item.comment-thread-item > .comment-bubble-box {
    border: 0;
    background: transparent;
    padding: 7px 2px 4px;
}

.comment-item-card.comment-thread-item > .comment-actions-row,
.comment-reply-item.comment-thread-item > .comment-actions-row {
    width: calc(100% - 14px);
    margin: 2px auto 0;
    min-height: 29px;
    padding: 4px 7px;
    box-sizing: border-box;
    border: 1px solid rgba(255,255,255,.045);
    border-radius: 8px;
    background: rgba(255,255,255,.018);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.018);
}

.comment-item-card.comment-thread-item > .comment-actions-row .reply-comment-trigger,
.comment-reply-item.comment-thread-item > .comment-actions-row .reply-comment-trigger,
.comment-item-card.comment-thread-item > .comment-actions-row .comment-react-btn,
.comment-reply-item.comment-thread-item > .comment-actions-row .comment-react-btn {
    min-height: 22px;
    padding: 2px 7px;
    border-radius: 6px;
    color: rgba(210,216,224,.7);
}

.comment-item-card.comment-thread-item > .comment-actions-row .reply-comment-trigger:hover,
.comment-reply-item.comment-thread-item > .comment-actions-row .reply-comment-trigger:hover,
.comment-item-card.comment-thread-item > .comment-actions-row .comment-react-btn:hover,
.comment-reply-item.comment-thread-item > .comment-actions-row .comment-react-btn:hover {
    background: rgba(229,158,0,.07);
    color: var(--color-gold,#e59e00);
}

.comment-item-card.comment-thread-item .comment-replies-list,
.comment-reply-item.comment-thread-item .comment-replies-list {
    margin-top: 9px;
}

.comment-item-card.comment-thread-item .comment-reply-target-label,
.comment-reply-item.comment-thread-item .comment-reply-target-label {
    margin-bottom: 4px;
}

.comment-item-card.comment-thread-item .reply-input-box-wrapper,
.comment-reply-item.comment-thread-item .reply-input-box-wrapper {
    margin-top: 8px;
    padding: 8px 9px;
    border: 1px solid rgba(229,158,0,.13);
    border-radius: 9px;
    background: rgba(229,158,0,.025);
}

@media (max-width:700px) {
    .comment-item-card.comment-thread-item,
    .comment-reply-item.comment-thread-item {
        padding: 9px 9px 7px;
        border-radius: 10px;
    }

    .comment-item-card.comment-thread-item > .comment-actions-row,
    .comment-reply-item.comment-thread-item > .comment-actions-row {
        width: calc(100% - 8px);
        padding: 4px 5px;
    }
}

/* =========================================================================
   DROPX FINAL COMMENT CARD — egységes bejegyzés + keskeny interakciós sáv
   ========================================================================= */
.comment-item-card.comment-thread-item,
.comment-reply-item.comment-thread-item {
    box-sizing: border-box;
    width: 100%;
    padding: 10px 11px 8px;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 11px;
    background: linear-gradient(180deg, rgba(16,19,24,.82), rgba(10,12,16,.70));
    box-shadow: 0 5px 16px rgba(0,0,0,.12);
}

.comment-item-card.comment-thread-item > .comment-bubble-box,
.comment-reply-item.comment-thread-item > .comment-bubble-box {
    border: 0;
    background: transparent;
    padding: 7px 2px 4px;
}

.comment-item-card.comment-thread-item > .comment-actions-row,
.comment-reply-item.comment-thread-item > .comment-actions-row {
    width: calc(100% - 14px);
    margin: 3px auto 0;
    padding: 3px 6px;
    min-height: 28px;
    box-sizing: border-box;
    border: 1px solid rgba(255,255,255,.045);
    border-radius: 8px;
    background: rgba(255,255,255,.018);
}

.comment-item-card.comment-thread-item > .comment-actions-row .comment-react-btn,
.comment-item-card.comment-thread-item > .comment-actions-row .comment-reactions-summary,
.comment-item-card.comment-thread-item > .comment-actions-row .reply-comment-trigger,
.comment-reply-item.comment-thread-item > .comment-actions-row .comment-react-btn,
.comment-reply-item.comment-thread-item > .comment-actions-row .comment-reactions-summary,
.comment-reply-item.comment-thread-item > .comment-actions-row .reply-comment-trigger {
    min-height: 22px;
    padding: 2px 7px;
    border-radius: 6px;
    font-size: .70rem;
}

.comment-item-card.comment-thread-item .comment-replies-list {
    margin-top: 9px;
}

.comment-reply-item.comment-thread-item {
    background: linear-gradient(180deg, rgba(15,18,23,.70), rgba(9,11,15,.58));
    border-color: rgba(255,255,255,.055);
}

body.light-mode .comment-item-card.comment-thread-item,
body.light-mode .comment-reply-item.comment-thread-item {
    background: linear-gradient(180deg, rgba(255,250,243,.88), rgba(247,239,229,.78));
    border-color: rgba(149,102,28,.15);
    box-shadow: 0 5px 16px rgba(80,58,35,.08);
}

@media (max-width: 700px) {
    .comments-list { gap: 9px; }

    .comment-item-card.comment-thread-item,
    .comment-reply-item.comment-thread-item {
        padding: 9px 8px 7px;
        border-radius: 10px;
    }

    .comment-item-card.comment-thread-item > .comment-actions-row,
    .comment-reply-item.comment-thread-item > .comment-actions-row {
        width: calc(100% - 8px);
        padding-inline: 4px;
    }

    .comment-content {
        font-size: .92rem;
    }
}

/* ========================================================================
   DROPX THREAD TARGET CLARITY V33
   A válasz mindig egyértelműen jelzi a tényleges közvetlen szülőkommentet.
   ======================================================================== */
.comment-reply-target-label {
    flex-wrap: wrap;
}

.comment-reply-target-label .comment-reply-target-excerpt {
    display: block;
    flex-basis: 100%;
    margin-left: 16px;
    color: rgba(164, 170, 178, .72);
    font-size: .62rem;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100% - 16px);
}

.reply-input-box-wrapper {
    transition: opacity .18s ease, transform .18s ease, max-height .22s ease;
}

.reply-input-box-wrapper:not(.hidden-box) {
    animation: dxReplyBoxIn .18s ease both;
}

@keyframes dxReplyBoxIn {
    from { opacity: 0; transform: translateY(-3px); }
    to { opacity: 1; transform: translateY(0); }
}
