/**
 * assets/css/profile/publisher.css
 * 
 * DROPX PRIME SYSTEM - POSZT KÖZZÉTEVŐ, ELŐNÉZET ÉS LEBEGŐ EMOJI POPOVER STÍLUSOK (DRY)
 * 
 * Használja: Hírfolyam (home.php), Csoportok (group_view.php).
 * 
 * JAVÍTÁSOK (V8.0 - ZÉRÓ KÉPERNYŐSÖTÉTÍTÉS & GOMB MELLÉ IGAZÍTOTT LEBEGŐ POPOVER):
 * - Eltávolítva a teljes képernyős homályosítás és sötétítés (.cyber-modal-overlay).
 * - Lebegő, gomb mellé igazított Emoji & GIF popover (.emoji-floating-popover).
 * - Egy sorba zárt, egységes 38px magas vezérlők és 100% széles Közzététel gomb.
 * - Szigorúan 0 db szabály.
 */

/* =========================================================================
   0. REJTETT ELEMEK ÉS BIZTONSÁGI ALAPOK
   ========================================================================= */
.hidden-box,
.hidden-file-input,
input[type="file"].hidden-file-input {
    display: none;
}

/* =========================================================================
   1. POSZTOLÓ KÁRTYA ALAP STRUKTÚRA
   ========================================================================= */
.post-publisher-card {
    background: var(--color-glass-main, rgba(20, 18, 16, 0.75));
    border: 1px solid var(--color-border-gold, rgba(229, 158, 0, 0.45));
    border-radius: 6px;
    padding: 14px 16px;
    margin-bottom: 18px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
    box-sizing: border-box;
    backdrop-filter: blur(14px);
    width: 100%;
}

.post-publisher-card.empty-auth-state {
    text-align: center;
    padding: 16px;
}

