@import "tailwindcss";
@import "./styles/theme.css";
@import "./styles/components.css";
@import "./styles/animations.css";

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

@theme inline {
  --font-display: var(--font-oswald);
  --font-sans: var(--font-inter);
  --color-gold: #c9a96e;
  --color-gold-light: #d4b87a;
  --color-gold-dark: #a08050;
}

/* ===== Base ===== */

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

/* ===== Selection ===== */

::selection {
  background-color: rgba(201, 169, 110, 0.3);
  color: inherit;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== Focus ===== */

:focus-visible {
  @apply outline-2 outline-offset-2 outline-gold;
}

/* ===== Scrollbar hide utility ===== */

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

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

/* ===== Admin dark scrollbar ===== */

.admin-scrollbar {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.admin-scrollbar::-webkit-scrollbar {
  width: 6px;
}

.admin-scrollbar::-webkit-scrollbar-track {
  background: transparent;
}

.admin-scrollbar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}

.admin-scrollbar::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}
