@import 'tailwindcss';

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

@theme {
    --font-sans: 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';
    --font-bangla: 'Hind Siliguri', 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif;

    --color-brand-50: #f1f9f3;
    --color-brand-100: #ddf0e2;
    --color-brand-200: #bce1c7;
    --color-brand-300: #8ecba1;
    --color-brand-400: #58ac72;
    --color-brand-500: #348c50;
    --color-brand-600: #24713f;
    --color-brand-700: #1d5a34;
    --color-brand-800: #19482c;
    --color-brand-900: #153b25;
    --color-brand-950: #0a2114;

    --color-earth-50: #faf8f1;
    --color-brand-1: #348c50;
    --color-accent-400: #e0b73d;
    --color-brand-600: #24713f;
    --color-sand-50: #faf8f3;
    --color-sand-100: #f4efe4;
    --color-ink-900: #0f1f17;

    --shadow-soft: 0 10px 30px -12px rgb(20 60 37 / 0.18);
    --shadow-card: 0 1px 2px rgba(16, 42, 26, 0.06), 0 12px 30px -12px rgba(16, 61, 36, 0.18);

    --radius-4xl: 2rem;
}

@layer base {
    html {
        scroll-behavior: smooth;
        -webkit-text-size-adjust: 100%;
    }

    body {
        @apply bg-white text-slate-700 antialiased;
    }

    html[lang='bn'] body,
    .font-bangla {
        font-family: var(--font-bangla);
    }

    h1, h2, h3, h4, h5 {
        @apply text-brand-950 font-bold tracking-tight;
    }

    ::selection {
        background: var(--color-brand-500);
        color: #fff;
    }

    [x-cloak] {
        display: none !important;
    }
}

