/* ═══════════════════════════════════════════════════════════════
   media.css  |  Desafio Focar v2 — Media extras
   ═══════════════════════════════════════════════════════════════ */

/* ── Edit post modal ───────────────────────────────────────── */
#edit-post-modal {
    position: fixed; inset: 0; z-index: 200;
    display: flex; align-items: flex-end; justify-content: center;
    background: rgba(0,0,0,0.75);
    opacity: 0; transition: opacity .22s;
    pointer-events: none;
    backdrop-filter: blur(4px);
}
#edit-post-sheet {
    width: 100%; max-width: 440px;
    background: var(--bg-raised);
    border-radius: 24px 24px 0 0;
    padding: 20px 16px calc(32px + env(safe-area-inset-bottom,0px));
    box-shadow: var(--sh-3);
    transform: translateY(100%);
    transition: transform .26s cubic-bezier(.4,0,.2,1);
    border-top: 1px solid var(--bd-2);
    position: relative;
}
#edit-post-sheet::before {
    content: '';
    position: absolute;
    top: 0; left: 30%; right: 30%;
    height: 1px;
    background: var(--gold-gd);
}

.edit-sheet-handle {
    width: 36px; height: 4px;
    background: var(--bg-float);
    border-radius: 2px;
    margin: 0 auto 16px;
}

/* Edit post form fields */
.edit-post-label {
    font-size: 13px; font-weight: 700;
    color: var(--tx-2);
    margin: 0 0 10px;
    letter-spacing: .04em;
    text-transform: uppercase;
    font-size: 12px;
}
.edit-post-input {
    width: 100%;
    border: 1px solid var(--bd-2);
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 15px; font-family: var(--fb);
    outline: none; margin-bottom: 8px;
    color: var(--tx); background: var(--bg-float);
    font-weight: 600;
    transition: border-color .2s;
    display: block;
}
.edit-post-input:focus { border-color: var(--gold); }
.edit-post-textarea {
    width: 100%;
    border: 1px solid var(--bd-2);
    border-radius: 12px;
    padding: 12px;
    font-size: 15px; font-family: var(--fb);
    resize: none; outline: none;
    color: var(--tx); background: var(--bg-float);
    line-height: 1.6;
    height: 120px;
    transition: border-color .2s;
}
.edit-post-textarea:focus { border-color: var(--gold); }
.edit-post-actions {
    display: flex; gap: 10px; margin-top: 12px;
}
.edit-post-btn-cancel {
    flex: 1; padding: 12px;
    border: 1px solid var(--bd-2); border-radius: 12px;
    background: var(--bg-float);
    font-size: 14px; font-weight: 600;
    color: var(--tx-2); cursor: pointer; font-family: var(--fb);
    transition: border-color .15s;
}
.edit-post-btn-cancel:hover { border-color: var(--bd-gold); }
.edit-post-btn-save {
    flex: 2; padding: 12px;
    border: none; border-radius: 12px;
    background: var(--gold-gd);
    color: var(--on-gold);
    font-size: 14px; font-weight: 700;
    cursor: pointer; font-family: var(--fb);
    box-shadow: var(--gold-sh);
    transition: opacity .18s;
}
.edit-post-btn-save:hover { opacity: .9; }
.edit-post-btn-save:disabled { opacity: .4; cursor: not-allowed; }

/* Removed-media notice */
.edit-media-removed-notice {
    font-size: 12px; color: var(--tx-2);
    text-align: center; padding: 8px 0; font-style: italic;
}

.edit-media-preview-wrap {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin: 10px 0;
    border: 1px solid var(--bd);
}
.edit-media-preview-thumb {
    width: 100%; max-height: 140px;
    object-fit: cover; display: block;
}
.edit-media-more {
    position: absolute; bottom: 8px; right: 8px;
    background: rgba(0,0,0,.7);
    color: var(--gold-lt);
    font-size: 11px; font-weight: 700;
    padding: 3px 8px; border-radius: 8px;
}
.edit-media-rm-btn {
    display: flex; align-items: center; gap: 6px;
    margin-top: 8px;
    background: rgba(209,75,75,.12);
    border: 1px solid var(--danger-bd);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 12px; font-weight: 600;
    color: var(--danger-lt);
    cursor: pointer; transition: background .15s;
    width: 100%;
}
.edit-media-rm-btn:hover { background: rgba(209,75,75,.2); }

/* ── Post video autoplay ────────────────────────────────────── */
.post-video-autoplay {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}



