/* Kendi kapsamındaki bileşen, site ve panelin mevcut renklerini kullanır. */
.social-share-trigger { position: relative; z-index: 4; min-height: 44px; padding: 10px 16px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text-primary, var(--text)); font: 600 14px Inter, sans-serif; cursor: pointer; }
.social-share-trigger[hidden] { display: none; }
.social-share-trigger:hover { border-color: var(--accent-primary, var(--accent)); }
.social-dialog { --ss-bg: var(--bg-secondary, var(--bg-2)); --ss-text: var(--text-primary, var(--text)); --ss-muted: var(--text-secondary, var(--text-2)); width: min(960px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 24px; border: 1px solid var(--border); border-radius: 12px; color: var(--ss-text); background: var(--ss-bg); overflow: auto; }
.social-dialog::backdrop { background: color-mix(in srgb, var(--bg-primary, var(--bg)) 80%, transparent); backdrop-filter: blur(5px); }
.social-dialog header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 18px; }
.social-dialog h2 { font: 800 24px Manrope, sans-serif; margin: 0; }
.social-close { min-width: 44px; min-height: 44px; border: 1px solid var(--border); border-radius: 8px; color: inherit; background: var(--surface); cursor: pointer; }
.social-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.social-preview { width: min(100%, 420px); aspect-ratio: 4 / 5; border-radius: 8px; background: var(--surface); justify-self: center; }
.social-tools { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.social-tools p { color: var(--ss-muted); font-size: 16px; line-height: 1.6; margin: 0; }
.social-tools label { font-size: 16px; font-weight: 600; }
.social-tools textarea { width: 100%; min-height: 240px; resize: vertical; padding: 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--ss-text); font: 400 16px/1.6 Inter, sans-serif; }
.social-actions { display: flex; flex-direction: column; gap: 10px; }
.social-actions button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 16px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--ss-text); font: 600 16px Inter, sans-serif; cursor: pointer; }
.social-actions button:first-child { background: var(--accent-primary, var(--accent)); color: var(--on-accent, var(--bg)); }
.social-actions button:disabled { opacity: .5; cursor: wait; }
.social-dialog [hidden] { display: none !important; }
.social-feedback { min-height: 48px; }
@media (min-width: 760px) { .social-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

/* Önizleme, çıktı dosyasının 4:5 oranını korur. */
img.social-preview { height: auto; object-fit: contain; }
