/* MintForge Live - Styles */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --mint: #00ff88;
  --cyan: #00d4ff;
  --pink: #ff00aa;
  --orange: #ffaa00;
  --purple: #aa55ff;
  --red: #ff4444;
  --bg: #0d0d15;
}

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: white;
  height: 100vh;
  overflow: hidden;
}

.studio {
  position: relative;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at 50% 30%, #1a1a2e 0%, #0d0d15 70%);
  overflow: hidden;
}

/* Floor */
.floor {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 45%;
  background: linear-gradient(180deg, #12121c 0%, #0a0a12 100%);
  transform: perspective(800px) rotateX(45deg);
  transform-origin: bottom center;
}

/* Table */
.table-container {
  position: absolute;
  bottom: 22%;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 180px;
}

.table {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 120px;
  background: linear-gradient(180deg, #252535 0%, #1a1a28 100%);
  border-radius: 50%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.8);
}

.table::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 5%;
  right: 5%;
  height: 10px;
  background: linear-gradient(90deg, var(--mint), var(--cyan), var(--pink), var(--purple));
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.6;
}

.table-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Arial Black', sans-serif;
  font-size: 14px;
  color: rgba(0,255,136,0.3);
}

/* Characters */
.characters-container {
  position: absolute;
  bottom: 18%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 300px;
}

.character {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
}

.character.speaking { transform: scale(1.05); }
.character.speaking .avatar { box-shadow: 0 0 30px var(--char-color), 0 0 60px var(--char-color); }
.character.speaking .mouth { animation: talk 0.15s infinite; }

@keyframes talk {
  0%, 100% { height: 8px; border-radius: 50%; }
  50% { height: 15px; border-radius: 8px; }
}

.character[data-char="host"] { --char-color: var(--mint); bottom: 140px; left: 50%; transform: translateX(-50%); z-index: 10; }
.character[data-char="builder"] { --char-color: var(--cyan); bottom: 100px; left: 15%; }
.character[data-char="analyst"] { --char-color: var(--pink); bottom: 60px; left: 5%; }
.character[data-char="researcher"] { --char-color: var(--orange); bottom: 100px; right: 15%; }
.character[data-char="culture"] { --char-color: var(--purple); bottom: 60px; right: 5%; }

.avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(180deg, #3a3a50 0%, #2a2a3e 100%);
  position: relative;
  border: 3px solid var(--char-color);
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
  transition: box-shadow 0.3s ease;
}

.eyes {
  position: absolute;
  top: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 16px;
}

.eye {
  width: 14px;
  height: 14px;
  background: white;
  border-radius: 50%;
  position: relative;
}

.eye::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  background: #1a1a2e;
  border-radius: 50%;
  top: 3px;
  left: 3px;
}

.mouth {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 8px;
  background: #1a1a2e;
  border-radius: 50%;
}

.hair {
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50% 50% 0 0;
}

