@import 'tailwindcss';

@plugin 'tailwindcss-animate';

@source '../views';
@source '../../vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php';

@custom-variant dark (&:is(.dark *));

@theme {
    --font-sans:
        'Instrument Sans', ui-sans-serif, system-ui, sans-serif,
        'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
        'Noto Color Emoji';

    --radius-lg: var(--radius);
    --radius-md: calc(var(--radius) - 2px);
    --radius-sm: calc(var(--radius) - 4px);

    /* BCF Custom Colors */
    --color-bcf-orange: #FF6B35;
    --color-bcf-cream: #F5F5DC;
    --color-bcf-dark-gray: #333333;
    --color-bcf-light-gray: #666666;
    --color-bcf-white: #FFFFFF;

    --color-background: var(--bcf-cream);
    --color-foreground: var(--bcf-dark-gray);

    --color-card: var(--bcf-white);
    --color-card-foreground: var(--bcf-dark-gray);

    --color-popover: var(--bcf-white);
    --color-popover-foreground: var(--bcf-dark-gray);

    --color-primary: var(--bcf-orange);
    --color-primary-foreground: var(--bcf-white);

    --color-secondary: var(--bcf-cream);
    --color-secondary-foreground: var(--bcf-dark-gray);

    --color-muted: var(--bcf-cream);
    --color-muted-foreground: var(--bcf-light-gray);

    --color-accent: var(--bcf-orange);
    --color-accent-foreground: var(--bcf-white);

    --color-destructive: oklch(0.577 0.245 27.325);
    --color-destructive-foreground: oklch(0.577 0.245 27.325);

    --color-border: oklch(0.922 0 0);
    --color-input: oklch(0.922 0 0);
    --color-ring: oklch(0.87 0 0);

    --color-chart-1: var(--bcf-orange);
    --color-chart-2: oklch(0.6 0.118 184.704);
    --color-chart-3: oklch(0.398 0.07 227.392);
    --color-chart-4: oklch(0.828 0.189 84.429);
    --color-chart-5: oklch(0.769 0.188 70.08);

    --color-sidebar: oklch(0.985 0 0);
    --color-sidebar-foreground: oklch(0.145 0 0);
    --color-sidebar-primary: oklch(0.205 0 0);
    --color-sidebar-primary-foreground: oklch(0.985 0 0);
    --color-sidebar-accent: oklch(0.97 0 0);
    --color-sidebar-accent-foreground: oklch(0.205 0 0);
    --color-sidebar-border: oklch(0.922 0 0);
    --color-sidebar-ring: oklch(0.87 0 0);
}

:root {
    --background: var(--color-bcf-cream);
    --foreground: var(--color-bcf-dark-gray);
    --card: var(--color-bcf-white);
    --card-foreground: var(--color-bcf-dark-gray);
    --popover: var(--color-bcf-white);
    --popover-foreground: var(--color-bcf-dark-gray);
    --primary: var(--color-bcf-orange);
    --primary-foreground: var(--color-bcf-white);
    --secondary: var(--color-bcf-cream);
    --secondary-foreground: var(--color-bcf-dark-gray);
    --muted: var(--color-bcf-cream);
    --muted-foreground: var(--color-bcf-light-gray);
    --accent: var(--color-bcf-orange);
    --accent-foreground: var(--color-bcf-white);
    --destructive: oklch(0.577 0.245 27.325);
    --destructive-foreground: oklch(0.577 0.245 27.325);
    --border: oklch(0.922 0 0);
    --input: oklch(0.922 0 0);
    --ring: oklch(0.87 0 0);
    --chart-1: var(--color-bcf-orange);
    --chart-2: oklch(0.6 0.118 184.704);
    --chart-3: oklch(0.398 0.07 227.392);
    --chart-4: oklch(0.828 0.189 84.429);
    --chart-5: oklch(0.769 0.188 70.08);
    --radius: 0.625rem;
    --sidebar: oklch(0.985 0 0);
    --sidebar-foreground: oklch(0.145 0 0);
    --sidebar-primary: oklch(0.205 0 0);
    --sidebar-primary-foreground: oklch(0.985 0 0);
    --sidebar-accent: oklch(0.97 0 0);
    --sidebar-accent-foreground: oklch(0.205 0 0);
    --sidebar-border: oklch(0.922 0 0);
    --sidebar-ring: oklch(0.87 0 0);
}

