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

:root {
  --background: #f5f5f5;
  --foreground: #0b0b0b;
  --primary: #9300df;
  --primary-gradient: linear-gradient(90deg, #8000e0 0%, #f010f0 100%);
  --card: #ffffff;
  --card-border: rgba(0, 0, 0, 0.08);
  --muted: rgba(0, 0, 0, 0.6);
  --muted-strong: rgba(0, 0, 0, 0.75);
  --accent-rgb: 11 11 11;
  --accent-default-rgb: 11 11 11;
  --accent-foreground: #ffffff;
  --wallpaper-image: none;
  --font-body: "Enter", "Inter", "Segoe UI", system-ui, sans-serif;
  --font-heading: "elza", sans-serif;
}

@theme inline {
  --color-background: var(--background);
  --color-foreground: var(--foreground);
  --font-sans: var(--font-body);
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #0a0a0a;
    --foreground: #f2f2f2;
    --primary: #9300df;
    --primary-gradient: linear-gradient(90deg, #8000e0 0%, #f010f0 100%);
    --card: #0f0f0f;
    --card-border: rgba(255, 255, 255, 0.12);
    --muted: rgba(255, 255, 255, 0.7);
    --muted-strong: rgba(255, 255, 255, 0.85);
    --accent-rgb: 242 242 242;
    --accent-default-rgb: 242 242 242;
    --accent-foreground: #0b0b0b;
  }
}

:root.theme-light {
  --background: #f5f5f5;
  --foreground: #0b0b0b;
  --primary: #9300df;
  --primary-gradient: linear-gradient(90deg, #8000e0 0%, #f010f0 100%);
  --card: #ffffff;
  --card-border: rgba(0, 0, 0, 0.08);
  --muted: rgba(0, 0, 0, 0.6);
  --muted-strong: rgba(0, 0, 0, 0.75);
}

:root.theme-dark {
  --background: #0a0a0a;
  --foreground: #f2f2f2;
  --primary: #9300df;
  --primary-gradient: linear-gradient(90deg, #8000e0 0%, #f010f0 100%);
  --card: #0f0f0f;
  --card-border: rgba(255, 255, 255, 0.12);
  --muted: rgba(255, 255, 255, 0.7);
  --muted-strong: rgba(255, 255, 255, 0.85);
}

body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  position: relative;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: none;
  background-size: cover;
  background-position: center;
  opacity: 0;
  filter: saturate(0.75) contrast(0.9) brightness(0.95);
  pointer-events: none;
  z-index: -1;
  transition: opacity 0.8s ease;
}

body.show-wallpaper.wallpaper-ready::before {
  background-image: var(--wallpaper-image);
  opacity: 0.3;
}

.font-heading {
  font-family: var(--font-heading);
}

.accent-surface {
  background-color: rgb(var(--accent-rgb) / 0.65);
}

.accent-surface:hover {
  background-color: rgb(var(--accent-rgb));
}

.accent-surface-strong {
  background-color: rgb(var(--accent-rgb));
  color: var(--accent-foreground);
  border-color: transparent;
}

.btn-primary-gradient {
  background: var(--primary-gradient);
  color: #ffffff;
}

.btn-primary-gradient-border {
  background: var(--primary-gradient);
  padding: 3px;
  border-radius: 9999px;
}

.btn-primary-gradient-border > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: inherit;
  background: transparent;
}

.text-primary-gradient {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.btn-gradient-outline {
  position: relative;
  border-radius: 9999px;
}

.btn-gradient-outline::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 3px;
  border-radius: inherit;
  background: var(--primary-gradient);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.btn-gradient-outline > span {
  position: relative;
  z-index: 1;
}

@media (hover: none) {
  .show-on-touch {
    opacity: 1 !important;
  }
}
