/*
 * Shared admin snippet modal styles.
 *
 * Used by Profiles and Leaderboards embed generators so the modal chrome
 * is not owned by the Players view.
 */

.modal--snippet {
    max-width: 960px;
}

.snippet-modal__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--space-lg);
    align-items: start;
}

.snippet-modal__form {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    min-width: 0;
}

.snippet-modal__intro {
    font-size: 13px;
    line-height: 1.5;
    color: var(--color-text-secondary);
    background: var(--color-surface-muted, rgba(255, 255, 255, 0.04));
    border-left: 3px solid var(--color-accent, #d4af37);
    padding: 10px 12px;
    margin: 0 0 var(--space-sm);
    border-radius: var(--radius-sm, 4px);
}

.snippet-modal__lobby-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.snippet-modal__lobby-hint {
    font-size: 12px;
    color: var(--color-text-muted, #888);
    line-height: 1.4;
}

.snippet-modal__textarea {
    font-family: var(--font-mono, ui-monospace, "SF Mono", monospace);
    font-size: 12px;
    line-height: 1.4;
    resize: vertical;
    min-height: 88px;
    background: var(--color-surface-muted, rgba(255, 255, 255, 0.04));
}

.snippet-modal__preview-wrapper {
    display: flex;
    flex-direction: column;
    background: var(--color-surface-muted, rgba(0, 0, 0, 0.25));
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    min-height: 420px;
}

.snippet-modal__preview {
    width: 100%;
    height: 440px;
    border: 0;
    background: transparent;
    display: block;
}

.snippet-modal__preview-note {
    margin: 0;
    padding: 8px 12px;
    font-size: 11px;
    line-height: 1.4;
    color: var(--color-text-muted, #888);
    background: var(--color-surface, rgba(255, 255, 255, 0.02));
    border-top: 1px solid var(--color-border);
}

@media (max-width: 768px) {
    .modal--snippet {
        max-width: 100%;
    }
    .snippet-modal__body {
        grid-template-columns: 1fr;
    }
    .snippet-modal__preview {
        height: 360px;
    }
}
