/* Gaming Casino Design System - New Zealand Social Casino */

:root {
  /* Dark gaming theme with vibrant accents */
  --background: 222 22% 8%;
  --foreground: 45 100% 95%;

  /* Card system with gaming aesthetics */
  --card: 222 22% 12%;
  --card-foreground: 45 100% 95%;

  /* Popover styling */
  --popover: 222 22% 12%;
  --popover-foreground: 45 100% 95%;

  /* Primary - Golden casino accent */
  --primary: 45 95% 58%;
  --primary-foreground: 222 22% 8%;

  /* Secondary - Deep red casino color */
  --secondary: 0 80% 45%;
  --secondary-foreground: 45 100% 95%;

  /* Muted elements */
  --muted: 222 22% 18%;
  --muted-foreground: 45 20% 70%;

  /* Accent - Bright casino red */
  --accent: 0 85% 55%;
  --accent-foreground: 45 100% 95%;

  /* Success - Green for wins */
  --success: 120 60% 50%;
  --success-foreground: 45 100% 95%;

  /* Warning - Orange for alerts */
  --warning: 35 95% 60%;
  --warning-foreground: 222 22% 8%;

  /* Destructive states */
  --destructive: 0 84% 60%;
  --destructive-foreground: 45 100% 95%;

  /* UI elements */
  --border: 222 22% 20%;
  --input: 222 22% 18%;
  --ring: 45 95% 58%;

  --radius: 0.75rem;

  /* Gaming gradients */
  --gradient-primary: linear-gradient(135deg, hsl(45 95% 58%), hsl(35 95% 60%));
  --gradient-secondary: linear-gradient(135deg, hsl(0 80% 45%), hsl(0 85% 55%));
  --gradient-dark: linear-gradient(135deg, hsl(222 22% 8%), hsl(222 22% 12%));
  --gradient-card: linear-gradient(135deg, hsl(222 22% 12%), hsl(222 22% 16%));

  /* Gaming effects */
  --glow-primary: 0 0 30px hsl(45 95% 58% / 0.3);
  --glow-secondary: 0 0 30px hsl(0 85% 55% / 0.3);
  --shadow-gaming: 0 10px 30px -5px hsl(222 22% 4% / 0.5);

  /* Animations */
  --transition-gaming: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

* {
  border-color: hsl(var(--border));
}

body {
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
  margin: 0;
  padding: 0;
}

/* Gaming animations and effects */
.gaming-glow {
  box-shadow: var(--glow-primary);
  transition: var(--transition-gaming);
}

.gaming-glow:hover {
  box-shadow: var(--glow-primary), var(--shadow-gaming);
  transform: translateY(-2px);
}

.gaming-card {
  background: var(--gradient-card);
  border: 1px solid hsl(var(--border));
  transition: var(--transition-gaming);
}

.gaming-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-gaming);
  border-color: hsl(var(--primary) / 0.5);
}

.gaming-button {
  background: var(--gradient-primary);
  transition: var(--transition-bounce);
  color: hsl(var(--primary-foreground));
  border: none;
}

.gaming-button:hover {
  transform: scale(1.05);
  box-shadow: var(--glow-primary);
}

