/* Main UI CSS for Fable Exchange Platform */

body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #111;
  color: #f0f0f0;
}

header {
  padding: 20px;
  background-color: #222;
  text-align: center;
  border-bottom: 2px solid #333;
}

nav {
  margin-top: 10px;
}

nav a {
  color: #7ad9ff;
  margin: 0 10px;
  text-decoration: none;
}

nav a.active {
  font-weight: bold;
  color: #00ffc8;
}

main {
  padding: 20px;
  max-width: 1200px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

section {
  background-color: #1a1a1a;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(0,255,200,0.05);
}

h2 {
  color: #7ad9ff;
  margin-top: 0;
}

label, select, input, button {
  font-size: 16px;
  margin: 5px;
}

button {
  background-color: #00ffc8;
  color: #111;
  border: none;
  padding: 8px 14px;
  border-radius: 5px;
  cursor: pointer;
}

button:hover {
  background-color: #00ddb4;
}

#newsTicker {
  font-family: monospace;
  background-color: #1e1e1e;
  color: #00ffc8;
  padding: 15px;
  font-size: 18px;
  overflow: hidden;
  border-bottom: 1px solid #333;
  position: sticky;
  top: 0;
  z-index: 1000;
}

#newsContent {
  display: inline-block;
  white-space: nowrap;
  position: absolute;
  will-change: transform;
  animation: ticker 30s linear infinite;
}

@keyframes ticker {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(-100%);
  }
}

#portfolioList li, #npcLog li, #tradeHistory li {
  list-style: none;
  padding: 4px 0;
  border-bottom: 1px solid #2e2e2e;
}

#eventArchive div {
  padding: 3px 0;
  font-family: monospace;
  border-bottom: 1px dashed #444;
}

#topStories p {
  margin: 5px 0;
  font-style: italic;
  color: #ffca6f;
}

#detailsPanel, #npcProfileOutput {
  font-size: 14px;
  line-height: 1.6;
}

canvas {
  max-width: 100%;
  background-color: #111;
  border-radius: 8px;
}
