/* css/tutorial.css — guided walkthrough + onboarding HUD helpers */

/* ---- Tutorial overlay ---- */
#tutorial-layer {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  font-family: 'Courier New', Courier, monospace;
}

#tutorial-layer.dim {
  background: rgba(0, 0, 0, 0.82);
}

#tutorial-spotlight {
  position: fixed;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  border: 2px solid #ffd100;
  border-radius: 4px;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.82), 0 0 18px rgba(255.0, 209, 0, 0.6);
  pointer-events: none;
  opacity: 0;
  transition: left 0.25s ease, top 0.25s ease, width 0.25s ease, height 0.25s ease, opacity 0.2s;
}

#tutorial-card {
  position: fixed;
  max-width: 330px;
  background: #000;
  border: 2px solid #ffd100;
  outline: 1px solid #aa8b00;
  outline-offset: 3px;
  padding: 14px 16px;
  color: #ffd100;
  pointer-events: auto;
  box-shadow: 0 0 25px rgba(255.0, 209, 0, 0.25);
}

#tutorial-title {
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 1px;
  text-shadow: 0 0 6px #ffd100;
  margin-bottom: 8px;
}

#tutorial-text {
  font-size: 12px;
  line-height: 1.55;
  color: #cca700;
}

#tutorial-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

#tutorial-step {
  font-size: 10px;
  color: #aa8b00;
  margin-right: auto;
}

#tutorial-next,
#tutorial-skip {
  font-family: 'Courier New', Courier, monospace;
  font-size: 11px;
  background: rgba(0, 30, 0, 0.5);
  border: 1px solid #aa8b00;
  color: #ffd100;
  padding: 6px 12px;
  cursor: pointer;
}

#tutorial-skip {
  border-color: #444;
  color: #888;
}

#tutorial-next:hover {
  border-color: #ffd100;
  background: rgba(50.0, 41, 0, 0.6);
  text-shadow: 0 0 6px #ffd100;
}

#tutorial-skip:hover { color: #ccc; border-color: #888; }

/* ---- Help (?) button ---- */
#help-btn {
  position: fixed;
  top: 44px;
  right: 10px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid #aa8b00;
  color: #ffd100;
  font-family: 'Courier New', Courier, monospace;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  z-index: 11;
  text-shadow: 0 0 5px currentColor;
}

#help-btn:hover {
  border-color: #ffd100;
  box-shadow: 0 0 10px rgba(255.0, 209, 0, 0.4);
}

/* ---- Objective indicator (enemy capitals remaining) ---- */
#objective-indicator {
  position: fixed;
  top: 44px;
  right: 44px;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid #cc2020;
  color: #ff6060;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: bold;
  z-index: 10;
  text-shadow: 0 0 5px currentColor;
}

/* ---- RECOLECTAR attention pulse (idle workers) ---- */
.action-btn.needs-attention {
  border-color: #ffcc00;
  animation: gather-pulse 1s ease-in-out infinite alternate;
}

@keyframes gather-pulse {
  from { box-shadow: 0 0 4px rgba(255, 204, 0, 0.3); }
  to { box-shadow: 0 0 14px rgba(255, 204, 0, 0.9); }
}

/* ---- Build modal: unit roles + disabled reasons ---- */
.build-btn .unit-role {
  font-size: 10px;
  color: #aa8b00;
  font-weight: normal;
}

.build-btn .reason {
  font-size: 10px;
  color: #ff6060;
}

/* ---- Gather modal: food summary + auto-assign ---- */
.food-summary {
  margin-top: 12px;
  padding: 6px 8px;
  border: 1px solid #886600;
  color: #ffcc00;
  font-size: 11px;
  line-height: 1.5;
}

.food-summary.food-warn {
  border-color: #cc2020;
  color: #ff4040;
}

.auto-assign-btn {
  font-family: 'Courier New', Courier, monospace;
  font-size: 11px;
  background: rgba(40, 30, 0, 0.6);
  border: 1px solid #cc9900;
  color: #ffcc00;
  padding: 5px 12px;
  margin-left: 12px;
  cursor: pointer;
}

.auto-assign-btn:hover:not([disabled]) {
  border-color: #ffcc00;
  box-shadow: 0 0 10px rgba(255, 204, 0, 0.3);
}

.auto-assign-btn[disabled] {
  opacity: 0.35;
  cursor: not-allowed;
}

.idle-count { color: #ffcc00; }

/* ---- Research modal: lock reasons ---- */
.tech-item .tech-reason {
  display: block;
  font-size: 8px;
  color: #aa5555;
  margin-top: 2px;
}