.slide-up {
  animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Image placeholder styles */
.image-placeholder {
  background: hsl(var(--muted));
  border: 1px dashed hsl(var(--border));
  transition: all 0.2s ease;
}

.image-placeholder:hover {
  background: hsl(var(--muted) / 0.8);
  border-color: hsl(var(--primary) / 0.3);
}

/* Tailwind utility classes */
.container {
  /* width: 100%; */
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container {
    max-width: 640px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 768px;
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: 1024px;
  }
}

@media (min-width: 1280px) {
  .container {
    max-width: 1280px;
  }
}

@media (min-width: 1536px) {
  .container {
    max-width: 1536px;
  }
}

/* Essential Tailwind utilities */
.fixed {
  position: fixed;
}
.relative {
  position: relative;
}
.absolute {
  position: absolute;
}
.inset-0 {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}
.top-0 {
  top: 0;
}
.right-4 {
  right: 1rem;
}
.bottom-4 {
  bottom: 1rem;
}
.left-4 {
  left: 1rem;
}
.z-50 {
  z-index: 50;
}
.z-[100] {
  z-index: 100;
}

.flex {
  display: flex;
}
.inline-flex {
  display: inline-flex;
}
.grid {
  display: grid;
}
.hidden {
  display: none;
}

.h-4 {
  height: 1rem;
}
.h-6 {
  height: 1.5rem;
}
.h-9 {
  height: 2.25rem;
}
.h-10 {
  height: 2.5rem;
}
.h-12 {
  height: 3rem;
}
.h-20 {
  height: 5rem;
}
.h-24 {
  height: 6rem;
}
.h-full {
  height: 100%;
}
.h-px {
  height: 1px;
}

.w-4 {
  width: 1rem;
}
.w-6 {
  width: 1.5rem;
}
.w-10 {
  width: 2.5rem;
}
.w-12 {
  width: 11rem;
}
.w-20 {
  width: 5rem;
}
.w-24 {
  width: 6rem;
}
.w-full {
  width: 100%;
}

.min-h-screen {
  min-height: 100vh;
}
.min-w-[300px] {
  min-width: 300px;
}

.flex-1 {
  flex: 1 1 0%;
}
.flex-col {
  flex-direction: column;
}
.items-center {
  align-items: center;
}
.items-start {
  align-items: flex-start;
}
.justify-center {
  justify-content: center;
}
.justify-between {
  justify-content: space-between;
}

/* .grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
} */
@media (min-width: 768px) {
  .md\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .md\:grid-cols-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .md\:text-7xl {
    font-size: 4.5rem;
    line-height: 1;
  }
}

@media (min-width: 640px) {
  .sm\:flex-row {
    flex-direction: row;
  }
  .sm\:items-center {
    align-items: center;
  }
  .sm\:max-w-md {
    max-width: 28rem;
  }
}

.gap-2 {
  gap: 0.5rem;
}
.gap-3 {
  gap: 0.75rem;
}
.gap-4 {
  gap: 1rem;
}
.gap-6 {
  gap: 1.5rem;
}
.gap-8 {
  gap: 2rem;
}

.space-x-2 > * + * {
  margin-left: 0.5rem;
}
.space-x-3 > * + * {
  margin-left: 0.75rem;
}
.space-y-1\.5 > * + * {
  margin-top: 0.375rem;
}
.space-y-2 > * + * {
  margin-top: 0.5rem;
}
.space-y-4 > * + * {
  margin-top: 1rem;
}
.space-y-6 > * + * {
  margin-top: 1.5rem;
}

.rounded {
  border-radius: 0.25rem;
}
.rounded-lg {
  border-radius: 0.5rem;
}
.rounded-md {
  border-radius: 0.375rem;
}
.rounded-full {
  border-radius: 9999px;
}

.border {
  border-width: 1px;
}
.border-t {
  border-top-width: 1px;
}
.border-b {
  border-bottom-width: 1px;
}
.border-l-4 {
  border-left-width: 4px;
}
.border-2 {
  border-width: 2px;
}
.border-3 {
  border-width: 3px;
}
.border-4 {
  border-width: 4px;
}

.bg-background {
  background-color: hsl(var(--background));
}
.bg-card {
  background-color: hsl(var(--card));
}
.bg-muted {
  background-color: hsl(var(--muted));
}
.bg-primary {
  background-color: hsl(var(--primary));
}
.bg-white\/10 {
  background-color: rgb(255 255 255 / 0.1);
}
.bg-black\/80 {
  background-color: rgb(0 0 0 / 0.8);
}
.bg-muted\/50 {
  background-color: #000000;
}
.bg-success\/10 {
  background-color: hsl(var(--success) / 0.1);
}
.bg-destructive\/10 {
  background-color: hsl(var(--destructive) / 0.1);
}
.bg-primary\/10 {
  background-color: hsl(var(--primary) / 0.1);
}
.bg-primary\/30 {
  background-color: hsl(var(--primary) / 0.3);
}
.bg-warning\/20 {
  background-color: hsl(var(--warning) / 0.2);
}
.bg-destructive\/20 {
  background-color: hsl(var(--destructive) / 0.2);
}
.bg-background\/95 {
  background-color: hsl(var(--background) / 0.95);
}
.bg-slate-900 {
  background-color: rgb(15 23 42);
}

.bg-gradient-to-r {
  background-image: linear-gradient(to right, var(--tw-gradient-stops));
}
.from-primary {
  --tw-gradient-from: hsl(var(--primary));
  --tw-gradient-to: hsl(var(--primary) / 0);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.to-warning {
  --tw-gradient-to: hsl(var(--warning));
}
.from-transparent {
  --tw-gradient-from: transparent;
  --tw-gradient-to: rgb(0 0 0 / 0);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.via-border {
  --tw-gradient-to: rgb(0 0 0 / 0);
  --tw-gradient-stops: var(--tw-gradient-from), hsl(var(--border)),
    var(--tw-gradient-to);
}
.to-transparent {
  --tw-gradient-to: transparent;
}

.bg-clip-text {
  -webkit-background-clip: text;
  background-clip: text;
}

.p-4 {
  padding: 1rem;
}
.p-6 {
  padding: 1.5rem;
}
.px-3 {
  /* padding-left: 0.75rem; */
  padding-right: 0.75rem;
}
.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}
.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.py-12 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}
.py-16 {
  padding-top: 4rem;
  padding-bottom: 4rem;
}
.pt-0 {
  padding-top: 0;
}
.pt-4 {
  padding-top: 1rem;
}
.pt-8 {
  padding-top: 2rem;
}
.pt-24 {
  padding-top: 6rem;
}
.pb-4 {
  padding-bottom: 1rem;
}
.pb-16 {
  padding-bottom: 4rem;
}

.m-0 {
  margin: 0;
}
.mx-auto {
  margin-left: auto;
  margin-right: auto;
}
.mb-2 {
  margin-bottom: 0.5rem;
}
.mb-4 {
  margin-bottom: 1rem;
}
.mb-6 {
  margin-bottom: 1.5rem;
}
.mb-8 {
  margin-bottom: 2rem;
}
.mb-12 {
  margin-bottom: 3rem;
}
.ml-2 {
  margin-left: 0.5rem;
}
.mt-1 {
  margin-top: 0.25rem;
}

.text-xs {
  font-size: 0.75rem;
  line-height: 1rem;
}
.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}
.text-base {
  font-size: 1rem;
  line-height: 1.5rem;
}
.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}
.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}
.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}
.text-4xl {
  font-size: 4.25rem;
  line-height: 2.5rem;
}
.text-5xl {
  font-size: 3rem;
  line-height: 1;
}
.text-6xl {
  font-size: 3.75rem;
  line-height: 1;
}