@layer components {
    .container-x {
        @apply mx-auto w-full max-w-7xl px-4 sm:px-6 lg:px-8;
    }

    .btn {
        @apply inline-flex items-center justify-center gap-2 rounded-full px-6 py-3 text-sm font-semibold
            transition duration-200 focus:outline-none focus-visible:ring-2 focus-visible:ring-brand-500/60
            focus-visible:ring-offset-2 disabled:opacity-60;
    }

    .btn-primary {
        @apply bg-brand-600 text-white shadow-sm hover:bg-brand-700 hover:shadow-lg active:scale-[.98];
    }

    .btn-outline {
        @apply border border-brand-600/30 bg-white/80 text-brand-700 hover:border-brand-600 hover:bg-brand-50;
    }

    .btn-ghost-light {
        @apply border border-white/40 bg-white/10 text-white backdrop-blur hover:bg-white/20;
    }

    .btn-white {
        @apply bg-white text-brand-700 shadow-sm hover:bg-brand-50;
    }

    .section {
        @apply py-16 sm:py-20 lg:py-24;
    }

    .section-tight {
        @apply py-12 sm:py-16;
    }

    .eyebrow {
        @apply inline-flex items-center gap-2 rounded-full bg-brand-50 px-4 py-1.5 text-xs font-semibold tracking-wide text-brand-700 uppercase;
    }

    .eyebrow-light {
        @apply inline-flex items-center gap-2 rounded-full border border-white/30 bg-white/10 px-4 py-1.5 text-xs font-semibold tracking-wide text-white uppercase backdrop-blur;
    }

    .heading-xl {
        @apply text-3xl leading-tight font-extrabold tracking-tight sm:text-4xl lg:text-5xl;
    }

    .heading-lg {
        @apply text-2xl leading-tight font-extrabold tracking-tight sm:text-3xl lg:text-4xl;
    }

    .lead {
        @apply text-base leading-relaxed text-slate-600 sm:text-lg;
    }

    .card {
        @apply rounded-2xl border border-slate-100 bg-white p-6 shadow-sm transition duration-300 hover:-translate-y-1 hover:shadow-lg;
    }

    .card-media {
        @apply overflow-hidden rounded-2xl border border-slate-100 bg-white shadow-sm transition duration-300 hover:-translate-y-1 hover:shadow-xl;
    }

    .link-arrow {
        @apply inline-flex items-center gap-1.5 text-sm font-semibold text-brand-700 transition hover:gap-2.5 hover:text-brand-800;
    }

    .prose-bn {
        @apply max-w-none leading-loose text-slate-700;
    }

    .prose-content h2 {
        @apply mt-8 mb-3 text-2xl font-bold text-slate-900;
    }

    .prose-content h3 {
        @apply mt-6 mb-2 text-xl font-bold text-slate-900;
    }

    .prose-content p {
        @apply mb-4 leading-relaxed text-slate-700;
    }

    .prose-content ul {
        @apply mb-4 list-disc space-y-2 pl-6;
    }

    .prose-content ol {
        @apply mb-4 list-decimal space-y-2 pl-6;
    }

    .prose-content a {
        @apply font-semibold text-brand-700 underline decoration-brand-300 underline-offset-2 hover:text-brand-900;
    }

    .prose-content img {
        @apply my-6 rounded-2xl;
    }

    .prose-content blockquote {
        @apply my-6 border-l-4 border-brand-400 bg-brand-50/60 px-5 py-3 italic text-slate-700;
    }

    .form-label {
        @apply mb-1.5 block text-sm font-semibold text-slate-700;
    }

    .form-hint {
        @apply mt-1.5 text-xs leading-relaxed text-slate-500;
    }

    .form-error {
        @apply mt-1.5 text-xs font-medium text-red-600;
    }

    .form-input {
        @apply block w-full rounded-xl border border-slate-200 bg-white px-3.5 py-2.5 text-sm text-slate-800 shadow-sm
            transition placeholder:text-slate-400 focus:border-brand-500 focus:outline-none focus:ring-2
            focus:ring-brand-500/20 disabled:cursor-not-allowed disabled:bg-slate-50;
    }

    .form-textarea {
        @apply block w-full rounded-xl border border-slate-200 bg-white px-3.5 py-2.5 text-sm text-slate-800 shadow-sm
            transition placeholder:text-slate-400 focus:border-brand-500 focus:outline-none focus:ring-2
            focus:ring-brand-500/20;
    }

    .form-select {
        @apply block w-full rounded-xl border border-slate-200 bg-white px-3.5 py-2.5 text-sm text-slate-800 shadow-sm
            transition focus:border-brand-500 focus:outline-none focus:ring-2 focus:ring-brand-500/20;
    }

    .form-checkbox {
        @apply h-4.5 w-4.5 rounded border-slate-300 text-brand-600 focus:ring-brand-500/40;
    }

    .btn-admin {
        @apply inline-flex items-center justify-center gap-2 rounded-xl px-4 py-2.5 text-sm font-semibold
            transition focus:outline-none focus-visible:ring-2 focus-visible:ring-brand-500/50
            focus-visible:ring-offset-2 disabled:opacity-60;
    }

    .btn-admin-primary {
        @apply bg-brand-600 text-white shadow-sm hover:bg-brand-700 active:scale-[.99];
    }

    .btn-admin-light {
        @apply border border-slate-200 bg-white text-slate-700 hover:border-slate-300 hover:bg-slate-50;
    }

    .btn-admin-danger {
        @apply border border-red-200 bg-white text-red-600 hover:bg-red-50;
    }

    .badge {
        @apply inline-flex items-center gap-1 rounded-full px-2.5 py-1 text-xs font-semibold;
    }

    .badge-green {
        @apply bg-emerald-50 text-emerald-700;
    }

    .badge-slate {
        @apply bg-slate-100 text-slate-600;
    }

    .badge-amber {
        @apply bg-amber-50 text-amber-700;
    }
}

@utility text-balance-x {
    text-wrap: balance;
}

@layer utilities {
    .bg-grid {
        background-image:
            linear-gradient(to right, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
            linear-gradient(to bottom, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
        background-size: 42px 42px;
    }

    .text-shadow-hero {
        text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
    }

    .hide-scrollbar::-webkit-scrollbar {
        display: none;
    }

    .hide-scrollbar {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
}