/* Gaming Theme - Minecraft/PUBG earthy vibes */

:root[data-theme="gaming"] {
  /* Background */
  --bg-primary: 34 46 26;       /* #222E1A Deep Army Green */
  --bg-secondary: 44 56 36;     /* Slightly lighter */

  /* Text */
  --text-primary: 189 189 189;  /* #BDBDBD Light Gray */
  --text-secondary: 150 150 150;

  /* Border */
  --border: 76 175 80;          /* #4CAF50 Classic Grass Green */

  /* Accent */
  --accent-from: 244 226 66;    /* #F4E242 Bright Golden Yellow */
  --accent-to: 76 175 80;       /* #4CAF50 Grass Green */
  --accent-red: 229 57 53;      /* #E53935 Red Damage */
  --accent-stone: 189 189 189;  /* #BDBDBD Light Gray */
}

[data-theme="gaming"] {
  background-color: rgb(34 46 26);
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,.1) 2px, rgba(0,0,0,.1) 4px),
    repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(0,0,0,.1) 2px, rgba(0,0,0,.1) 4px);
  color: rgb(189 189 189);
  font-family: 'Courier New', monospace;
}

[data-theme="gaming"] header {
  background: linear-gradient(90deg, rgb(34 46 26) 0%, rgb(44 56 36) 100%);
  border-bottom: 3px solid rgb(76 175 80);
  box-shadow: 0 0 20px rgba(76, 175, 80, 0.3);
}

[data-theme="gaming"] header a,
[data-theme="gaming"] header .text-gray-700 {
  color: rgb(244 226 66) !important;
  font-weight: 700;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.5);
  font-family: 'Courier New', monospace;
}

[data-theme="gaming"] .text-2xl.font-bold a {
  color: rgb(244 226 66) !important;
  text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.6);
  letter-spacing: 2px;
}

[data-theme="gaming"] select {
  background: rgb(44 56 36);
  border: 2px solid rgb(76 175 80);
  color: rgb(244 226 66);
  font-family: 'Courier New', monospace;
  font-weight: 600;
}

[data-theme="gaming"] select:hover {
  border-color: rgb(244 226 66);
  box-shadow: 0 0 10px rgba(244, 226, 66, 0.5);
}

[data-theme="gaming"] input {
  background: rgb(44 56 36);
  border: 3px solid rgb(76 175 80);
  color: rgb(189 189 189);
  font-family: 'Courier New', monospace;
  box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.3);
}

[data-theme="gaming"] input::placeholder {
  color: rgb(150 150 150);
}

[data-theme="gaming"] input:focus {
  border-color: rgb(244 226 66);
  box-shadow: 0 0 15px rgba(244, 226, 66, 0.5), inset 2px 2px 5px rgba(0, 0, 0, 0.3);
  outline: none;
}

[data-theme="gaming"] .generator-card,
[data-theme="gaming"] .rounded-lg.shadow-lg,
[data-theme="gaming"] .bg-white {
  background: rgb(44 56 36) !important;
  border: 3px solid rgb(76 175 80);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.4);
  border-radius: 4px;
}

[data-theme="gaming"] .bg-gray-50 {
  background: rgb(34 46 26) !important;
  border: 2px solid rgb(76 175 80);
  box-shadow: inset 1px 1px 3px rgba(0, 0, 0, 0.3);
}

[data-theme="gaming"] button,
[data-theme="gaming"] .text-blue-600 {
  color: rgb(244 226 66) !important;
  font-weight: 700;
  font-family: 'Courier New', monospace;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
}

[data-theme="gaming"] button:hover,
[data-theme="gaming"] .text-blue-600:hover {
  color: rgb(76 175 80) !important;
  text-shadow: 0 0 8px rgba(76, 175, 80, 0.8);
}

[data-theme="gaming"] h1 {
  color: rgb(244 226 66);
  text-shadow: 4px 4px 0 rgba(0, 0, 0, 0.6);
  font-family: 'Courier New', monospace;
  letter-spacing: 1px;
}

[data-theme="gaming"] .text-gray-500,
[data-theme="gaming"] .text-gray-600,
[data-theme="gaming"] .text-gray-700 {
  color: rgb(150 150 150) !important;
}

[data-theme="gaming"] .text-gray-900 {
  color: rgb(189 189 189) !important;
}

[data-theme="gaming"] footer {
  background: rgb(34 46 26);
  border-top: 3px solid rgb(76 175 80);
  box-shadow: 0 -2px 10px rgba(76, 175, 80, 0.2);
}

[data-theme="gaming"] footer,
[data-theme="gaming"] footer a,
[data-theme="gaming"] footer .text-gray-400 {
  color: rgb(189 189 189) !important;
}

/* Error/Clear state with red */
[data-theme="gaming"] .error,
[data-theme="gaming"] .danger {
  color: rgb(229 57 53) !important;
  text-shadow: 0 0 10px rgba(229, 57, 53, 0.8);
}

/* Success state with green */
[data-theme="gaming"] .copied,
[data-theme="gaming"] .success {
  color: rgb(76 175 80) !important;
  text-shadow: 0 0 10px rgba(76, 175, 80, 0.8);
  animation: loot-glow 0.5s ease;
}

@keyframes loot-glow {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
    transform: scale(1.1);
  }
}

/* Pixelated/blocky hover effect */
[data-theme="gaming"] .generator-card:hover {
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.5);
  transform: translate(-2px, -2px);
  transition: all 0.1s ease;
}

/* Stone/iron dividers */
[data-theme="gaming"] .border-gray-200,
[data-theme="gaming"] .border-gray-300 {
  border-color: rgb(189 189 189) !important;
}
