/* ── Share studio (ui/share/studio.rs) ─────────────────────────────────── */

.share-studio-section {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.share-studio-heading {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
}

.share-studio-hint {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.share-studio-private {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
    color: var(--text-secondary);
}

.share-studio-targets {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.share-studio-target {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1-5);
    padding: var(--space-1-5) var(--space-3);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-pill);
    background: var(--input-bg);
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-decoration: none;
    cursor: pointer;
}

.share-studio-target:hover {
    border-color: var(--accent-color);
    color: var(--text-color);
}

.share-studio-pickers {
    display: grid;
    align-items: start;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-3);
}

.share-studio-picker {
    display: flex;
    flex-direction: column;
    gap: var(--space-1-5);
    min-width: 0;
}

/* `.format-selector` grows (`flex: 1`); here each select keeps its own height, so the Image
   picker, with no hint beneath it, matches the Size picker beside it. */
.share-studio-select {
    flex: 0 0 auto;
    width: 100%;
    height: 2.25rem;
}

/* A field and its label row: the copy button is pinned to the row's right. */
.share-studio-field {
    display: flex;
    flex-direction: column;
    gap: var(--space-1-5);
}

.share-studio-field-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
    min-height: 1.75rem;
}

.share-studio-field-head .share-studio-heading {
    margin: 0;
}

.share-studio-copy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    padding: 0;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
}

.share-studio-copy:hover,
.share-studio-copy:focus-visible {
    border-color: var(--border-color);
    background: var(--input-bg);
    color: var(--text-color);
}

.share-studio-copy svg {
    width: 1rem;
    height: 1rem;
}

@media (max-width: 640px) {
    .share-studio-pickers {
        grid-template-columns: minmax(0, 1fr);
    }
}

.share-studio-preview {
    display: flex;
    justify-content: center;
    padding: var(--space-3);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-2xl);
    background: var(--input-bg);
}

.share-studio-preview img {
    max-width: 100%;
    max-height: 22rem;
    border-radius: var(--radius-lg);
}

.share-studio-preview.tall img {
    max-height: 28rem;
}

.share-studio-code {
    margin: 0;
    padding: var(--space-2-5) var(--space-3);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--input-bg);
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    white-space: pre-wrap;
    word-break: break-all;
    user-select: all;
}

.share-studio-embed-preview {
    display: flex;
    justify-content: center;
    overflow: hidden;
}

.share-studio-embed-preview iframe {
    max-width: 100%;
    border: 0;
    border-radius: var(--radius-2xl);
}

.share-studio-filmstrip {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: var(--space-2);
}

.share-studio-slide {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-1);
    margin: 0;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.share-studio-slide img {
    width: 100%;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

@media (max-width: 640px) {
    .share-studio-filmstrip {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* A pinned snapshot on screen (ui/share/pinned.rs). */
.pinned-version-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
    margin-bottom: var(--space-2);
    padding: var(--space-2) var(--space-3);
    border: 1px solid var(--accent-color);
    border-radius: var(--radius-lg);
    background: var(--accent-bg);
    color: var(--text-color);
    font-size: 0.9rem;
}

/* The confirmation dialog (frontend-common ConfirmationModal): one paragraph. */
.confirmation-modal-message {
    margin: 0;
    color: var(--text-primary);
    line-height: 1.5;
}
