/* ==========================================================================
   VForum Pro — Medya kütüphanesi, figürler, sosyal embed'ler
   ========================================================================== */

/* İçerikteki figürler (pro görsel sunumu) */
.vfp-figure { margin: 0 0 1rem; position: relative; max-width: 100%; }
.vfp-figure img, .vfp-figure video { display: block; width: 100%; height: auto; border-radius: 0.875rem; box-shadow: 0 0.625rem 1.875rem rgba(16, 24, 40, .14); background: var(--vfp-surface-3); }
.vfp-figure img { transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s; }
.vfp-figure img:hover { transform: translateY(-2px) scale(1.006); box-shadow: 0 1.125rem 2.75rem rgba(16, 24, 40, .22); }
.vfp-figure figcaption { font-size: 0.8125rem; color: var(--vfp-muted); text-align: center; padding: 0.5rem 0.375rem 0; font-style: italic; }
.vfp-figure--center { margin-left: auto; margin-right: auto; width: fit-content; }
.vfp-figure--wide { width: 100%; }
.vfp-figure--wide img { border-radius: 0.625rem; }
.vfp-figure--left, .vfp-figure--right { max-width: min(46%, 26.25rem); }
.vfp-figure--left { float: left; margin: 0.25rem 1.125rem 0.75rem 0; }
.vfp-figure--right { float: right; margin: 0.25rem 0 0.75rem 1.125rem; }
.vfp-content::after { content: ""; display: table; clear: both; }
.vfp-video { max-height: 70vh; }
.vfp-audio { width: 100%; margin: 0 0 0.75rem; }
.vfp-file { display: inline-flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem; margin: 0 0 0.75rem; border: 1px solid var(--vfp-border); border-radius: 0.875rem; background: var(--vfp-surface-2); color: var(--vfp-text) !important; text-decoration: none !important; max-width: 100%; transition: border-color .15s, transform .15s; }
.vfp-file:hover { border-color: var(--vfp-primary); transform: translateY(-1px); }
.vfp-file > .vfp-ic:first-child { width: 2.5rem; height: 2.5rem; padding: 0.625rem; border-radius: 0.75rem; background: var(--vfp-head); color: #fff; }
.vfp-file span { display: grid; min-width: 0; }
.vfp-file b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vfp-file small { color: var(--vfp-muted); }
.vfp-file__go { transform: rotate(45deg); color: var(--vfp-muted); }

/* Sosyal / video embed */
.vfp-embed { position: relative; width: 100%; max-width: 47.5rem; margin: 0 auto 0.875rem; border-radius: 0.875rem; overflow: hidden; background: #000; box-shadow: 0 0.5rem 1.625rem rgba(0, 0, 0, .18); }
.vfp-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vfp-embed--instagram, .vfp-embed--tiktok, .vfp-embed--threads, .vfp-embed--linkedin, .vfp-embed--facebook, .vfp-embed--telegram { max-width: 26.25rem; background: var(--vfp-surface); }
.vfp-embed--tiktok { max-width: 21.25rem; }
.vfp-embed--spotify { background: transparent; box-shadow: none; }
.vfp-embed-social { display: flex; justify-content: center; margin: 0 0 0.875rem; max-width: 100%; overflow: hidden; }
.vfp-embed-social iframe { max-width: 100%; }
.vfp-embed-social blockquote { margin: 0; }

/* Editör: medya butonu, sürükle durumu */
.vfp-editor__bar > .vfp-editor__media { width: auto; padding: 0 0.625rem; gap: 0.375rem; display: inline-flex; align-items: center; color: var(--vfp-primary); font-weight: 700; font-size: 0.75rem; background: color-mix(in srgb, var(--vfp-primary) 10%, transparent); }
.vfp-editor.is-drag { border-color: var(--vfp-primary); box-shadow: 0 0 0 0.25rem color-mix(in srgb, var(--vfp-primary) 20%, transparent); }
.vfp-inline-edit { margin-bottom: 0.625rem; }

/* Medya modalı */
.vfp-modal--media .vfp-modal__box { width: min(65rem, 100%); }
.vfp-modal--media .vfp-modal__body { padding: 0; }
.vfp-media__tabs { border-radius: 0; }
.vfp-media__pane { padding: 1rem; }
.vfp-media__pane[data-mpane="lib"] { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.vfp-media__pane[data-mpane="lib"][hidden] { display: none; }
.vfp-drop-zone { display: grid; justify-items: center; gap: 0.5rem; padding: 2.625rem 1rem; border: 2px dashed var(--vfp-border); border-radius: 1.125rem; cursor: pointer; color: var(--vfp-muted); text-align: center; transition: .15s; background: var(--vfp-surface-2); }
.vfp-drop-zone svg { color: var(--vfp-primary); }
.vfp-drop-zone b { color: var(--vfp-text); }
.vfp-drop-zone:hover, .vfp-drop-zone.is-over { border-color: var(--vfp-primary); background: color-mix(in srgb, var(--vfp-primary) 7%, var(--vfp-surface)); transform: scale(1.005); }
.vfp-upq { display: grid; gap: 0.5rem; margin-top: 0.875rem; }
.vfp-upq__row { display: grid; grid-template-columns: 1fr 7.5rem 2.5rem; gap: 0.625rem; align-items: center; font-size: 0.8125rem; }
.vfp-upq__row span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vfp-upq__row i { height: 0.375rem; border-radius: 0.25rem; background: var(--vfp-surface-3); overflow: hidden; }
.vfp-upq__row i b { display: block; height: 100%; background: var(--vfp-head); transition: width .2s; }
.vfp-upq__row.is-done small { color: var(--vfp-ok); font-weight: 700; }
.vfp-upq__row.is-err small { color: var(--vfp-err); font-weight: 700; }
.vfp-media__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr)); gap: 0.625rem; max-height: 56vh; overflow: auto; padding: 2px; }
.vfp-media__tile { position: relative; aspect-ratio: 1; border: 2px solid transparent; border-radius: 0.75rem; overflow: hidden; padding: 0; cursor: pointer; background: var(--vfp-surface-3); transition: transform .12s; }
.vfp-media__tile:hover { transform: scale(1.03); }
.vfp-media__tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vfp-media__tile.is-on { border-color: var(--vfp-primary); box-shadow: 0 0 0 0.1875rem color-mix(in srgb, var(--vfp-primary) 30%, transparent); }
.vfp-media__check { position: absolute; top: 0.375rem; right: 0.375rem; width: 1.375rem; height: 1.375rem; border-radius: 50%; background: var(--vfp-primary); color: #fff; font-style: normal; font-size: 0.75rem; display: none; place-items: center; }
.vfp-media__tile.is-on .vfp-media__check { display: grid; }
.vfp-media__file { display: grid; place-items: center; align-content: center; gap: 0.25rem; height: 100%; padding: 0.375rem; text-align: center; }
.vfp-media__file b { font-size: 0.9375rem; color: var(--vfp-primary); }
.vfp-media__file small { font-size: 0.625rem; color: var(--vfp-muted); word-break: break-all; }
.vfp-media__file--lg { height: 10rem; border-radius: 0.75rem; background: var(--vfp-surface-3); }
.vfp-media__side { border-top: 1px solid var(--vfp-border); padding-top: 0.875rem; }
.vfp-media__prev { border-radius: 0.875rem; overflow: hidden; background: repeating-conic-gradient(var(--vfp-surface-3) 0 25%, var(--vfp-surface) 0 50%) 0 0 / 1rem 1rem; display: grid; place-items: center; min-height: 8.75rem; }
.vfp-media__prev img { max-height: 15rem; width: auto; }
.vfp-media__meta { margin: 0.625rem 0; display: grid; }
.vfp-media__meta small { color: var(--vfp-muted); font-size: 0.75rem; }
.vfp-media__tools { display: flex; flex-wrap: wrap; gap: 0.25rem; margin-bottom: 0.75rem; }
.vfp-media__tools button { min-width: 2.125rem; height: 2rem; padding: 0 0.5rem; border: 1px solid var(--vfp-border); background: var(--vfp-surface); border-radius: 0.5rem; cursor: pointer; font-size: 0.8125rem; font-weight: 700; }
.vfp-media__tools button:hover { border-color: var(--vfp-primary); color: var(--vfp-primary); }
.vfp-media__tools .vfp-inline input { width: 5.625rem; height: 2rem; padding: 0.25rem 0.5rem; }
.vfp-seg--4 { grid-template-columns: repeat(4, 1fr); padding: 0; }
.vfp-seg--4 button { font-size: 1rem; padding: 0.375rem; }
.vfp-media__acts { display: flex; justify-content: space-between; align-items: center; gap: 0.625rem; position: sticky; bottom: 0; background: var(--vfp-surface); padding: 0.625rem 0 0; }
.vfp-media__acts .vfp-link { color: var(--vfp-err); }

@media (min-width: 900px) {
	.vfp-media__pane[data-mpane="lib"] { grid-template-columns: 1fr 20rem; }
	.vfp-media__side { border-top: 0; border-left: 1px solid var(--vfp-border); padding: 0 0 0 1rem; max-height: 64vh; overflow: auto; }
}
@media (max-width: 599px) {
	.vfp-figure--left, .vfp-figure--right { float: none; max-width: 100%; margin: 0 0 0.875rem; }
}
