/**
 * assets/css/profile/post_share_popup.css
 * DROPX PRIME SYSTEM — ANCHORED SHARE POPUP
 *
 * Desktop: a kattintott Megosztás gombhoz igazított üveghatású popup.
 * Mobil: teljes szélességű app-sheet.
 * Nincs dokumentumfolyamba illesztett megosztási kártya.
 */

.dx-share-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 100700;
    width: 100vw;
    height: 100vh;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .16s ease, visibility .16s ease;
}

.dx-share-popup-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.dx-share-popup-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 6, 8, .012);
    backdrop-filter: blur(1.5px);
    -webkit-backdrop-filter: blur(1.5px);
}

.dx-share-popup-panel {
    position: fixed;
    z-index: 1;
    box-sizing: border-box;
    overflow: hidden;
    border: 1px solid rgba(214,165,43,.34);
    border-radius: 18px;
    background:
        radial-gradient(circle at 90% 0%, rgba(214,165,43,.09), transparent 34%),
        linear-gradient(145deg, rgba(20,23,27,.985), rgba(8,10,12,.985));
    box-shadow:
        0 26px 70px rgba(0,0,0,.42),
        0 0 30px rgba(214,165,43,.045),
        inset 0 1px 0 rgba(255,255,255,.055);
    backdrop-filter: blur(22px) saturate(115%);
    -webkit-backdrop-filter: blur(22px) saturate(115%);
    transform: translateY(-6px) scale(.992);
    transition: transform .18s ease;
}

.dx-share-popup-overlay.is-open .dx-share-popup-panel {
    transform: translateY(0) scale(1);
}

.dx-share-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 20px 15px;
    border-bottom: 1px solid rgba(255,255,255,.065);
}

.dx-share-popup-kicker {
    display: block;
    margin-bottom: 4px;
    color: #d6a52b;
    font-family: 'Orbitron', sans-serif;
    font-size: .55rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.dx-share-popup-header h2 {
    margin: 0;
    color: #f5f6f7;
    font-family: 'Chakra Petch', sans-serif;
    font-size: 1.2rem;
    line-height: 1.1;
}

.dx-share-popup-close {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 50%;
    background: rgba(255,255,255,.035);
    color: rgba(255,255,255,.68);
    cursor: pointer;
    transition: border-color .2s ease, color .2s ease, background .2s ease, transform .2s ease;
}

.dx-share-popup-close:hover {
    color: #fff;
    border-color: rgba(214,165,43,.55);
    background: rgba(214,165,43,.08);
    transform: rotate(4deg);
}

.dx-share-popup-close svg {
    width: 17px;
    height: 17px;
}

.dx-share-popup-body {
    overflow-y: auto;
    max-height: 510px;
    padding: 16px 18px 14px;
    scrollbar-width: thin;
    scrollbar-color: rgba(214,165,43,.38) transparent;
}

.dx-share-note-label {
    display: block;
    margin: 0 0 7px;
    color: rgba(225,229,232,.72);
    font-family: 'Rajdhani', sans-serif;
    font-size: .82rem;
    font-weight: 700;
}

.dx-share-note-input {
    width: 100%;
    min-height: 82px;
    resize: vertical;
    box-sizing: border-box;
    padding: 11px 12px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 11px;
    outline: none;
    background: rgba(3,5,7,.72);
    color: #e8ebed;
    font: 500 .92rem/1.45 'Rajdhani', sans-serif;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.dx-share-note-input::placeholder {
    color: rgba(220,225,230,.36);
    font-style: italic;
}

.dx-share-note-input:focus {
    border-color: rgba(214,165,43,.48);
    box-shadow: 0 0 0 3px rgba(214,165,43,.055);
}

.dx-share-preview {
    margin-top: 15px;
}

.dx-share-preview-title {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 8px;
    color: rgba(225,229,232,.62);
    font: 700 .76rem/1 'Rajdhani', sans-serif;
    text-transform: uppercase;
    letter-spacing: .45px;
}

.dx-share-preview-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 23px;
    height: 23px;
    border: 1px solid rgba(214,165,43,.24);
    border-radius: 7px;
    color: #d6a52b;
    background: rgba(214,165,43,.055);
}

.dx-share-preview-icon svg {
    width: 13px;
    height: 13px;
}

.dx-share-preview-card {
    padding: 13px;
    border: 1px solid rgba(214,165,43,.18);
    border-radius: 13px;
    background: rgba(6,8,10,.62);
}

.dx-share-preview-author {
    display: flex;
    align-items: center;
    gap: 9px;
}

.dx-share-preview-avatar {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(214,165,43,.32);
}

.dx-share-preview-author-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.dx-share-preview-author-copy strong {
    color: #f1f3f5;
    font: 700 .88rem/1.15 'Rajdhani', sans-serif;
}

.dx-share-preview-author-copy span {
    color: rgba(210,216,220,.48);
    font: 500 .68rem/1.15 'Rajdhani', sans-serif;
}

.dx-share-preview-body {
    margin-top: 10px;
    max-height: 250px;
    overflow: hidden;
    color: rgba(232,235,238,.78);
    font: 500 .84rem/1.45 'Rajdhani', sans-serif;
}

.dx-share-preview-body img,
.dx-share-preview-body video {
    display: block;
    max-width: 100%;
    max-height: 210px;
    margin-top: 8px;
    object-fit: contain;
    border-radius: 9px;
}

.dx-share-popup-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    padding: 12px 18px 15px;
    border-top: 1px solid rgba(255,255,255,.055);
}

