﻿/* LandLords: Epos - WASM Viewer 3D Styles */

@import url('core/variables.css');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--color-bg-dark);
  color: var(--color-text);
  font-family: system-ui, sans-serif;
  overflow: hidden;
  height: 100vh;
}

#loading {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, var(--color-gradient-start), var(--color-gradient-end));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: opacity .8s;
}

#loading.hidden {
  opacity: 0;
  pointer-events: none;
}

h1 {
  font-size: 3em;
  margin-bottom: 10px;
  background: linear-gradient(135deg, var(--color-primary-gradient-start), var(--color-primary-gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.spinner {
  width: 60px;
  height: 60px;
  border: 4px solid var(--color-spinner-border);
  border-top-color: var(--color-spinner-top);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

#status {
  margin-top: 25px;
  text-align: center;
  max-width: 600px;
  padding: 0 20px;
  line-height: 1.6;
  color: var(--color-status-default);
}

.ok {
  color: var(--color-success);
  font-weight: 600;
}

.warn {
  color: var(--color-warning);
}

.err {
  color: var(--color-error);
}

#info {
  margin-top: 15px;
  padding: 15px;
  background: var(--color-info-bg);
  border-radius: 8px;
  font-family: monospace;
  font-size: .85em;
  max-width: 700px;
  text-align: left;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.row {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  border-bottom: 1px solid var(--color-row-border);
}

.row:last-child {
  border-bottom: none;
}

.btn {
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--color-primary-gradient-start), var(--color-primary-gradient-end));
  border: none;
  border-radius: 6px;
  color: var(--color-text);
  font-size: 1em;
  cursor: pointer;
  transition: all .2s;
  margin: 10px;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px var(--color-btn-shadow);
}

#actions {
  margin-top: 25px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

canvas {
  display: block;
  width: 100vw;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1;
}

#hud {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  font-family: 'Fira Code', monospace;
  font-size: 14px;
  pointer-events: none;
}

#fps {
  background: var(--color-fps-bg);
  padding: 4px 10px;
  border-radius: 4px;
  color: var(--color-success);
  font-weight: 700;
  margin-bottom: 4px;
}

#hud-info {
  background: var(--color-hud-info-bg);
  padding: 4px 10px;
  border-radius: 4px;
  color: var(--color-hud-info-text);
  font-size: 12px;
}

#console {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: var(--color-console-bg);
  overflow-y: auto;
  padding: 10px;
  font-family: monospace;
  font-size: 12px;
  border-top: 2px solid var(--color-console-border);
  display: none;
}

#console.show {
  display: block;
}

/* Seed Control Panel */
#seed-panel {
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--color-fps-bg);
  padding: 8px 12px;
  border-radius: var(--radius-6);
  font-family: var(--font-mono);
  font-size: var(--text-14);
  transition: opacity var(--transition-normal);
}

#seed-panel.is-hidden {
  opacity: 0;
  pointer-events: none;
}

#seed-panel label {
  color: var(--color-text-muted);
  white-space: nowrap;
}

#seed-input {
  width: 180px;
  padding: 6px 10px;
  background: var(--color-bg);
  border: 1px solid var(--color-row-border);
  border-radius: var(--radius-4);
  color: var(--color-text);
  font-family: var(--font-mono);
  font-size: var(--text-14);
  outline: none;
  transition: border-color var(--transition-fast);
}

#seed-input:focus {
  border-color: var(--color-spinner-top);
}

#seed-input::placeholder {
  color: var(--color-text-disabled);
}

#seed-panel .btn {
  padding: 6px 14px;
  margin: 0;
  font-size: var(--text-12);
}