/*
 * Stylesheet for the Crypto Momentum Dashboard.
 *
 * The design embraces a dark, minimalistic aesthetic to reduce eye
 * fatigue and provide a professional look. Panels expand and collapse
 * smoothly, and the layout is responsive across desktops and mobile
 * devices.
 */

html, body {
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
  background-color: #121212;
  color: #ffffff;
  min-height: 100vh;
}

header {
  background-color: #1e1e1e;
  padding: 1rem;
  border-bottom: 1px solid #333;
}

/* Branding styles */
.site-name {
  margin: 0;
  font-size: 2.0rem; /* larger font for the site name */
  font-weight: bold;
  text-align: center;
  color: #ffffff;
}

.site-tagline {
  margin: 0;
  font-size: 1.3rem; /* slightly smaller tagline below */
  text-align: center;
  color: #bbbbbb; /* lighter gray to distinguish from the main name */
  margin-bottom: 0.5rem;
}

nav {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.tab-button {
  background: none;
  border: none;
  color: #aaa;
  font-size: 1rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: color 0.2s;
}

.tab-button.active,
.tab-button:hover {
  color: #ffffff;
  border-bottom: 2px solid #4caf50;
}

main {
  padding: 1rem;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Cards container for momentum overview */
.cards-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.card {
  background-color: #1e1e1e;
  border-radius: 8px;
  padding: 1rem;
  border: 1px solid #333;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}

.card:hover {
  background-color: #2a2a2a;
}

.card-header {
  display: flex;
  /* Align items to the left so the icon and token name start from the same side */
  justify-content: flex-start;
  align-items: center;
  gap: 0.5rem;
}

/* Base icon styling using crypto-icons webfont */
.icon {
  font-family: 'coins';
  font-style: normal;
  font-weight: normal;
  font-size: 1.2rem;
  line-height: 1;
  margin-right: 0.4rem;
  color: #4caf50; /* green hue for icons to stand out */
}

/* Chart title area */
.chart-title {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-right: 1rem;
  font-size: 1rem;
}

.card-title {
  font-size: 1.1rem;
  font-weight: bold;
}

.score {
  font-size: 1rem;
  font-weight: bold;
}

.score.positive {
  color: #4caf50;
}

.score.negative {
  color: #f44336;
}

/* Momentum bar for positive/neutral/negative signals */
.momentum-bar {
  display: flex;
  height: 10px;
  border: 1px solid #333;
  border-radius: 4px;
  margin-top: 0.5rem;
  overflow: hidden;
}
.bar-positive {
  background-color: #4caf50;
}
.bar-neutral {
  background-color: #555;
}
.bar-negative {
  background-color: #f44336;
}

/* Mini momentum bar used in the details section (smaller height) */
.mini-momentum-bar {
  display: flex;
  height: 6px;
  border: 1px solid #333;
  border-radius: 4px;
  margin: 0.25rem 0;
  overflow: hidden;
}

/* Container for indicator badges */
.indicator-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-top: 0.25rem;
}

/* Individual indicator badge */
.indicator-badge {
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
  font-size: 0.75rem;
  cursor: default;
  user-select: none;
  color: #fff;
}
.indicator-badge.bullish {
  background-color: #2e7d32; /* dark green */
}
.indicator-badge.bearish {
  background-color: #c62828; /* dark red */
}

.card-details {
  margin-top: 0.5rem;
  display: none;
  font-size: 0.9rem;
  line-height: 1.4;
}

.card-details.active {
  display: block;
}

/* Chart tab */
.chart-controls {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

#token-select {
  background-color: #1e1e1e;
  color: #ffffff;
  border: 1px solid #333;
  padding: 0.5rem;
  border-radius: 4px;
}

/* Broker table */
#broker-table {
  width: 100%;
  border-collapse: collapse;
}

#broker-table th,
#broker-table td {
  border: 1px solid #333;
  padding: 0.5rem;
  text-align: left;
}

#broker-table th {
  background-color: #1e1e1e;
}

#broker-table tbody tr:nth-child(odd) {
  background-color: #1c1c1c;
}

#broker-table a {
  color: #4caf50;
  text-decoration: none;
}

footer {
  margin-top: 2rem;
  padding: 1rem;
  border-top: 1px solid #333;
  text-align: center;
  font-size: 0.8rem;
  color: #888;
}

/* Disclaimer styling: used at top and bottom */
.disclaimer {
  font-size: 0.85rem;
  color: #ffb74d; /* soft orange to draw attention */
  margin: 1rem 0;
  text-align: center;
}

/* Broker articles */
.articles-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.broker-article {
  background-color: #1e1e1e;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 1rem;
}

.broker-article h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  color: #4caf50;
}

.broker-article p {
  margin: 0.5rem 0;
  line-height: 1.4;
  color: #ddd;
}

/* Forecast model explanation */
.forecast-explanation {
  margin-top: 1.5rem;
  background-color: #1e1e1e;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 1rem;
  line-height: 1.5;
  color: #ddd;
}
.forecast-explanation h2 {
  margin-top: 0;
  color: #4caf50;
  font-size: 1.3rem;
}
.forecast-explanation strong {
  color: #ffb74d;
}

/* Indicator explanations styling */
.indicator-explanations {
  margin-top: 1.5rem;
  background-color: #1e1e1e;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 1rem;
  line-height: 1.5;
  color: #ddd;
}
.indicator-explanations h2 {
  margin-top: 0;
  color: #4caf50;
  font-size: 1.3rem;
}
.indicator-explanations h3 {
  color: #4caf50;
  margin-top: 1rem;
  font-size: 1.1rem;
}