/* sentiment-enhancements.css - Additional styles for the sentiment gauge page */

:root {
  --primary-color: #86efac;
  --primary-hover: #66cf8c;
  --secondary-color: #73C2D4;
  --text-light: #ffffff;
  --text-dark: #1b1d28;
  --glass-bg: rgba(255, 255, 255, 0.07);
  --glass-border: rgba(255, 255, 255, 0.1);
  --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  --glow-effect: 0 0 15px rgba(134, 239, 172, 0.6);
}

/* Retain original header styling */
.generator-page h1 {
  font-size: var(--heading-size);
  margin-bottom: 1.5rem;
  text-align: center;
  color: #ffffff;
}

/* ===== GLASS CARD DESIGN ===== */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px;
  box-shadow: var(--card-shadow);
  transition: all 0.3s ease;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.glass-card:hover {
  box-shadow: var(--card-shadow), var(--glow-effect);
  border-color: rgba(134, 239, 172, 0.3);
}

/* ===== GAUGE STYLING ===== */
.gauge-container {
  text-align: center;
  margin-bottom: 2rem;
}

.gauge-svg {
  max-width: 400px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}

#needle {
  transition: transform 0.3s ease-out;
}

#compound-readout {
  margin-top: 1.5rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-light);
  text-align: center;
  transition: color 0.3s ease;
}

#sentiment-description {
  font-size: 1rem;
  margin-top: 0.5rem;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  transition: color 0.3s ease;
}

/* ===== ROLLING TEXT CONTAINER ===== */
.rolling-text-container {
  width: 100%;
  height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  overflow-y: auto;
  border-radius: 12px;
  padding: 4px 1rem 8px 1rem;
  margin: 2rem 0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-family: monospace;
  text-align: center;
}
.rolling-text-container > div {
  width: 100%;
}

.rolling-text-container > div:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* ===== SENTIMENT HISTORY PANEL ===== */
.sentiment-panel {
  text-align: center;
  margin-bottom: 2rem;
}

.sentiment-panel-header {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #82A9D1;
}

.sentiment-data-container {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.5rem;
}

.sentiment-history-row {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  gap: 1rem;
  font-family: monospace;
  text-align: center;
}

.sentiment-period {
  flex: 1;
  padding: 0.5rem;
  border-radius: 8px;
  transition: background-color 0.2s ease;
}

.sentiment-period:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.sentiment-label {
  margin-bottom: 0.5rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  font-weight: 600;
}

.sentiment-value {
  font-size: 1.1rem;
  font-weight: 600;
}

.diff-line {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: #ccc;
}

/* ===== TOP WORDS CONTAINER ===== */
.words-panel {
  text-align: center;
  margin-top: 2rem;
}

.words-panel-header {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #82A9D1;
}

.words-container {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1rem;
  max-height: 400px;
  overflow-y: auto;
  text-align: left;
  white-space: pre-wrap;
  color: #fff;
  font-family: monospace;
  font-size: 0.9rem;
}

/* Color styles for sentiment values */
.positive-sentiment {
  color: #22c55e;
}

.negative-sentiment {
  color: #ef4444;
}

.neutral-sentiment {
  color: #eab308;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 768px) {
  .sentiment-history-row {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .sentiment-period {
    flex: 1 1 40%;
    margin-bottom: 1rem;
  }
  
  .words-container {
    font-size: 0.8rem;
  }
  
  #compound-readout {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .gauge-svg {
    max-width: 300px;
  }
  
  #compound-readout {
    font-size: 1rem;
  }
  
  #sentiment-description {
    font-size: 0.9rem;
  }
  
  .sentiment-period {
    flex: 1 1 100%;
  }
  
  .sentiment-label {
    font-size: 0.8rem;
  }
  
  .sentiment-value {
    font-size: 1rem;
  }
  
  .rolling-text-container {
    height: 240px;
    font-size: 0.9rem;
  }
}