/* style/collector-hustle.css */
body {
  font-family: 'Courier New', monospace;
  background: #121212;
  color: #eee;
  text-align: center;
  padding: 30px;
}

h1 { color: #00ff90; }

.stat {
  font-size: 1.5em;
  margin: 5px 0;
}

button {
  background: #333;
  color: #eee;
  border: 2px solid #00ff90;
  padding: 10px 20px;
  margin: 5px;
  cursor: pointer;
}

button:hover {
  background: #00ff90;
  color: #111;
}

.menu-bar {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 20px 0;
}

.menu-section {
  display: none;
}

.active {
  display: block;
}

.log,
.achievements,
.collection {
  margin-top: 20px;
  font-size: 0.9em;
  color: #aaa;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.log {
  border-top: 1px solid #333;
  padding-top: 10px;
  height: 200px;
  overflow-y: auto;
  text-align: left;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.collectible {
  border: 1px solid #333;
  border-radius: 10px;
  padding: 10px;
  background: #1e1e1e;
  transition: transform 0.2s ease;
}

.collectible:hover {
  transform: scale(1.03);
  box-shadow: 0 0 10px #00ff90;
}

.collectible img {
  width: 100%;
  max-height: 100px;
  object-fit: contain;
  border-radius: 6px;
}

.rarity-common {
  color: #bbb;
}

.rarity-uncommon {
  color: #66ff66;
}

.rarity-rare {
  color: #6699ff;
  font-weight: bold;
  text-shadow: 0 0 4px #6699ff;
  animation: rareGlow 0.6s ease-in-out;
}

.rarity-legendary {
  color: gold;
  font-weight: bold;
  text-shadow: 0 0 6px gold;
  animation: legendPulse 1s ease-in-out;
}

@keyframes rareGlow {
  0% { box-shadow: 0 0 0 #6699ff; }
  100% { box-shadow: 0 0 12px #6699ff; }
}

@keyframes legendPulse {
  0% { box-shadow: 0 0 0 gold; transform: scale(1); }
  50% { box-shadow: 0 0 20px gold; transform: scale(1.1); }
  100% { box-shadow: 0 0 0 gold; transform: scale(1); }
}

.tooltip {
  position: relative;
  display: inline-block;
  cursor: help;
}

.tooltip .tooltiptext {
  visibility: hidden;
  background-color: #222;
  color: #fff;
  text-align: center;
  border-radius: 5px;
  padding: 5px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s;
  white-space: nowrap;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}
