@import "tailwindcss";
@config "../tailwind.config.mjs";

/* Alpine.js x-cloak directive - hide elements until Alpine.js is ready */
[x-cloak] {
  display: none !important;
}
.layout-builder__region {
  outline: 2px dashed #2f91da;
  position: relative !important;
}

@theme {
  --font-archivo: "Archivo", sans-serif;
  --font-avenir: "Avenir", sans-serif;
  --font-inter: "Inter", sans-serif;
  --font-montserrat: "Montserrat", sans-serif;
  --font-poppins: "Poppins", sans-serif;

  /* Default body and heading fonts */
  --font-body: var(--font-inter);
  --font-heading: var(--font-archivo);
}

@theme {
  /* Colors */
  --color-primary: #3b71ca;
  --color-secondary: #9fa6b2;
  --color-tertiary: #f9fafb;
  --color-body: #000000;
  --color-body-bg: #ffffff;
  --color-h1: #1f2937;
  --color-h2: #1f2937;
  --color-h3: #1f2937;
  --color-h4: #1f2937;
  --color-success: #14a44d;
  --color-warning: #e4a11b;
  --color-error: #dc4c64;

  /* Grayscale */
  --color-white: #ffffff;
  --color-gray-50: #F8F8F8;
  --color-gray-100: #F8F8F8;
  --color-gray-200: #EBEBEB;
  --color-gray-300: #EBEBEB;
  --color-gray-400: #DADADA;
  --color-gray-500: #C6C6C6;
  --color-gray-600: #ADADAD;
  --color-gray-700: #828282;
  --color-gray-800: #595959;
  --color-gray-900: #303030;
  --color-black: #000000;

  /* Typography */
  --font-sans: ui-sans-serif, system-ui, sans-serif;
  --font-serif: ui-serif, Georgia, serif;
  --font-mono: ui-monospace, SFMono-Regular, monospace;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;


  --line-height-tight: 1.1;
  --line-height-normal: 1.5;
  --line-height-loose: 1.75;

  /* Spacing */
  --spacing-0: 0px;
  --spacing-1: 0.25rem;
  --spacing-2: 0.5rem;
  --spacing-3: 0.75rem;
  --spacing-4: 1rem;
  --spacing-5: 1.25rem;
  --spacing-6: 1.5rem;
  --spacing-8: 2rem;
  --spacing-10: 2.5rem;
  --spacing-12: 3rem;
  --spacing-16: 4rem;
  --spacing-20: 5rem;
  --spacing-24: 6rem;
  --spacing-32: 8rem;
  --spacing-40: 10rem;
  --spacing-48: 12rem;
  --spacing-56: 14rem;
  --spacing-64: 16rem;

  /* Border Radius & Border Width - All set to 0 for sharp edges */
  --radius-none: 0px;
  --radius-sm: 0.125rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-2xl: 1rem;
  --radius-3xl: 1.5rem;
  --radius-full: 9999px;

  --border-width-0: 0px;
  --border-width-1: 1px;
  --border-width-2: 2px;
  --border-width-4: 4px;
  --border-width-8: 8px;

  /* Shadows & Opacity */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
  --shadow-2xl: 0 25px 50px rgba(0, 0, 0, 0.25);
  --shadow-none: none;

  --opacity-0: 0;
  --opacity-10: 0.1;
  --opacity-20: 0.2;
  --opacity-40: 0.4;
  --opacity-60: 0.6;
  --opacity-80: 0.8;
  --opacity-100: 1;

  /* Z-Index */
  --z-index-0: 0;
  --z-index-10: 10;
  --z-index-20: 20;
  --z-index-30: 30;
  --z-index-40: 40;
  --z-index-50: 50;
  --z-index-auto: auto;

  /* Breakpoints */
  --screen-xs: 480px;
  --screen-sm: 640px;
  --screen-md: 768px;
  --screen-lg: 1024px;
  --screen-xl: 1280px;
  --screen-2xl: 1536px;

  /* Transitions & Animations */
  --transition-fast: 150ms ease-in-out;
  --transition-normal: 300ms ease-in-out;
  --transition-slow: 500ms ease-in-out;

  --animation-spin: spin 1s linear infinite;
  --animation-ping: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
  --animation-pulse: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  --animation-bounce: bounce 1s infinite;


  --container-px: clamp(20px, calc(20px + (60 - 20) * ((100vw - 390px) / (1536 - 390))), 60px);

}

header .search-icon form {
  @apply flex flex-row justify-around w-[300px] sm:w-[400px] items-center bg-white shadow px-4 py-2;

  input[type="search"] {
    @apply sm:w-[250px];
  }

  input[type="submit"] {
    @apply bg-primary text-white cursor-pointer sm:w-[100px];
  }
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
}

body {
  font-family: var(--font-body);
}

.container-px {
  padding-left: var(--container-px);
  padding-right: var(--container-px);
}