/**
 * MUD3 Client - Old IE Retro Theme
 * Full-screen reference image (m2client.jpg) with creature + golden frame
 * Compass top-right; health/magic only (two vertical bars) bottom-left; center terminal.
 */

[data-theme="oldie"] body,
[data-theme="oldie"] .app-container {
  background: #0f0c18 url('../../img/m2client.jpg') no-repeat center center;
  background-size: cover;
}

[data-theme="oldie"] .bg-decorations {
  display: none;
}

[data-theme="oldie"] #status-bar {
  display: none !important;
}

[data-theme="oldie"] .bottom-controls {
  display: none !important;
}

[data-theme="oldie"] .retro-oldie-layout {
  display: block !important;
  position: absolute;
  inset: 0;
  pointer-events: none;
}

[data-theme="oldie"] .retro-oldie-layout .oldie-compass,
[data-theme="oldie"] .retro-oldie-layout .oldie-stats {
  pointer-events: auto;
}

/* Main content: center terminal + input (purple style) */
[data-theme="oldie"] .main-content {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 6rem 4rem 2rem;
  max-width: 100%;
}

[data-theme="oldie"] .terminal-wrapper {
  flex: 1;
  max-width: 48rem;
  width: 100%;
  background: #120e1a;
  border: 2px solid #3d2e5a;
  border-radius: 4px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.6), 0 0 20px rgba(51, 255, 102, 0.05);
}

[data-theme="oldie"] .terminal-frame {
  background: transparent;
  border: none;
}

[data-theme="oldie"] .terminal {
  color: #33ff66;
  font-family: 'VT323', 'Courier New', monospace;
}

[data-theme="oldie"] .input-area {
  max-width: 48rem;
  width: 100%;
  margin-top: 0.5rem;
}

[data-theme="oldie"] .input-wrapper {
  background: #120e1a;
  border: 2px solid #118833;
  box-shadow: inset 0 2px 10px rgba(0,0,0,0.5);
}

[data-theme="oldie"] .command-input {
  color: #66aaff;
  font-family: 'VT323', monospace;
}

[data-theme="oldie"] .input-hints {
  display: none;
}

/* Compass: top-right (like reference) */
[data-theme="oldie"] .oldie-compass {
  position: absolute;
  top: 4.5rem;
  right: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

[data-theme="oldie"] .oldie-compass .compass-grid {
  margin: 0;
}

[data-theme="oldie"] .oldie-compass .compass-row {
  display: flex;
  gap: 4px;
  justify-content: center;
}

[data-theme="oldie"] .oldie-compass .compass-btn {
  width: 40px;
  height: 36px;
  font-size: 0.75rem;
  background: #1a1525;
  border: 1px solid #118833;
  color: #33ff66;
  border-radius: 4px;
}

[data-theme="oldie"] .oldie-compass .compass-btn:hover {
  border-color: #33ff66;
  box-shadow: 0 0 8px rgba(51, 255, 102, 0.3);
}

[data-theme="oldie"] .oldie-compass .compass-main {
  background: #251e35;
  border-color: #33ff66;
}

[data-theme="oldie"] .oldie-compass .compass-center {
  background: #8a6b1a;
  border-color: #e8c84a;
  color: #e8c84a;
}

[data-theme="oldie"] .oldie-compass .direction-extras {
  display: flex;
  gap: 4px;
  margin-top: 0.25rem;
}

[data-theme="oldie"] .oldie-compass .dir-btn {
  width: 40px;
  height: 32px;
  padding: 0;
  font-size: 0.75rem;
  background: #1a1525;
  border: 1px solid #118833;
  color: #33ff66;
  border-radius: 4px;
}

/* Health/Magic: bottom-left, shield-style two vertical bars */
[data-theme="oldie"] .oldie-stats {
  position: absolute;
  bottom: 2rem;
  left: 1.5rem;
  display: flex;
  flex-direction: row;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  background: linear-gradient(180deg, #251e35 0%, #1a1525 100%);
  border: 2px solid #3d2e5a;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.05);
}

[data-theme="oldie"] .oldie-stat-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

[data-theme="oldie"] .oldie-stat-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: #33ff66;
  font-family: 'VT323', monospace;
}

[data-theme="oldie"] .oldie-bar-track {
  width: 1.25rem;
  height: 4rem;
  background: #0f0c18;
  border: 1px solid #3d2e5a;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

[data-theme="oldie"] .oldie-bar-fill {
  width: 100%;
  min-height: 4px;
  transition: height 0.2s ease;
}

[data-theme="oldie"] #oldie-health-bar.oldie-bar-fill {
  background: linear-gradient(180deg, #cc3333 0%, #992222 100%);
}

[data-theme="oldie"] #oldie-magic-bar.oldie-bar-fill {
  background: linear-gradient(180deg, #9966cc 0%, #663399 100%);
}

[data-theme="oldie"] .top-bar {
  background: rgba(15, 12, 24, 0.9);
  border-bottom: 1px solid #3d2e5a;
}

[data-theme="oldie"] .logo { color: #33ff66; }
[data-theme="oldie"] .theme-icon-btn { color: #33ff66; }
[data-theme="oldie"] .app-footer {
  background: rgba(15, 12, 24, 0.9);
  border-top: 1px solid #3d2e5a;
  color: #22cc55;
  font-family: 'VT323', monospace;
}