.dx-share-cancel-btn,
.dx-share-submit-btn {
    min-height: 40px;
    border-radius: 10px;
    padding: 0 16px;
    font: 800 .78rem/1 'Rajdhani', sans-serif;
    letter-spacing: .35px;
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease, transform .2s ease, opacity .2s ease;
}

.dx-share-cancel-btn {
    border: 1px solid rgba(255,255,255,.09);
    background: rgba(255,255,255,.035);
    color: rgba(230,233,236,.68);
}

.dx-share-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 135px;
    border: 1px solid rgba(214,165,43,.62);
    background: linear-gradient(135deg, rgba(214,165,43,.16), rgba(214,165,43,.055));
    color: #e8b93f;
}

.dx-share-submit-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    border-color: rgba(214,165,43,.86);
    background: linear-gradient(135deg, rgba(214,165,43,.23), rgba(214,165,43,.08));
}

.dx-share-submit-btn:disabled {
    cursor: wait;
    opacity: .58;
}

.dx-share-submit-btn svg {
    width: 15px;
    height: 15px;
}

.dx-share-submit-btn.is-loading svg {
    animation: dx-share-spin .85s linear infinite;
}

@keyframes dx-share-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    body.dx-share-popup-open {
        overflow: hidden;
        overscroll-behavior: none;
    }

    .dx-share-popup-overlay {
        height: 100dvh;
    }

    .dx-share-popup-backdrop {
        background: rgba(4,6,8,.012);
        backdrop-filter: blur(1px);
        -webkit-backdrop-filter: blur(1px);
    }

    .dx-share-popup-panel {
        top: auto;
        left: 0;
        bottom: 0;
        width: 100%;
        max-height: min(88dvh, 760px);
        border-radius: 18px 18px 0 0;
        border-bottom: 0;
        transform: translateY(18px);
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }

    .dx-share-popup-overlay.is-open .dx-share-popup-panel {
        transform: translateY(0);
    }

    .dx-share-popup-header {
        padding: 14px 15px 12px;
    }

    .dx-share-popup-header h2 {
        font-size: 1.08rem;
    }

    .dx-share-popup-close {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
    }

    .dx-share-popup-body {
        max-height: calc(88dvh - 132px);
        padding: 13px 14px 10px;
    }

    .dx-share-note-input {
        min-height: 76px;
        font-size: .9rem;
    }

    .dx-share-preview-body {
        max-height: 190px;
    }

    .dx-share-popup-footer {
        padding: 10px 14px 12px;
        display: grid;
        grid-template-columns: .8fr 1.2fr;
    }

    .dx-share-cancel-btn,
    .dx-share-submit-btn {
        width: 100%;
        min-height: 43px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dx-share-popup-overlay,
    .dx-share-popup-panel,
    .dx-share-popup-close,
    .dx-share-submit-btn {
        transition: none;
    }
}

/* ========================================================================
   DROPX SOCIAL CORE — COMMON SHARE / SHARE LIST MODALS
   ======================================================================== */
.dx-share-popup-overlay,
.dx-shares-modal,
.dx-reactions-modal {
    position: fixed;
    inset: 0;
    z-index: 2147483500;
}

.dx-global-reaction-users-modal {
    position: fixed;
    inset: 0;
    z-index: 2147483647;
}

