@import 'tailwindcss';
@import './style/core.scss';

@plugin "@tailwindcss/typography";
@plugin "tailwindcss-animate";

/*
  The default border color has changed to `currentColor` in Tailwind CSS v4,
  so we've added these compatibility styles to make sure everything still
  looks the same as it did with Tailwind CSS v3.

  If we ever want to remove these styles, we need to add an explicit border
  color utility to any element that depends on these defaults.
*/
@layer base {
  *,
  ::after,
  ::before,
  ::backdrop,
  ::file-selector-button {
    border-color: var(--color-gray-200, currentColor);
  }
}

@utility container {
  margin-inline: auto;
  padding-inline: 15px;
  max-width: 76.125rem;
}

:root {
  --background: hsl(0 0% 100%);
  --foreground: hsl(222.2 84% 4.9%);

  --card: hwb(240 96% 4%);
  --card-foreground: hsl(222.2 84% 4.9%);

  --popover: hsl(0 0% 100%);
  --popover-foreground: hsl(222.2 84% 4.9%);

  --primary-foreground: hsl(210 40% 98%);

  --secondary-foreground: hsl(222.2 47.4% 11.2%);

  --primary: #007a4b;
  --secondary: #222222;
  --black-eel: #434343;
  --white-lilac: #f7f6fa;
  --zucchini: #034221;
  --lemon-grass: #999999;

  --border: #e6e6e6;
  --input: #565656;
  --color-placeholder: #43434380;

  /* spacing */
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: clamp(1.5rem, 1.19vw + 0.929rem, 2rem);
  --spacing-xl: clamp(2rem, 2.381vw + 0.857rem, 3rem);
  --spacing-xxl: clamp(3rem, 5.952vw + 0.143rem, 5.5rem);
  --spacing-xxxl: clamp(5.5rem, 4.762vw + 3.214rem, 7.5rem);

  --border: hsl(240 6% 90%);
  --input: hsl(214.3 31.8% 91.4%);
  --ring: hsl(222.2 84% 4.9%);

  --radius: hsl(0.2rem);

  --success: hsl(196 52% 74%);
  --warning: hsl(34 89% 85%);
  --error: hsl(10, 93%, 70%);
}

@theme inline {
  --font-nunito: var(--font-nunito), sans-serif;

  --color-primary: var(--primary);
  --color-black-eel: var(--black-eel);
  --color-white-lilac: var(--white-lilac);
  --color-zucchini: var(--zucchini);
  --color-lemon-grass: var(--lemon-grass);

  --border: var(--border);
  --input: var(--input);
  --color-placeholder: var(--color-placeholder);
  --color-border: var(--border);

  /* --spacing-sm: var(--spacing-sm);
  --spacing-md: var(--spacing-md);
  --spacing-lg: var(--spacing-lg);
  --spacing-xl: var(--spacing-xl);
  --spacing-xxl: var(--spacing-xxl);
  --spacing-xxxl: var(--spacing-xxxl); */

  --container-sm: 816px;
  --container-md: 948px;
  --container-lg: 1200px;
  --container-xl: 1440px;

  --shadow-default: rgba(149, 157, 165, 0.2) 0px 8px 8px;
  --shadow-md: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;

  --color-input: var(--input);
  --color-ring: var(--ring);
  --color-radius: var(--radius);
  --color-success: var(--success);
  --color-warning: var(--warning);
  --color-error: var(--error);
  --shadow-xs:  0px 4px 50px 0px #00000014;
}

@layer base {
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    font-size: auto;
    font-weight: auto;
    font-weight: 700;
    letter-spacing: 0px;
  }
}

html {
  opacity: 0;
  @apply font-nunito;
}

.container-lg {
  max-width: var(--container-lg);
}

html[data-theme='dark'],
html[data-theme='light'] {
  opacity: initial;
}

a,
input,
button {
  @apply focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-neutral-400 focus-visible:ring-offset-2 focus-visible:ring-offset-neutral-50 dark:focus-visible:ring-neutral-600 dark:focus-visible:ring-offset-neutral-900;
}

.overflow-auto {
  &::-webkit-scrollbar {
    width: 8px;
  }

  &::-webkit-scrollbar-track {
    background-color: #f2f2f2;
  }

  &::-webkit-scrollbar-thumb {
    background-color: var(--color-primary);
    border-radius: 6px;
  }
}
