import type { Meta, StoryObj } from '@storybook/react';
import { Card, CardHeader, CardTitle, CardDescription } from './Card.js';

const meta: Meta<typeof Card> = {
  title: 'Components/Card',
  component: Card,
  argTypes: {
    padding: { control: 'select', options: ['none', 'sm', 'md', 'lg'] },
    hover: { control: 'boolean' },
  },
};

export default meta;
type Story = StoryObj<typeof Card>;

export const Default: Story = {
  args: { children: 'Card content goes here' },
};

export const WithHeader: Story = {
  render: args => (
    <Card {...args}>
      <CardHeader>
        <CardTitle>Card Title</CardTitle>
        <CardDescription>A short description of this card.</CardDescription>
      </CardHeader>
      <p className="text-sm text-[var(--bl-text-secondary)]">Body content</p>
    </Card>
  ),
};

export const Hoverable: Story = {
  args: { hover: true, children: 'Hover me to see the border effect' },
};

export const LargePadding: Story = {
  args: { padding: 'lg', children: 'Large padding card' },
};
