/* Debug Page Styles */

#debug {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 1920px;
  height: 1080px;
  position: absolute;
  top: 0;
  left: 0;
  overflow-y: auto;
  background-image: url(/img/bg/debug.webp);
}

/* Disable all transitions in debug */
#debug * {
  transition: none !important;
}

#debug h1 {
  color: #3e2723;
  text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.3);
  -webkit-text-stroke: 0;
  margin-bottom: 20px;
}

.debug-main-inner {
  background: linear-gradient(135deg, rgba(222, 184, 135, 0.9) 0%, rgba(205, 164, 116, 0.9) 100%);
  border: 3px solid rgba(139, 90, 43, 0.9);
  border-radius: 13px;
  padding: 16px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.7);
  width: 1200px;
}

.hero-editor-card {
  background: linear-gradient(135deg, rgba(245, 222, 179, 0.98) 0%, rgba(222, 184, 135, 0.98) 100%);
  border: 3px solid rgba(139, 90, 43, 0.8);
  border-radius: 13px;
  padding: 16px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
  width: 340px;
}

.hero-editor-card h3 {
  color: #3e2723;
  text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.3);
  -webkit-text-stroke: 0;
  font-size: 1.3rem;
  margin: 0 0 12px 0;
}

.hero-editor-card .hero-pic {
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
}

.debug-stats-editor {
  background: linear-gradient(135deg, rgba(222, 184, 135, 0.6) 0%, rgba(205, 164, 116, 0.6) 100%);
  border: 2px solid rgba(139, 90, 43, 0.7);
  border-radius: 12px;
  padding: 12px;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.debug-stats-editor li {
  background: linear-gradient(135deg, rgba(245, 222, 179, 0.95) 0%, rgba(222, 184, 135, 0.95) 100%);
  border: 2px solid rgba(139, 90, 43, 0.6);
  border-radius: 8px;
  padding: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #3e2723;
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.debug-stats-editor li:hover {
  background: linear-gradient(135deg, rgba(255, 235, 205, 0.98) 0%, rgba(245, 222, 179, 0.98) 100%);
  border-color: rgba(139, 90, 43, 0.9);
}

.debug-stats-editor input {
  background: rgba(255, 245, 220, 0.95) !important;
  border: 2px solid rgba(139, 90, 43, 0.6) !important;
  color: #3e2723 !important;
  font-weight: 700;
  width: 60px;
  text-align: center;
  padding: 6px;
  font-size: 1rem;
  border-radius: 6px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.debug-stats-editor input:focus {
  border-color: rgba(139, 90, 43, 0.9) !important;
  outline: none;
  box-shadow: 0 0 8px rgba(139, 90, 43, 0.4), inset 0 2px 4px rgba(0, 0, 0, 0.1);
  background: rgba(255, 250, 235, 1) !important;
}

.debug-stat-label {
  font-size: 0.85rem;
  text-align: center;
  font-weight: 700;
}

.debug-stat-final {
  font-size: 0.8rem;
  opacity: 0.65;
  text-align: center;
  font-weight: 600;
  font-style: italic;
}

/* Debug Tabs (Merchant style) */
.debug-tab {
  background: linear-gradient(135deg, rgba(120, 90, 60, 0.85) 0%, rgba(90, 70, 50, 0.85) 100%);
  border: 2px solid rgba(139, 90, 43, 0.5);
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: bold;
  color: #c9b299;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.debug-tab:hover {
  background: linear-gradient(135deg, rgba(200, 170, 130, 0.75) 0%, rgba(170, 140, 100, 0.75) 100%);
  border-color: rgba(139, 90, 43, 0.6);
}

.debug-tab-active {
  background: linear-gradient(135deg, rgba(245, 222, 179, 0.98) 0%, rgba(222, 184, 135, 0.98) 100%);
  color: #3e2723;
  border: 3px solid rgba(139, 90, 43, 0.9);
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5), inset 0 2px 4px rgba(255, 255, 255, 0.3);
}

.debug-tab-active:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.6), inset 0 2px 4px rgba(255, 255, 255, 0.3);
}

/* Spawner Section Styles */
.spawner-section {
  background: linear-gradient(135deg, rgba(245, 222, 179, 0.98) 0%, rgba(222, 184, 135, 0.98) 100%);
  border: 3px solid rgba(139, 90, 43, 0.8);
  border-radius: 13px;
  padding: 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
  color: #3e2723;
}

.spawner-section h4 {
  color: #3e2723;
  text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.3);
  -webkit-text-stroke: 0;
  margin: 0 0 4px 0;
}

.spawner-section div {
  color: #3e2723;
}

.spawner-section span {
  color: #3e2723;
}

.spawner-section label {
  color: #3e2723;
}

.spawner-section select {
  background: rgba(245, 222, 179, 0.8) !important;
  border: 2px solid rgba(139, 90, 43, 0.5) !important;
  color: #3e2723 !important;
  font-weight: 600;
  padding: 4px;
  font-size: 0.9rem;
  border-radius: 4px;
  cursor: pointer;
}

.spawner-section select:focus {
  border-color: rgba(139, 90, 43, 0.9) !important;
  outline: none;
  box-shadow: 0 0 8px rgba(139, 90, 43, 0.3);
}

#debug .town-button {
  font-size: 14px;
  padding: 10px 16px;
  min-width: unset;
  background: linear-gradient(135deg, rgba(100, 150, 200, 0.9) 0%, rgba(70, 120, 170, 0.9) 100%);
  border: 2px solid rgba(40, 80, 120, 0.8);
  border-radius: 8px;
  color: white;
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: all 0.2s ease;
}

#debug .town-button:hover:not(:disabled) {
  background: linear-gradient(135deg, rgba(120, 170, 220, 0.95) 0%, rgba(90, 140, 190, 0.95) 100%);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  transform: translateY(-1px);
}

#debug .town-button:active:not(:disabled) {
  transform: translateY(1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

#debug .town-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: linear-gradient(135deg, rgba(100, 100, 100, 0.6) 0%, rgba(80, 80, 80, 0.6) 100%);
}

/* Special styling for KICK button */
.hero-editor-card .town-button[style*="maroon"] {
  background: linear-gradient(135deg, rgba(180, 40, 40, 0.9) 0%, rgba(140, 20, 20, 0.9) 100%) !important;
  border: 2px solid rgba(100, 10, 10, 0.9);
}

.hero-editor-card .town-button[style*="maroon"]:hover:not(:disabled) {
  background: linear-gradient(135deg, rgba(200, 60, 60, 0.95) 0%, rgba(160, 40, 40, 0.95) 100%) !important;
  box-shadow: 0 4px 12px rgba(139, 0, 0, 0.5);
}

.hero-editor-card .town-button[style*="maroon"]:active:not(:disabled) {
  transform: translateY(1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}