/* ==============================================================================
   KENDIR KENEVIR | HERO INTERACTIVE STAGE & BOTANIC ENGINE STYLES
   Editorial Design System Compliant: No rounded corners, zero shadow, high-contrast
   ============================================================================== */

.hero-section {
  position: relative;
  overflow: hidden;
}

.hero-interactive-stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.hero-interactive-stage canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: auto; /* Enables mouse interactions & click-to-plant */
}

/* Editorial backdrop gradient to guarantee 100% typography legibility */
.hero-editorial-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(circle at 25% 45%, var(--bg) 0%, rgba(14, 18, 16, 0.85) 45%, rgba(14, 18, 16, 0.25) 80%, transparent 100%);
}

[data-theme="light"] .hero-editorial-overlay {
  background: radial-gradient(circle at 25% 45%, rgba(233, 236, 234, 0.94) 0%, rgba(233, 236, 234, 0.84) 45%, rgba(233, 236, 234, 0.25) 80%, transparent 100%);
}

[data-theme="dark"] .hero-editorial-overlay {
  background: radial-gradient(circle at 25% 45%, rgba(14, 18, 16, 0.94) 0%, rgba(14, 18, 16, 0.84) 45%, rgba(14, 18, 16, 0.25) 80%, transparent 100%);
}

/* Soil boundary indicator label */
.hero-soil-indicator {
  position: absolute;
  bottom: 12px;
  right: 24px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.hero-soil-indicator::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--accent);
}

/* Mode Switcher pill in Platform Index header */
.hero-sim-controls {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: var(--surface-alt);
  padding: 2px;
  border: 1px solid var(--border);
}

.btn-mode-toggle {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: background-color 120ms ease, color 120ms ease, border-color 120ms ease;
  line-height: 1.2;
}

.btn-mode-toggle:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-mode-toggle.active {
  background: var(--surface-contrast);
  color: var(--text);
  border-color: var(--border-strong);
  font-weight: 600;
}

.btn-mode-toggle.btn-icon {
  padding: 3px 7px;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Tooltip hint on hover near soil */
.hero-stratum-hint {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 4px 10px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 3;
}

.hero-interactive-stage:hover .hero-stratum-hint {
  opacity: 0.85;
}