.dark {
    --background: oklch(0.145 0 0);
    --foreground: oklch(0.985 0 0);
    --card: oklch(0.145 0 0);
    --card-foreground: oklch(0.985 0 0);
    --popover: oklch(0.145 0 0);
    --popover-foreground: oklch(0.985 0 0);
    --primary: oklch(0.985 0 0);
    --primary-foreground: oklch(0.205 0 0);
    --secondary: oklch(0.269 0 0);
    --secondary-foreground: oklch(0.985 0 0);
    --muted: oklch(0.269 0 0);
    --muted-foreground: oklch(0.708 0 0);
    --accent: oklch(0.269 0 0);
    --accent-foreground: oklch(0.985 0 0);
    --destructive: oklch(0.396 0.141 25.723);
    --destructive-foreground: oklch(0.637 0.237 25.331);
    --border: oklch(0.269 0 0);
    --input: oklch(0.269 0 0);
    --ring: oklch(0.439 0 0);
    --chart-1: oklch(0.488 0.243 264.376);
    --chart-2: oklch(0.696 0.17 162.48);
    --chart-3: oklch(0.769 0.188 70.08);
    --chart-4: oklch(0.627 0.265 303.9);
    --chart-5: oklch(0.645 0.246 16.439);
    --sidebar: oklch(0.205 0 0);
    --sidebar-foreground: oklch(0.985 0 0);
    --sidebar-primary: oklch(0.985 0 0);
    --sidebar-primary-foreground: oklch(0.985 0 0);
    --sidebar-accent: oklch(0.269 0 0);
    --sidebar-accent-foreground: oklch(0.985 0 0);
    --sidebar-border: oklch(0.269 0 0);
    --sidebar-ring: oklch(0.439 0 0);
}

@layer base {
    * {
        @apply border-border;
    }

    body {
        @apply bg-background text-foreground;
    }
}

/* Scroll Animation Styles */
@layer utilities {
    /* Base animation classes */
    .scroll-animate {
        opacity: 0;
        transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    }

    .scroll-animate.visible {
        opacity: 1;
        transform: translate(0, 0);
    }

    /* Fade in from bottom */
    .fade-in-up {
        transform: translateY(50px);
    }

    .fade-in-up.visible {
        transform: translateY(0);
    }

    /* Fade in from left */
    .fade-in-left {
        transform: translateX(-50px);
    }

    .fade-in-left.visible {
        transform: translateX(0);
    }

    /* Fade in from right */
    .fade-in-right {
        transform: translateX(50px);
    }

    .fade-in-right.visible {
        transform: translateX(0);
    }

    /* Scale in */
    .scale-in {
        transform: scale(0.9);
    }

    .scale-in.visible {
        transform: scale(1);
    }

    /* Staggered children animations */
    .stagger-children > * {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }

    .stagger-children.visible > * {
        opacity: 1;
        transform: translateY(0);
    }

    .stagger-children.visible > *:nth-child(1) {
        transition-delay: 0.1s;
    }

    .stagger-children.visible > *:nth-child(2) {
        transition-delay: 0.2s;
    }

    .stagger-children.visible > *:nth-child(3) {
        transition-delay: 0.3s;
    }

    .stagger-children.visible > *:nth-child(4) {
        transition-delay: 0.4s;
    }

    .stagger-children.visible > *:nth-child(5) {
        transition-delay: 0.5s;
    }

    .stagger-children.visible > *:nth-child(6) {
        transition-delay: 0.6s;
    }

    /* Smooth scrolling */
    html {
        scroll-behavior: smooth;
    }
}