.font-medium {
  font-weight: 500;
}
.font-semibold {
  font-weight: 600;
}
.font-bold {
  font-weight: 700;
}

.leading-none {
  line-height: 1;
}
.leading-relaxed {
  line-height: 1.625;
}

.tracking-tight {
  letter-spacing: -0.025em;
}

.text-foreground {
  color: hsl(var(--foreground));
}
.text-primary {
  color: hsl(var(--primary));
}
.text-muted-foreground {
  color: hsl(var(--muted-foreground));
}
.text-primary-foreground {
  color: hsl(var(--primary-foreground));
}
.text-white {
  color: rgb(255 255 255);
}
.text-white\/90 {
  color: rgb(255 255 255 / 0.9);
}
.text-white\/20 {
  color: rgb(255 255 255 / 0.2);
}
.text-yellow-400 {
  color: rgb(250 204 21);
}
.text-transparent {
  color: transparent;
}
.text-destructive {
  color: hsl(var(--destructive));
}

.text-center {
  text-align: center;
}

.border-border {
  border-color: hsl(var(--border));
}
.border-input {
  border-color: hsl(var(--input));
}
.border-white\/20 {
  border-color: rgb(255 255 255 / 0.2);
}
.border-primary\/40 {
  border-color: hsl(var(--primary) / 0.4);
}
.border-primary\/50 {
  border-color: hsl(var(--primary) / 0.5);
}
.border-destructive\/50 {
  border-color: hsl(var(--destructive) / 0.5);
}
.border-warning\/50 {
  border-color: hsl(var(--warning) / 0.5);
}
.border-l-success {
  border-left-color: hsl(var(--success));
}
.border-l-destructive {
  border-left-color: hsl(var(--destructive));
}
.border-l-primary {
  border-left-color: hsl(var(--primary));
}