.character[data-char="host"] .hair { background: linear-gradient(180deg, #2d5a3d 0%, #1a3d28 100%); width: 70px; height: 25px; }
.character[data-char="builder"] .hair { background: linear-gradient(180deg, #4a3a2a 0%, #3a2a1a 100%); width: 65px; height: 30px; }
.character[data-char="analyst"] .hair { background: linear-gradient(180deg, #5a4a6a 0%, #3a2a4a 100%); width: 75px; height: 35px; }
.character[data-char="researcher"] .hair { background: linear-gradient(180deg, #2a2a3a 0%, #1a1a2a 100%); width: 72px; height: 20px; }
.character[data-char="culture"] .hair { background: linear-gradient(180deg, #6a3a4a 0%, #4a2a3a 100%); width: 78px; height: 28px; }

.body {
  width: 90px;
  height: 50px;
  background: linear-gradient(180deg, #2a2a3e 0%, #1a1a2e 100%);
  border-radius: 30px 30px 0 0;
  margin-top: -10px;
}

.name-tag {
  margin-top: 5px;
  padding: 4px 12px;
  background: rgba(0,0,0,0.8);
  border: 1px solid var(--char-color);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--char-color);
  text-transform: uppercase;
}

.speaking-indicator {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
  opacity: 0;
}

.character.speaking .speaking-indicator { opacity: 1; }

.speaking-indicator span {
  width: 6px;
  height: 6px;
  background: var(--char-color);
  border-radius: 50%;
  animation: bounce 0.6s infinite;
}

.speaking-indicator span:nth-child(2) { animation-delay: 0.1s; }
.speaking-indicator span:nth-child(3) { animation-delay: 0.2s; }

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Logo */
.logo-backdrop {
  position: absolute;
  top: 8%;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Arial Black', sans-serif;
  font-size: 42px;
  color: var(--mint);
  text-shadow: 0 0 50px rgba(0,255,136,0.5);
  letter-spacing: 3px;
}

/* Top bar */
.top-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(180deg, rgba(0,0,0,0.9) 0%, transparent 100%);
  z-index: 100;
}

.logo-small {
  font-family: 'Arial Black', sans-serif;
  font-size: 20px;
  color: var(--mint);
}

.live-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  background: rgba(255,51,51,0.2);
  border: 1px solid #ff3333;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #ff3333;
}

.live-badge.on-break {
  background: rgba(255,170,0,0.2);
  border-color: var(--orange);
  color: var(--orange);
}

.live-dot {
  width: 8px;
  height: 8px;
  background: currentColor;
  border-radius: 50%;
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.controls {
  display: flex;
  align-items: center;
  gap: 15px;
}

.market-ticker {
  display: flex;
  gap: 15px;
  font-family: monospace;
  font-size: 12px;
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.ticker-item.up { color: var(--mint); }
.ticker-item.down { color: var(--red); }

.viewers, .timer {
  font-size: 13px;
  color: #888;
  font-family: monospace;
}

.mute-btn {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
}

.mute-btn.muted {
  background: rgba(255,0,0,0.2);
  border-color: #ff3333;
  color: #ff3333;
}

/* Subtitles */
.subtitles {
  position: absolute;
  bottom: 8%;
  left: 50%;
  transform: translateX(-50%);
  max-width: 750px;
  width: 90%;
  text-align: center;
  z-index: 100;
}

.subtitle-box {
  background: rgba(0,0,0,0.9);
  padding: 12px 24px;
  border-radius: 8px;
  border-left: 4px solid var(--mint);
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.subtitle-box.visible {
  opacity: 1;
  transform: translateY(0);
}

.subtitle-speaker {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 4px;
  font-family: monospace;
}

.subtitle-text {
  font-size: 18px;
  line-height: 1.4;
}

/* Event notification */
.event-notification {
  position: absolute;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.9);
  border: 2px solid var(--mint);
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 200;
}

.event-notification.visible {
  opacity: 1;
}

.event-notification.buy {
  border-color: var(--mint);
  color: var(--mint);
}

.event-notification.sell {
  border-color: var(--red);
  color: var(--red);
}

/* Topic indicator */
.topic-indicator {
  position: absolute;
  top: 15%;
  right: 20px;
  text-align: right;
}

.topic-label {
  font-size: 9px;
  color: #555;
  letter-spacing: 2px;
  font-family: monospace;
}

.topic-text {
  font-size: 14px;
  color: var(--cyan);
  font-weight: 600;
}

/* Fear & Greed */
.fear-greed {
  position: absolute;
  top: 15%;
  left: 20px;
}

.fg-label {
  font-size: 9px;
  color: #555;
  letter-spacing: 2px;
  font-family: monospace;
}

.fg-value {
  font-size: 24px;
  font-weight: 700;
  font-family: monospace;
}

.fg-value.greed { color: var(--mint); }
.fg-value.fear { color: var(--red); }
.fg-value.neutral { color: var(--orange); }

.fg-text {
  font-size: 11px;
  color: #666;
}

.vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 60%, rgba(0,0,0,0.6) 100%);
  z-index: 50;
}

/* Break overlay */
.break-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5,5,10,0.97);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.break-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.break-logo {
  font-family: 'Arial Black', sans-serif;
  font-size: 56px;
  color: var(--mint);
  text-shadow: 0 0 60px rgba(0,255,136,0.6);
  margin-bottom: 20px;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

.break-message {
  font-size: 24px;
  color: #888;
  margin-bottom: 10px;
}

.break-sub {
  font-size: 16px;
  color: #555;
  margin-bottom: 30px;
}

.break-timer {
  font-family: monospace;
  font-size: 64px;
  color: var(--cyan);
  text-shadow: 0 0 30px rgba(0,212,255,0.5);
}

.break-music {
  margin-top: 40px;
  font-size: 28px;
  color: #333;
  animation: pulse 2s infinite;
}

.coffee-icon {
  font-size: 48px;
  margin-top: 20px;
  animation: steam 2s infinite;
}

@keyframes steam {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-5px) rotate(5deg); }
}

/* Start overlay */
.start-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.97);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: opacity 0.5s ease;
}

.start-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.start-title {
  font-family: 'Arial Black', sans-serif;
  font-size: 52px;
  color: var(--mint);
  text-shadow: 0 0 50px rgba(0,255,136,0.5);
  margin-bottom: 10px;
}

.start-subtitle {
  font-size: 20px;
  color: #666;
  margin-bottom: 30px;
}

.start-features {
  font-size: 14px;
  color: #444;
  margin-bottom: 30px;
  text-align: center;
  line-height: 2;
}

.start-features span {
  display: inline-block;
  margin: 0 10px;
  padding: 4px 10px;
  background: rgba(0,255,136,0.1);
  border-radius: 4px;
  color: var(--mint);
}

.start-btn {
  padding: 18px 50px;
  background: var(--mint);
  color: #0a0a0f;
  border: none;
  border-radius: 8px;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.start-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 40px rgba(0,255,136,0.5);
}

.api-status {
  margin-top: 20px;
  font-size: 12px;
  color: #333;
}

.api-status.connected { color: var(--mint); }
.api-status.offline { color: var(--orange); }
