/* ===========================================================================
   Guild — WoW-Inspired Dark Theme
   =========================================================================== */

/*
 * We extend DaisyUI's built-in "dark" theme with WoW-inspired overrides.
 * The HTML uses data-theme="dark" and we override specific colors here.
 */
[data-theme="dark"] {
  --p: 45 100% 51%;          /* Primary: WoW gold */
  --pf: 45 100% 41%;
  --pc: 220 20% 10%;
  --a: 0 70% 50%;            /* Accent: Horde red */
  --af: 0 70% 40%;
}

/* WoW class colors (TBC Classic: 9 classes) */
.class-warrior { color: #C69B6D; }
.class-paladin { color: #F48CBA; }
.class-hunter { color: #AAD372; }
.class-rogue { color: #FFF468; }
.class-priest { color: #FFFFFF; }
.class-shaman { color: #0070DD; }
.class-mage { color: #3FC7EB; }
.class-warlock { color: #8788EE; }
.class-druid { color: #FF7C0A; }

/* WoW item quality colors */
.quality-poor { color: #9D9D9D; }
.quality-common { color: #FFFFFF; }
.quality-uncommon { color: #1EFF00; }
.quality-rare { color: #0070DD; }
.quality-epic { color: #A335EE; }
.quality-legendary { color: #FF8000; }
.quality-artifact { color: #E6CC80; }

/* Disable DaisyUI button-pop and other component animations */
*, *::before, *::after {
  animation-duration: 0s !important;
  transition-duration: 0s !important;
}

/* Disable htmx settle/swap transition animations */
.htmx-settling,
.htmx-swapping,
.htmx-added {
  transition: none !important;
  opacity: 1 !important;
}

/* Prevent confirm modal from flashing during htmx page swaps */
dialog#confirm-modal:not([open]) {
  display: none !important;
}

/* HTMX loading indicators */
.htmx-indicator {
  display: none;
}
.htmx-request .htmx-indicator,
.htmx-request.htmx-indicator {
  display: inline-block;
}

/* Fix DaisyUI select text vertical alignment */
.select {
  min-height: 3rem;
  height: 3rem;
  line-height: 3rem !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* Item tooltip: hidden by default, shown on parent hover via CSS */
[data-itemtip] {
  display: none !important;
}
.item-tip-wrap:hover > [data-itemtip] {
  display: block !important;
}

/* Hide UTC timestamps until JS formats them; show a skeleton bar */
[data-utc]:not(.utc-ready) {
  color: transparent !important;
  background: oklch(0.25 0 0);
  border-radius: 0.25rem;
  display: inline-block;
  min-width: 5em;
  min-height: 1em;
}
[data-utc].utc-ready {
  color: inherit;
  background: none;
}
