/* See the Tailwind configuration guide for advanced usage
   https://tailwindcss.com/docs/configuration */

@import "tailwindcss" source(none);
@import "../node_modules/maplibre-gl/dist/maplibre-gl.css";
@import "phoenix-colocated/who_need_help/colocated.css";
@source "../css";
@source "../js";
@source "../../lib/who_need_help_web";
/* Required for Tailwind to automatically pick up changes in colocated CSS files in dev */
@source "../../_build/dev/phoenix-colocated/who_need_help/*/";

/* A Tailwind plugin that makes "hero-#{ICON}" classes available.
   The heroicons installation itself is managed by your mix.exs */
@plugin "../vendor/heroicons";

/* daisyUI Tailwind Plugin. */
@plugin "daisyui/packages/bundle/daisyui" {
  themes: false;
}

/* daisyUI theme plugin.
  We ship with two themes, a light one inspired on Phoenix colors and a dark one inspired
  on Elixir colors. Build your own at: https://daisyui.com/theme-generator/ */
@plugin "daisyui/packages/bundle/daisyui-theme" {
  name: "dark";
  default: false;
  prefersdark: true;
  color-scheme: "dark";
  --color-base-100: oklch(30.33% 0.016 252.42);
  --color-base-200: oklch(25.26% 0.014 253.1);
  --color-base-300: oklch(20.15% 0.012 254.09);
  --color-base-content: #ffffff;
  --color-primary: #a5b4fc;
  --color-primary-content: #18162a;
  --color-secondary: #a5b4fc;
  --color-secondary-content: #18162a;
  --color-accent: oklch(60% 0.25 292.717);
  --color-accent-content: oklch(96% 0.016 293.756);
  --color-neutral: oklch(37% 0.044 257.287);
  --color-neutral-content: oklch(98% 0.003 247.858);
  --color-info: oklch(58% 0.158 241.966);
  --color-info-content: oklch(97% 0.013 236.62);
  --color-success: oklch(75% 0.118 184.704);
  --color-success-content: oklch(20% 0.014 180.72);
  --color-warning: #f59e0b;
  --color-warning-content: #241400;
  --color-error: oklch(58% 0.253 17.585);
  --color-error-content: oklch(96% 0.015 12.422);
  --radius-selector: 0.25rem;
  --radius-field: 0.25rem;
  --radius-box: 0.5rem;
  --size-selector: 0.21875rem;
  --size-field: 0.21875rem;
  --border: 1.5px;
  --depth: 1;
  --noise: 0;
}

@plugin "daisyui/packages/bundle/daisyui-theme" {
  name: "light";
  default: true;
  prefersdark: false;
  color-scheme: "light";
  --color-base-100: oklch(98% 0 0);
  --color-base-200: oklch(96% 0.001 286.375);
  --color-base-300: oklch(92% 0.004 286.32);
  --color-base-content: oklch(21% 0.006 285.885);
  --color-primary: #9a3412;
  --color-primary-content: #ffffff;
  --color-secondary: oklch(55% 0.027 264.364);
  --color-secondary-content: oklch(98% 0.002 247.839);
  --color-accent: oklch(0% 0 0);
  --color-accent-content: oklch(100% 0 0);
  --color-neutral: oklch(44% 0.017 285.786);
  --color-neutral-content: oklch(98% 0 0);
  --color-info: oklch(62% 0.214 259.815);
  --color-info-content: oklch(97% 0.014 254.604);
  --color-success: oklch(45% 0.12 182.503);
  --color-success-content: oklch(98% 0.014 180.72);
  --color-warning: #b45309;
  --color-warning-content: #fffaf0;
  --color-error: oklch(58% 0.253 17.585);
  --color-error-content: oklch(96% 0.015 12.422);
  --radius-selector: 0.25rem;
  --radius-field: 0.25rem;
  --radius-box: 0.5rem;
  --size-selector: 0.21875rem;
  --size-field: 0.21875rem;
  --border: 1.5px;
  --depth: 1;
  --noise: 0;
}

/* Add variants based on LiveView classes */
@custom-variant phx-click-loading (.phx-click-loading&, .phx-click-loading &);
@custom-variant phx-submit-loading (.phx-submit-loading&, .phx-submit-loading &);
@custom-variant phx-change-loading (.phx-change-loading&, .phx-change-loading &);

/* Use the data attribute for dark mode  */
@custom-variant dark (&:where([data-theme=dark], [data-theme=dark] *));

/* Make LiveView wrapper divs transparent for layout */
[data-phx-session], [data-phx-teleported-src] { display: contents }

/* This file is for your main application CSS */

.skip-link {
  position: fixed;
  z-index: 100;
  inset-block-start: 0.5rem;
  inset-inline-start: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  color: var(--color-primary-content);
  background: var(--color-primary);
  transform: translateY(-150%);
  transition: transform 120ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

[data-theme="dark"] .menu a,
[data-theme="dark"] .btn-ghost,
[data-theme="dark"] .btn-outline {
  color: var(--color-base-content) !important;
}

[data-theme="dark"] .btn-ghost,
[data-theme="dark"] .btn-outline {
  background-color: var(--color-base-300);
}

[data-theme="dark"] .btn-soft.btn-primary {
  color: var(--color-primary-content);
  background-color: var(--color-primary);
}

.locale-active {
  color: var(--color-neutral-content) !important;
  background-color: var(--color-neutral) !important;
}

.aid-map {
  min-height: 22rem;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid color-mix(in oklab, currentColor 12%, transparent);
}

.help-card {
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.help-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 48px rgb(23 37 31 / 0.10);
}