.shadow-sm {
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}
.shadow-lg {
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1),
    0 4px 6px -2px rgb(0 0 0 / 0.05);
}
.shadow-2xl {
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

.backdrop-blur-sm {
  backdrop-filter: blur(4px);
}

.transition-colors {
  transition-property: color, background-color, border-color,
    text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.transition-transform {
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.hover\:bg-accent:hover {
  background-color: hsl(var(--accent));
}
.hover\:bg-muted:hover {
  background-color: hsl(var(--muted));
}
.hover\:bg-primary\/90:hover {
  background-color: hsl(var(--primary) / 0.9);
}
.hover\:bg-destructive\/20:hover {
  background-color: hsl(var(--destructive) / 0.2);
}
.hover\:text-accent-foreground:hover {
  color: hsl(var(--accent-foreground));
}
.hover\:text-foreground:hover {
  color: hsl(var(--foreground));
}
.hover\:text-destructive:hover {
  color: hsl(var(--destructive));
}
.hover\:border-destructive:hover {
  border-color: hsl(var(--destructive));
}
.hover\:scale-110:hover {
  transform: scale(1.1);
}

.focus-visible\:outline-none:focus-visible {
  outline: 2px solid transparent;
  outline-offset: 2px;
}
.focus-visible\:ring-2:focus-visible {
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0
    var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0
    calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow),
    var(--tw-shadow, 0 0 #0000);
}
.focus-visible\:ring-ring:focus-visible {
  --tw-ring-color: hsl(var(--ring));
}
.focus-visible\:ring-offset-2:focus-visible {
  --tw-ring-offset-width: 2px;
}

.disabled\:pointer-events-none:disabled {
  pointer-events: none;
}
.disabled\:opacity-50:disabled {
  opacity: 0.5;
}
.disabled\:cursor-not-allowed:disabled {
  cursor: not-allowed;
}

.group:hover .group-hover\:scale-110 {
  transform: scale(1.1);
}

.peer-disabled\:cursor-not-allowed:disabled ~ * {
  cursor: not-allowed;
}
.peer-disabled\:opacity-70:disabled ~ * {
  opacity: 0.7;
}

.whitespace-nowrap {
  white-space: nowrap;
}
.overflow-hidden {
  overflow: hidden;
}
.object-contain {
  object-fit: contain;
}

.max-w-md {
  max-width: 28rem;
}
.max-w-2xl {
  max-width: 42rem;
}
.max-w-3xl {
  max-width: 48rem;
}
.max-w-4xl {
  max-width: 56rem;
}
.max-w-6xl {
  max-width: 72rem;
}

.shrink-0 {
  flex-shrink: 0;
}

.cursor-not-allowed {
  cursor: not-allowed;
}
.pointer-events-none {
  pointer-events: none;
}

.file\:border-0::file-selector-button {
  border-width: 0px;
}
.file\:bg-transparent::file-selector-button {
  background-color: transparent;
}
.file\:text-sm::file-selector-button {
  font-size: 0.875rem;
  line-height: 1.25rem;
}
.file\:font-medium::file-selector-button {
  font-weight: 500;
}

.placeholder\:text-muted-foreground::placeholder {
  color: hsl(var(--muted-foreground));
}

.ring-offset-background {
  --tw-ring-offset-color: hsl(var(--background));
}
.ring-offset-2 {
  --tw-ring-offset-width: 2px;
}