.publisher-header {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

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

.publisher-input-wrapper {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

/* =========================================================================
   2. FORMÁZÓ ESZKÖZTÁR (FORMATTING TOOLBAR)
   ========================================================================= */
.publisher-formatting-toolbar {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(10, 8, 7, 0.8);
    border: 1px solid var(--color-border-subtle, rgba(255, 255, 255, 0.08));
    border-bottom: none;
    border-radius: 4px 4px 0 0;
    padding: 5px 8px;
    flex-wrap: wrap;
    box-sizing: border-box;
}

.format-tag-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--color-silver, #c5bdbc);
    border-radius: 3px;
    padding: 3px 7px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

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

.toolbar-sep {
    width: 1px;
    height: 16px;
    background: rgba(255, 255, 255, 0.12);
    margin: 0 4px;
}

/* =========================================================================
   3. FÜGGŐLEGESEN MÉRETEZHETŐ BEVITELI MEZŐ (TEXTAREA)
   ========================================================================= */
.post-editor-textarea {
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    min-height: 70px;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid var(--color-border-subtle, rgba(255, 255, 255, 0.08));
    border-radius: 0 0 4px 4px;
    padding: 10px 12px;
    color: var(--text-light, #ffffff);
    outline: none;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.02rem;
    font-weight: 500;
    line-height: 1.45;
    box-sizing: border-box;
    resize: vertical;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.post-editor-textarea:focus {
    border-color: var(--color-gold, #e59e00);
    box-shadow: 0 0 10px var(--color-gold-glow, rgba(229, 158, 0, 0.4));
}

.post-editor-textarea::placeholder {
    color: var(--text-muted, #aba29a);
    opacity: 0.65;
}

/* =========================================================================
   4. CSATOLT MÉDIA ELŐNÉZETI SÁV
   ========================================================================= */
.publisher-media-preview-container {
    display: none;
    margin-top: 10px;
    background: rgba(10, 8, 7, 0.95);
    padding: 10px 12px;
    position: relative;
    border: 1px solid var(--color-border-gold, rgba(229, 158, 0, 0.45));
    box-shadow: 0 0 10px var(--color-gold-glow, rgba(229, 158, 0, 0.3));
    border-radius: 4px;
    box-sizing: border-box;
    width: 100%;
}

.publisher-media-preview-container.active {
    display: block;
}

.publisher-media-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.publisher-media-preview-header .preview-title {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--color-gold, #e59e00);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
}

.publisher-preview-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
}

.publisher-preview-item {
    position: relative;
    width: 65px;
    height: 65px;
    border: 1px solid var(--color-border-gold, rgba(229, 158, 0, 0.5));
    border-radius: 4px;
    overflow: hidden;
    box-sizing: border-box;
    background: #0d0f14;
}

.publisher-preview-item img,
.publisher-preview-item .preview-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.publisher-preview-video-badge {
    position: absolute;
    left: 4px;
    bottom: 4px;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: rgba(0,0,0,.72);
    border: 1px solid rgba(214,165,43,.50);
    color: var(--color-gold, #e59e00);
    pointer-events: none;
}

.publisher-preview-video-badge svg {
    width: 12px;
    height: 12px;
}

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

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

/* =========================================================================
   5. POSZTOLÓ LÁBLÉC: GOMBOK ÉS VÁLASZTÓK
   ========================================================================= */
.publisher-footer {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 12px;
    width: 100%;
    box-sizing: border-box;
}

.publisher-tools-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    width: 100%;
    box-sizing: border-box;
}

.publisher-tools-row .tool-btn {
    flex: 0 0 auto;
    width: auto;
    height: 38px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--color-silver, #c5bdbc);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 0 14px;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    font-family: 'Rajdhani', sans-serif;
    box-sizing: border-box;
    line-height: 1;
}

.publisher-tools-row .tool-btn:hover {
    background: rgba(229, 158, 0, 0.12);
    color: var(--color-gold, #e59e00);
    border-color: rgba(229, 158, 0, 0.4);
}

.publisher-tools-row .settings-input.select-compact,
.publisher-tools-row select.select-compact {
    flex: 0 0 auto;
    width: auto;
    min-width: 135px;
    height: 38px;
    padding: 0 12px;
    font-size: 0.9rem;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    cursor: pointer;
    background: rgba(10, 8, 7, 0.9);
    border: 1px solid var(--color-border-subtle, rgba(255, 255, 255, 0.12));
    color: var(--text-light, #ffffff);
    border-radius: 4px;
    outline: none;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    line-height: 36px;
    transition: border-color 0.2s;
}

.publisher-tools-row .settings-input.select-compact-wide,
.publisher-tools-row select.select-compact-wide {
    flex: 0 0 auto;
    width: auto;
    min-width: 195px;
    height: 38px;
    padding: 0 12px;
    font-size: 0.9rem;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    cursor: pointer;
    background: rgba(10, 8, 7, 0.9);
    border: 1px solid var(--color-border-subtle, rgba(255, 255, 255, 0.12));
    color: var(--text-light, #ffffff);
    border-radius: 4px;
    outline: none;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    line-height: 36px;
    transition: border-color 0.2s;
}

.publisher-tools-row .settings-input.select-compact:focus,
.publisher-tools-row .settings-input.select-compact-wide:focus {
    border-color: var(--color-gold, #e59e00);
}

.publisher-action-row {
    width: 100%;
    box-sizing: border-box;
}

.publish-submit-btn.full-width-submit {
    width: 100%;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 16px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-sizing: border-box;
}

/* =========================================================================
   6. SÖTÉTÍTÉS-MENTES LEBEGŐ EMOJI & GIF POPOVER (.emoji-floating-popover)
   ========================================================================= */
.emoji-floating-popover {
    position: fixed;
    z-index: 999999;
    width: 320px;
    max-width: 92vw;
    background: rgba(18, 16, 14, 0.98);
    border: 1px solid var(--color-border-gold, rgba(229, 158, 0, 0.55));
    border-radius: 8px;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.9), 0 0 16px rgba(229, 158, 0, 0.25);
    backdrop-filter: blur(14px);
    box-sizing: border-box;
    overflow: hidden;
    animation: popoverFadeIn 0.15s ease-out;
}

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

.popover-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: rgba(10, 8, 7, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.popover-close-btn {
    background: transparent;
    border: none;
    color: var(--text-muted, #aba29a);
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
    transition: color 0.2s;
}

.popover-close-btn:hover {
    color: #ef4444;
}

.popover-body {
    padding: 10px 12px;
    box-sizing: border-box;
}

.picker-top-tabs {
    display: flex;
    gap: 6px;
}

.picker-tab-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-silver, #c5bdbc);
    padding: 3px 10px;
    border-radius: 4px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.picker-tab-btn.active,
.picker-tab-btn:hover {
    background: rgba(229, 158, 0, 0.2);
    color: var(--color-gold, #e59e00);
    border-color: var(--color-gold, #e59e00);
}

.emoji-category-selector {
    display: flex;
    gap: 4px;
    justify-content: space-between;
    padding-bottom: 6px;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.emoji-cat-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    font-size: 1.05rem;
    padding: 2px 6px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.emoji-cat-btn.active,
.emoji-cat-btn:hover {
    background: rgba(229, 158, 0, 0.2);
    border-color: var(--color-gold, #e59e00);
}

.emojis-grid-view {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    max-height: 180px;
    overflow-y: auto;
    padding-right: 2px;
}

.emojis-grid-view span {
    font-size: 1.3rem;
    text-align: center;
    cursor: pointer;
    padding: 3px;
    border-radius: 4px;
    transition: transform 0.15s, background 0.15s;
    user-select: none;
}

.emojis-grid-view span:hover {
    background: rgba(229, 158, 0, 0.2);
    transform: scale(1.25);
}

.gif-search-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--color-border-subtle, rgba(255, 255, 255, 0.12));
    border-radius: 4px;
    padding: 6px 10px;
    color: var(--text-light, #ffffff);
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.9rem;
    outline: none;
    margin-bottom: 8px;
    box-sizing: border-box;
}

.gif-search-input:focus {
    border-color: var(--color-gold, #e59e00);
}

.gif-results-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    max-height: 180px;
    overflow-y: auto;
    padding-right: 2px;
}

.gif-result-item {
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #0a0c10;
}

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

.gif-result-item:hover img {
    transform: scale(1.05);
}

/* PREMIUM PUBLISHER */
.post-publisher-card {
    border-color: rgba(214,165,43,.28);
    background:
        radial-gradient(circle at 88% 0%, rgba(214,165,43,.065), transparent 30%),
        linear-gradient(180deg, rgba(20,22,25,.98), rgba(10,12,14,.98));
    box-shadow: 0 18px 42px rgba(0,0,0,.38);
}

.publisher-formatting-toolbar {
    background: rgba(5,7,9,.84);
    border-color: var(--dx-line-soft);
}

.post-editor-textarea {
    background: rgba(4,6,8,.82);
    color: var(--dx-silver-hi);
    border-color: var(--dx-line-soft);
}

.post-editor-textarea:focus {
    border-color: rgba(214,165,43,.52);
    box-shadow: 0 0 0 3px rgba(214,165,43,.05);
}

body.light-mode .post-publisher-card {
    background:
        radial-gradient(circle at 88% 0%, rgba(149,102,28,.09), transparent 32%),
        linear-gradient(145deg, var(--theme-surface) 0%, var(--theme-surface-2) 100%);
    border-color: var(--theme-line-strong);
    color: var(--theme-text);
    box-shadow: 0 20px 48px rgba(67,52,38,.18), 0 4px 14px rgba(67,52,38,.10), inset 0 1px 0 rgba(255,244,226,.42);
}

body.light-mode .publisher-formatting-toolbar {
    background: linear-gradient(180deg, #c9b59d 0%, #bda78d 100%);
    border-color: var(--theme-line);
    color: var(--theme-text-strong);
    box-shadow: inset 0 1px 0 rgba(255,244,226,.28), 0 4px 12px rgba(67,52,38,.08);
}

body.light-mode .post-editor-textarea {
    background: linear-gradient(180deg, #e2d4c1 0%, #d4c1a9 100%);
    color: var(--theme-text-strong);
    border-color: var(--theme-line);
    box-shadow: inset 0 2px 8px rgba(67,52,38,.08), 0 1px 0 rgba(255,244,226,.30);
}

body.light-mode .post-editor-textarea::placeholder {
    color: #786753;
}


/* =========================================================================
   V45 — DROPX SOCIAL PUBLISHER LAUNCHER + ANCHORED GLASS POPUP
   Közös komponens: Hírfolyam + Csoportok

   Desktop:
   - a launcher helyén marad a normál dokumentumfolyamban
   - a publisher NEM tolja le a Story/Timeline elemeket
   - a publisher fix overlay popupként jelenik meg
   - JS a launcher aktuális viewport-helyére rögzíti
   - a háttér csak nagyon enyhén blur-ölt, nincs sötét overlay

   Mobil:
   - megmarad a teljes szélességű alsó sheet
   ========================================================================= */

.post-publisher-shell {
    position: relative;
    width: 100%;
    margin: 0 0 18px;
}

.post-publisher-launcher {
    width: 100%;
    min-height: 64px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border: 1px solid rgba(214, 165, 43, 0.18);
    border-radius: 16px;
    background:
        radial-gradient(circle at 88% 0%, rgba(214,165,43,0.08), transparent 34%),
        linear-gradient(135deg, rgba(22,24,27,0.78), rgba(8,10,12,0.74));
    box-shadow:
        0 14px 34px rgba(0,0,0,0.22),
        inset 0 1px 0 rgba(255,255,255,0.05);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    color: var(--text-light, #fff);
    text-align: left;
    cursor: pointer;
    transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease, background .22s ease;
    box-sizing: border-box;
    font-family: 'Rajdhani', sans-serif;
}

.post-publisher-launcher:hover {
    border-color: rgba(214,165,43,0.42);
    box-shadow:
        0 18px 42px rgba(0,0,0,0.28),
        0 0 28px rgba(214,165,43,0.06),
        inset 0 1px 0 rgba(255,255,255,0.07);
    transform: translateY(-1px);
}

.post-publisher-launcher:focus-visible {
    outline: none;
    border-color: rgba(214,165,43,0.72);
    box-shadow: 0 0 0 3px rgba(214,165,43,0.10);
}

.publisher-launcher-avatar-wrap {
    position: relative;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
}

.publisher-launcher-avatar {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid rgba(214,165,43,0.56);
    box-shadow: 0 0 16px rgba(214,165,43,0.10);
}

.publisher-launcher-status {
    position: absolute;
    right: 0;
    bottom: 1px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #49d17d;
    border: 2px solid #0c0e10;
    box-sizing: border-box;
}

.publisher-launcher-prompt {
    min-width: 0;
    padding: 10px 15px;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 999px;
    background: rgba(255,255,255,0.045);
    color: rgba(230,232,235,0.72);
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.publisher-launcher-actions {
    display: flex;
    align-items: center;
    gap: 7px;
    padding-left: 2px;
}

.publisher-launcher-icon {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    border: 1px solid transparent;
    background: rgba(255,255,255,0.035);
    color: var(--color-silver, #c5bdbc);
    transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}

.publisher-launcher:hover .publisher-launcher-icon {
    background: rgba(214,165,43,0.06);
    border-color: rgba(214,165,43,0.12);
}

.publisher-launcher-icon svg {
    width: 19px;
    height: 19px;
    stroke-width: 1.9;
}

.publisher-launcher-video svg { color: #ef476f; }
.publisher-launcher-image svg { color: #55c97a; }
.publisher-launcher-reel svg { color: #f7a531; }

/* -------------------------------------------------------------------------
   DESKTOP POPUP OVERLAY
   ------------------------------------------------------------------------- */
.post-publisher-modal {
    position: fixed;
    inset: 0;
    z-index: 100500;
    display: block;
    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    overflow: hidden;
    box-sizing: border-box;
    transition: opacity .18s ease, visibility .18s ease;
}

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

.post-publisher-modal-backdrop {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 0;
    background: rgba(7, 9, 11, 0.008);
    backdrop-filter: blur(1.5px);
    -webkit-backdrop-filter: blur(1.5px);
}

.post-publisher-modal-panel {
    position: fixed;
    z-index: 1;
    top: var(--publisher-popup-top, 140px);
    left: var(--publisher-popup-left, 50%);
    width: var(--publisher-popup-width, min(680px, calc(100vw - 24px)));
    max-width: calc(100vw - 24px);
    max-height: var(--publisher-popup-max-height, min(900px, 78vh));
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(214,165,43,0.30);
    border-radius: 18px;
    background:
        radial-gradient(circle at 88% 0%, rgba(214,165,43,0.09), transparent 32%),
        linear-gradient(145deg, rgba(22,24,27,0.965), rgba(9,11,13,0.965));
    box-shadow:
        0 24px 64px rgba(0,0,0,0.38),
        0 0 30px rgba(214,165,43,0.055),
        inset 0 1px 0 rgba(255,255,255,0.065);
    backdrop-filter: blur(22px) saturate(115%);
    -webkit-backdrop-filter: blur(22px) saturate(115%);
    transform: translateY(-6px) scale(.992);
    transform-origin: center top;
    transition: transform .20s ease, opacity .18s ease;
    box-sizing: border-box;
}

.post-publisher-modal.is-open .post-publisher-modal-panel {
    transform: translateY(0) scale(1);
}

.post-publisher-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px 15px;
    border-bottom: 1px solid rgba(255,255,255,0.065);
    box-sizing: border-box;
    flex: 0 0 auto;
}

.post-publisher-modal-kicker {
    display: block;
    margin-bottom: 4px;
    color: var(--color-gold, #e59e00);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.55rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.post-publisher-modal-heading h2 {
    margin: 0;
    color: var(--text-light, #fff);
    font-family: 'Chakra Petch', sans-serif;
    font-size: 1.28rem;
    line-height: 1.1;
}

.post-publisher-modal-close {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 38px;
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 50%;
    background: rgba(255,255,255,0.035);
    color: rgba(255,255,255,0.68);
    cursor: pointer;
    transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease;
}

.post-publisher-modal-close:hover {
    color: #fff;
    border-color: rgba(214,165,43,0.48);
    background: rgba(214,165,43,0.08);
    transform: rotate(4deg);
}

.post-publisher-modal-close svg {
    width: 17px;
    height: 17px;
    stroke-width: 2;
}

.post-publisher-modal-body {
    overflow-y: auto;
    min-height: 0;
    padding: 16px 18px 12px;
    scrollbar-width: thin;
    scrollbar-color: rgba(214,165,43,0.42) transparent;
}

.post-publisher-modal-body .post-publisher-card {
    margin: 0;
    border-color: rgba(214,165,43,0.22);
    border-radius: 16px;
    background: rgba(10,12,14,0.62);
    box-shadow: none;
}

.post-publisher-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 18px 13px;
    border-top: 1px solid rgba(255,255,255,0.055);
    color: rgba(205,209,213,0.48);
    font-size: 0.68rem;
    font-style: italic;
    flex: 0 0 auto;
}

.post-publisher-modal-footer-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: rgba(214,165,43,0.62);
}

.post-publisher-modal-footer-status svg {
    width: 12px;
    height: 12px;
}

/* -------------------------------------------------------------------------
   MOBIL
   A mobil/app nézet külön publisher.mobile.css fájlban él.
   Ezt a közös HEADER a publisher.css UTÁN tölti be.
   A mobil fájl minden szabálya media query alatt van, ezért PC-n nem módosítja
   a desktop publisher megjelenését. A FOOTER-ből betöltött JS csak a funkciókat
   inicializálja; CSS-t futásidőben nem injektál.
   ------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .post-publisher-launcher,
    .post-publisher-launcher-icon,
    .post-publisher-modal,
    .post-publisher-modal-panel,
    .post-publisher-modal-close {
        transition: none;
    }
}

/* =========================================================================
   SOCIAL POST VIDEO — WEB OPTIMIZED HTML5 PLAYER
   A posztba mentett H.264/AAC MP4 videók közös megjelenítője.
   ========================================================================= */
.parsed-post-video-wrap {
    width: 100%;
    margin-top: 10px;
    overflow: hidden;
    border: 1px solid rgba(214,165,43,.18);
    border-radius: 10px;
    background: #050708;
    box-shadow: 0 10px 28px rgba(0,0,0,.22);
}

.parsed-post-video {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: min(72vh, 720px);
    background: #000;
}

@media (max-width: 768px) {
    .parsed-post-video-wrap {
        margin-top: 8px;
        border-radius: 8px;
    }

    .parsed-post-video {
        max-height: 62vh;
    }
}
