@use '../abstracts' as *;

/**
 * Form Preview Shell (admin preview page)
 */
.gfm-preview-shell {
    max-width: 760px;
    margin: 0 auto;
    padding: 0;

    .gfm-preview-badge {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        margin-bottom: $space-md;
        padding: 6px 14px;
        background: rgba($warning, 0.12);
        color: color-mix(in srgb, $warning, $text-main 30%);
        border: 1px solid rgba($warning, 0.3);
        border-radius: 999px;
        font-size: 12.5px;
        font-weight: 600;
        letter-spacing: 0.01em;
        text-transform: none;

        .dashicons {
            font-size: 14px;
            width: 14px;
            height: 14px;
        }
    }

    .gfm-preview-frame {
        background: $white;
        border: 1px solid $border;
        border-radius: $radius-lg;
        padding: 0;
        box-shadow: $shadow-md;
        overflow: hidden;

        .gfm-form {
            box-shadow: none;
            border-radius: 0;
        }
    }

    .gfm-preview-hint {
        margin: $space-md 0 0;
        font-size: 12.5px;
        color: $text-muted;
        line-height: 1.5;
        text-align: center;
    }
}

/**
 * Gutenberg Block Preview
 */
.gfm-block-preview {
    padding: $space-md;
    background: #f8fafc;
    border: 1px solid $border;
    border-radius: $radius-md;
    text-align: center;
    box-shadow: $shadow-sm;

    h3 {
        margin: $space-xs 0;
        font-weight: 700;
        color: $text-main;
    }

    p {
        color: $text-muted;
        font-size: 13px;
        margin: 0;
    }
}

.gfm-block-icon {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: $primary;
    margin-bottom: $space-xs;
}