.dx-share-popup-overlay .dx-share-popup-backdrop,
.dx-shares-backdrop,
.dx-reactions-backdrop,
.dx-global-reaction-backdrop {
    position: absolute;
    inset: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.dx-share-popup-panel,
.dx-shares-card,
.dx-reactions-card,
.dx-global-reaction-card {
    position: relative;
    z-index: 1;
    width: min(620px, calc(100vw - 32px));
    max-height: min(760px, calc(100vh - 32px));
    margin: 16px auto;
    overflow: hidden;
    border: 1px solid rgba(229,158,0,.28);
    border-radius: 14px;
    background: linear-gradient(180deg,#101419,#0a0d11);
    box-shadow: none;
}

.dx-shares-card,
.dx-reactions-card,
.dx-global-reaction-card {
    position: absolute;
    top: 50%;
    left: 50%;
    margin: 0;
    transform: translate(-50%,-50%);
}

.dx-share-popup-overlay:not(.is-open),
.dx-shares-modal:not(.is-open),
.dx-reactions-modal,
.dx-global-reaction-users-modal:not(.is-open) { opacity: 0; visibility: hidden; pointer-events: none; }
.dx-share-popup-overlay.is-open,
.dx-shares-modal.is-open,
.dx-reactions-modal,
.dx-global-reaction-users-modal.is-open { opacity: 1; visibility: visible; pointer-events: auto; }

.dx-shares-head,
.dx-reactions-head,
.dx-global-reaction-head {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    padding:15px 17px;
    border-bottom:1px solid rgba(255,255,255,.06);
}
.dx-shares-kicker,
.dx-reactions-kicker,
.dx-global-reaction-kicker {
    display:block;
    margin-bottom:3px;
    color:var(--color-gold,#e59e00);
    font-size:.58rem;
    font-weight:800;
    letter-spacing:.14em;
}
.dx-shares-head h3,
.dx-reactions-head h3,
.dx-global-reaction-head h3 { margin:0; color:#f3f5f7; font-size:1rem; }
.dx-shares-close,
.dx-reactions-close,
.dx-global-reaction-close,
.dx-share-popup-close {
    border:0;
    background:transparent;
    color:#aeb7c0;
    cursor:pointer;
    font-size:1.4rem;
}
.dx-shares-list,
.dx-global-reaction-list,
.dx-reactions-card .reactions-list-container { max-height: 58vh; overflow:auto; padding:8px; }
.dx-shares-footer,
.reactions-load-more-wrapper { padding:10px 12px; border-top:1px solid rgba(255,255,255,.06); text-align:center; }
.dx-shares-more,
.dx-reactions-load-more { border:1px solid rgba(229,158,0,.25); border-radius:8px; padding:7px 13px; background:rgba(229,158,0,.06); color:var(--color-gold,#e59e00); cursor:pointer; }
.dx-share-user-row,
.dx-reaction-user-row {
    display:flex;
    align-items:center;
    gap:10px;
    padding:9px;
    border-bottom:1px solid rgba(255,255,255,.045);
}
.dx-share-user-main,
.dx-reaction-user-main { display:flex; align-items:center; gap:9px; min-width:0; flex:1; color:inherit; text-decoration:none; }
.dx-share-avatar,
.dx-reaction-avatar { width:36px; height:36px; flex:0 0 36px; border-radius:50%; object-fit:cover; border:1px solid rgba(229,158,0,.20); }
.dx-share-user-copy,
.dx-reaction-user-copy { display:flex; flex-direction:column; min-width:0; gap:2px; }
.dx-share-user-copy strong,
.dx-reaction-user-copy strong { color:#eef1f3; font-size:.78rem; }
.dx-share-user-copy small,
.dx-reaction-user-copy small { color:#7f8994; font-size:.62rem; }
.dx-share-note { margin:4px 0 0; color:#bdc4ca; font-size:.68rem; line-height:1.4; }
.dx-share-profile-link,
.dx-reaction-action { border:1px solid rgba(229,158,0,.22); border-radius:7px; padding:5px 8px; background:transparent; color:var(--color-gold,#e59e00); text-decoration:none; cursor:pointer; font-size:.62rem; font-weight:800; }
.dx-share-self,
.dx-reaction-self,
.dx-reaction-relation { color:#7f8994; font-size:.62rem; }
.dx-reaction-user-emoji { font-size:1rem; }
.dx-global-reaction-tabs,
.dx-reactions-tabs { display:flex; flex-wrap:wrap; gap:5px; padding:9px 11px; border-bottom:1px solid rgba(255,255,255,.05); }
.dx-reaction-filter { border:1px solid rgba(255,255,255,.08); border-radius:7px; padding:5px 8px; background:rgba(255,255,255,.025); color:#aeb6be; cursor:pointer; font-size:.68rem; }
.dx-reaction-filter.active { border-color:rgba(229,158,0,.35); color:var(--color-gold,#e59e00); background:rgba(229,158,0,.07); }
.dx-reaction-filter span { margin-left:2px; }
.dx-reaction-loading,
.dx-reaction-empty { padding:25px 12px; color:#7f8994; text-align:center; font-size:.72rem; }

@media (max-width: 700px) {
    .dx-share-popup-panel,
    .dx-shares-card,
    .dx-reactions-card,
    .dx-global-reaction-card { width:calc(100vw - 18px); max-height:calc(100vh - 18px); }
    .dx-shares-card,
    .dx-reactions-card,
    .dx-global-reaction-card { top:9px; transform:translateX(-50%); }
}


/* Reaction-user list: never darken or blur the content underneath. */
.dx-global-reaction-users-modal,
.dx-global-reaction-users-modal .dx-global-reaction-backdrop {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.dx-global-reaction-users-modal .dx-global-reaction-card {
    z-index: 2;
    box-shadow: none;
}


/* ============================================================================
   DROPX LIGHT THEME — GLOBÁLIS REAKCIÓ / MEGOSZTÓ LISTÁK
   ============================================================================ */
body.light-mode .dx-global-reaction-users-modal .dx-global-reaction-card,
html[data-dx-theme="light"] .dx-global-reaction-users-modal .dx-global-reaction-card {
    background: linear-gradient(180deg, #f8f0e4 0%, #eadcc7 100%);
    border-color: rgba(146, 101, 35, .38);
    color: #3f3328;
    box-shadow: 0 20px 55px rgba(58, 42, 25, .22);
}

body.light-mode .dx-global-reaction-head,
html[data-dx-theme="light"] .dx-global-reaction-head {
    border-bottom-color: rgba(112, 78, 37, .16);
}

body.light-mode .dx-global-reaction-head h3,
html[data-dx-theme="light"] .dx-global-reaction-head h3 {
    color: #3d3025;
}

body.light-mode .dx-global-reaction-kicker,
html[data-dx-theme="light"] .dx-global-reaction-kicker {
    color: #9b690f;
}

body.light-mode .dx-global-reaction-close,
html[data-dx-theme="light"] .dx-global-reaction-close {
    color: #6f5b48;
}

body.light-mode .dx-global-reaction-tabs,
html[data-dx-theme="light"] .dx-global-reaction-tabs {
    border-bottom-color: rgba(112, 78, 37, .14);
}

body.light-mode .dx-global-reaction-tabs .dx-reaction-filter,
html[data-dx-theme="light"] .dx-global-reaction-tabs .dx-reaction-filter {
    border-color: rgba(126, 87, 39, .22);
    background: rgba(255,255,255,.38);
    color: #655342;
}

body.light-mode .dx-global-reaction-tabs .dx-reaction-filter.active,
html[data-dx-theme="light"] .dx-global-reaction-tabs .dx-reaction-filter.active {
    border-color: rgba(156, 105, 15, .48);
    background: rgba(207, 156, 57, .16);
    color: #87580b;
}

body.light-mode .dx-reaction-user-row,
html[data-dx-theme="light"] .dx-reaction-user-row,
body.light-mode .dx-share-user-row,
html[data-dx-theme="light"] .dx-share-user-row {
    border-bottom-color: rgba(112, 78, 37, .12);
}

body.light-mode .dx-reaction-user-copy strong,
html[data-dx-theme="light"] .dx-reaction-user-copy strong,
body.light-mode .dx-share-user-copy strong,
html[data-dx-theme="light"] .dx-share-user-copy strong {
    color: #3e3127;
}

body.light-mode .dx-reaction-user-copy small,
html[data-dx-theme="light"] .dx-reaction-user-copy small,
body.light-mode .dx-share-user-copy small,
html[data-dx-theme="light"] .dx-share-user-copy small {
    color: #796957;
}

body.light-mode .dx-reaction-action,
html[data-dx-theme="light"] .dx-reaction-action {
    border-color: rgba(145, 96, 23, .32);
    background: rgba(255,255,255,.28);
    color: #87580b;
}

body.light-mode .dx-reaction-loading,
html[data-dx-theme="light"] .dx-reaction-loading,
body.light-mode .dx-reaction-empty,
html[data-dx-theme="light"] .dx-reaction-empty {
    color: #796957;
}

body.light-mode .dx-reactions-load-more,
html[data-dx-theme="light"] .dx-reactions-load-more {
    border-color: rgba(145, 96, 23, .28);
    background: rgba(207, 156, 57, .12);
    color: #87580b;
}

@media (max-width: 700px) {
    body.light-mode .dx-global-reaction-users-modal .dx-global-reaction-card,
    html[data-dx-theme="light"] .dx-global-reaction-users-modal .dx-global-reaction-card {
        width: min(100% - 12px, 520px);
        max-height: calc(100vh - 12px);
        border-radius: 14px;
    }
}
