/**
 * DROPX PRIME SYSTEM — POST FOCUS / COMMENT MODAL
 * Globális: Hírfolyam + Profil + Csoportok
 * Háttér: csak blur, nincs fekete overlay.
 */

.dx-post-focus-modal {
    position: fixed;
    inset: 0;
    z-index: 2147482000;
    display: grid;
    place-items: center;
    padding: 24px;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .22s ease, visibility .22s ease;
}

.dx-post-focus-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.dx-post-focus-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .018);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.dx-post-focus-dialog {
    position: relative;
    z-index: 1;
    width: min(920px, 94vw);
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(229, 158, 0, .28);
    border-radius: 16px;
    background: var(--bg-card, #0a0d11);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .28), 0 0 32px rgba(229, 158, 0, .06);
    transform: translateY(16px) scale(.985);
    transition: transform .22s ease;
}

.dx-post-focus-modal.is-open .dx-post-focus-dialog {
    transform: translateY(0) scale(1);
}

.dx-post-focus-header {
    position: sticky;
    top: 0;
    z-index: 5;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 58px;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    background: rgba(10, 13, 17, .94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.dx-post-focus-header > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dx-post-focus-kicker {
    color: var(--color-gold, #e59e00);
    font: 800 .56rem/1 'Chakra Petch', sans-serif;
    letter-spacing: .16em;
}

.dx-post-focus-header strong {
    color: var(--text-light, #f4f5f6);
    font: 800 1rem/1.1 'Rajdhani', sans-serif;
}

.dx-post-focus-close {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 10px;
    background: rgba(255,255,255,.025);
    color: var(--text-light, #fff);
    cursor: pointer;
    font-size: 1.3rem;
    line-height: 1;
}

.dx-post-focus-close:hover {
    color: var(--color-gold, #e59e00);
    border-color: rgba(229,158,0,.4);
}

.dx-post-focus-scroll {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.dx-post-focus-post {
    padding: 18px 18px 0;
}

.dx-post-focus-post .dx-post-focus-card {
    width: 100%;
    max-width: none;
    margin: 0;
    border-radius: 12px;
    box-sizing: border-box;
}

.dx-post-focus-post .dx-post-focus-card .post-actions-footer {
    margin-bottom: 0;
}

.dx-post-focus-post .dx-post-focus-card .comment-toggle-btn {
    display: none;
}

.dx-post-focus-comments-slot {
    padding: 0 18px 20px;
}

.dx-post-focus-comments-slot .post-comments-section {
    margin-top: 10px;
    padding-top: 14px;
}

.dx-post-focus-comments-slot .comments-list {
    max-height: none;
}

.dx-post-focus-empty {
    padding: 22px 4px;
    color: var(--text-muted, #9da5ad);
    text-align: center;
}

body.dx-post-focus-open {
    overflow: hidden;
}

body.light-mode .dx-post-focus-dialog {
    background: #f1e7d9;
    border-color: rgba(149,102,28,.28);
    box-shadow: 0 24px 70px rgba(67,52,38,.16);
}

body.light-mode .dx-post-focus-header {
    background: rgba(241,231,217,.94);
    border-bottom-color: rgba(91,72,49,.12);
}

@media (max-width: 700px) {
    .dx-post-focus-modal {
        padding: 0;
        place-items: stretch;
    }

    .dx-post-focus-dialog {
        width: 100%;
        max-height: 100dvh;
        height: 100dvh;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        transform: translateY(22px);
    }

    .dx-post-focus-modal.is-open .dx-post-focus-dialog {
        transform: translateY(0);
    }

    .dx-post-focus-header {
        min-height: 54px;
        padding: 8px 10px;
    }

    .dx-post-focus-post {
        padding: 10px 8px 0;
    }

    .dx-post-focus-post .dx-post-focus-card {
        border-radius: 10px;
        padding-left: 8px;
        padding-right: 8px;
    }

    .dx-post-focus-comments-slot {
        padding: 0 8px 18px;
    }

    .dx-post-focus-comments-slot .post-comments-section {
        padding-top: 10px;
    }
}
