/**
 * Price Prophet — NADO COLORS + CASINO ENERGY
 * Dark Nado palette with gambling excitement
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --casino-bg: #000000;
  --casino-card: #0a0b0d;
  --casino-border: rgba(255, 255, 255, 0.04);
  --neon-green: #22c55e;
  --neon-red: #ef4444;
  --neon-blue: #e53e3e;
  --neon-purple: #e53e3e;
  --neon-gold: #eab308;
  --neon-cyan: #e53e3e;
  --glow-green: 0 0 20px rgba(34, 197, 94, 0.3), 0 0 60px rgba(34, 197, 94, 0.1);
  --glow-red: 0 0 20px rgba(239, 68, 68, 0.3), 0 0 60px rgba(239, 68, 68, 0.1);
  --glow-blue: 0 0 20px rgba(229, 62, 62, 0.3), 0 0 60px rgba(229, 62, 62, 0.1);
  --glow-gold: 0 0 20px rgba(234, 179, 8, 0.3), 0 0 60px rgba(234, 179, 8, 0.1);
}

/* ══════ CASINO ANIMATIONS ══════ */
@keyframes neon-pulse {
  0%, 100% { opacity: 1; filter: brightness(1); }
  50% { opacity: 0.85; filter: brightness(1.2); }
}

@keyframes glow-breathe {
  0%, 100% { box-shadow: 0 0 15px rgba(229, 62, 62, 0.2), 0 0 40px rgba(229, 62, 62, 0.05); }
  50% { box-shadow: 0 0 25px rgba(229, 62, 62, 0.35), 0 0 60px rgba(229, 62, 62, 0.1); }
}

@keyframes border-glow {
  0%, 100% { border-color: rgba(229, 62, 62, 0.3); }
  50% { border-color: rgba(229, 62, 62, 0.6); }
}

@keyframes price-flash-up {
  0% { background-color: transparent; }
  30% { background-color: rgba(34, 197, 94, 0.15); }
  100% { background-color: transparent; }
}

@keyframes price-flash-down {
  0% { background-color: transparent; }
  30% { background-color: rgba(239, 68, 68, 0.15); }
  100% { background-color: transparent; }
}

/* ══════ BASE STYLES ══════ */
#predict-container {
  background: var(--casino-bg) !important;
  color: #ffffff;
  min-height: calc(100vh - 200px);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  padding: 32px;
  overflow-x: hidden;
}

/* ══════ HEADER ══════ */
.predict-header {
  text-align: center;
  margin-bottom: 40px;
  padding: 32px;
  background: var(--casino-card) !important;
  border: 1px solid var(--casino-border);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.05);
}

.predict-header h1 {
  font-family: 'Inter', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  margin: 0 0 16px 0;
  color: #ffffff;
  letter-spacing: 0.02em;
  text-shadow: 0 0 20px rgba(229, 62, 62, 0.6);
}

.predict-header .subtitle {
  font-size: 1.1rem;
  color: #9ca3af;
  font-weight: 500;
  margin: 0;
  letter-spacing: 0.01em;
}

/* ══════ MAIN LAYOUT ══════ */
.predict-main {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 32px;
  max-width: 1400px;
  margin: 0 auto;
}

/* ══════ CHART SECTION ══════ */
.chart-section {
  background: var(--casino-card);
  border: 1px solid var(--casino-border);
  border-radius: 12px;
  padding: 32px;
  min-height: 600px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.05);
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.chart-title {
  font-family: 'Inter', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.symbol-selector {
  display: flex;
  gap: 8px;
}

.symbol-btn {
  background: #111214 !important;
  border: 1px solid var(--casino-border);
  border-radius: 8px;
  color: #9ca3af;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 12px 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.symbol-btn:hover,
.symbol-btn.active {
  background: #171a21 !important;
  color: #ffffff;
  border-color: var(--casino-border);
  box-shadow: 0 4px 16px rgba(229, 62, 62, 0.2);
  transform: translateY(-2px);
}

/* ══════ CHART CANVAS ══════ */
.chart-container {
  position: relative;
  height: 480px;
  background: #000000;
  border: 1px solid var(--casino-border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.5);
}

#price-chart {
  width: 100%;
  height: 100%;
  display: block;
}

/* Current price overlay */
.current-price-overlay {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--casino-card);
  border: 1px solid var(--casino-border);
  border-radius: 8px;
  padding: 16px 20px;
  font-family: 'Inter', sans-serif;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  animation: glow-breathe 3s ease-in-out infinite;
}

.price-symbol {
  font-size: 0.9rem;
  color: var(--neon-blue);
  font-weight: 600;
  margin-bottom: 4px;
}

.price-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  font-family: 'Inter', sans-serif;
  text-shadow: 0 0 10px rgba(255,255,255,0.3);
}

.price-change {
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 4px;
}

.price-change.positive { 
  color: var(--neon-green); 
  text-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
}
.price-change.negative { 
  color: var(--neon-red); 
  text-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

/* ══════ BETTING PANEL ══════ */
.betting-panel {
  background: var(--casino-card);
  border: 1px solid var(--casino-border);
  border-radius: 12px;
  padding: 32px;
  height: fit-content;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.05);
}

.betting-panel h2 {
  font-family: 'Inter', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 24px 0;
  text-align: center;
  text-shadow: 0 0 15px rgba(229, 62, 62, 0.6);
}

/* ══════ PREDICTION INPUTS ══════ */
.prediction-inputs {
  margin-bottom: 32px;
}

.input-group {
  margin-bottom: 20px;
}

.input-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #9ca3af;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.prediction-input {
  width: 100%;
  background: #000000;
  border: 1px solid var(--casino-border);
  border-radius: 8px;
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 16px;
  box-sizing: border-box;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
  transition: all 0.2s ease;
}

.prediction-input:focus {
  outline: none;
  border-color: var(--neon-blue);
  box-shadow: 0 0 0 2px rgba(229, 62, 62, 0.15), inset 0 2px 4px rgba(0,0,0,0.3);
}

.bet-amount {
  border: none !important;
  background: transparent !important;
}

/* ══════ QUICK ACTIONS ══════ */
.quick-amounts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.quick-amount-btn {
  background: #111214;
  border: 1px solid var(--casino-border);
  border-radius: 6px;
  color: #9ca3af;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 8px 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.quick-amount-btn:hover {
  background: #171a21;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(229, 62, 62, 0.2);
  transform: translateY(-2px);
}

.time-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.time-btn {
  background: #111214;
  border: 1px solid var(--casino-border);
  border-radius: 6px;
  color: #9ca3af;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.time-btn:hover,
.time-btn.active {
  background: #171a21;
  color: #ffffff;
  border-color: var(--casino-border);
  box-shadow: 0 4px 12px rgba(229, 62, 62, 0.2);
  transform: translateY(-2px);
}

/* ══════ DIRECTION BUTTONS ══════ */
.direction-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 32px 0;
}

.direction-btn {
  background: var(--casino-card);
  border: 1px solid var(--casino-border);
  border-radius: 8px;
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  padding: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.direction-btn:hover {
  background: #0f1012;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.direction-btn.up {
  border-left: 3px solid var(--neon-green);
}

.direction-btn.up:hover {
  background: rgba(34, 197, 94, 0.04);
  box-shadow: var(--glow-green), 0 6px 20px rgba(0,0,0,0.4);
}

.direction-btn.down {
  border-left: 3px solid var(--neon-red);
}

.direction-btn.down:hover {
  background: rgba(239, 68, 68, 0.04);
  box-shadow: var(--glow-red), 0 6px 20px rgba(0,0,0,0.4);
}

.direction-btn.selected.up {
  background: rgba(34, 197, 94, 0.1);
  border-color: var(--neon-green);
  box-shadow: var(--glow-green), 0 6px 20px rgba(34, 197, 94, 0.3);
  animation: neon-pulse 2s ease-in-out infinite;
}

.direction-btn.selected.down {
  background: rgba(239, 68, 68, 0.1);
  border-color: var(--neon-red);
  box-shadow: var(--glow-red), 0 6px 20px rgba(239, 68, 68, 0.3);
  animation: neon-pulse 2s ease-in-out infinite;
}

.direction-icon {
  font-size: 1.5rem;
  font-weight: 900;
}

.direction-text {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ══════ PREDICTION SUMMARY ══════ */
.prediction-summary {
  background: #000000;
  border: 1px solid var(--casino-border);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
}

.prediction-summary h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #9ca3af;
  margin: 0 0 16px 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
}

.summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.summary-item {
  text-align: center;
}

.summary-label {
  font-size: 0.8rem;
  color: #6b7280;
  font-weight: 500;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.summary-value {
  font-size: 1.1rem;
  color: #ffffff;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
}

.summary-value.up { 
  color: var(--neon-green); 
  text-shadow: 0 0 10px rgba(34, 197, 94, 0.6);
}
.summary-value.down { 
  color: var(--neon-red); 
  text-shadow: 0 0 10px rgba(239, 68, 68, 0.6);
}
.summary-value.payout { 
  color: var(--neon-blue); 
  text-shadow: 0 0 10px rgba(229, 62, 62, 0.6);
}

/* ══════ PLACE BET BUTTON ══════ */
.place-bet-btn {
  width: 100%;
  background: var(--neon-blue);
  border: none;
  border-radius: 8px;
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 18px;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 6px 20px rgba(229, 62, 62, 0.4), 0 0 20px rgba(229, 62, 62, 0.2);
  animation: glow-breathe 3s ease-in-out infinite;
}

.place-bet-btn:hover {
  background: #c53030;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(229, 62, 62, 0.5), 0 0 30px rgba(229, 62, 62, 0.3);
}

.place-bet-btn:disabled {
  background: #374151;
  color: #6b7280;
  cursor: not-allowed;
  box-shadow: none;
  animation: none;
}

/* ══════ ACTIVE PREDICTIONS ══════ */
.active-predictions {
  margin-top: 32px;
}

.active-predictions h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 20px 0;
}

.prediction-card {
  background: #000000;
  border: 1px solid var(--casino-border);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 16px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.prediction-card:hover {
  border-color: rgba(255,255,255,0.08);
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
  transform: translateY(-2px);
}

.prediction-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.prediction-symbol {
  font-size: 1rem;
  font-weight: 700;
  color: var(--neon-blue);
}

.prediction-direction {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.prediction-direction.up {
  background: rgba(34, 197, 94, 0.1);
  color: var(--neon-green);
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.3);
}

.prediction-direction.down {
  background: rgba(239, 68, 68, 0.1);
  color: var(--neon-red);
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
}

.prediction-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  font-size: 0.85rem;
}

.prediction-detail {
  text-align: center;
}

.prediction-detail-label {
  color: #6b7280;
  font-weight: 500;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.prediction-detail-value {
  color: #ffffff;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
}

/* ══════ GAME STATS ══════ */
.game-stats {
  background: var(--casino-card);
  border: 1px solid var(--casino-border);
  border-radius: 12px;
  padding: 24px;
  margin-top: 32px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.05);
}

.game-stats h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 20px 0;
  text-align: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.stat-item {
  text-align: center;
  padding: 16px;
  background: #000000;
  border: 1px solid var(--casino-border);
  border-radius: 8px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
}

.stat-label {
  font-size: 0.8rem;
  color: #6b7280;
  font-weight: 500;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-value {
  font-size: 1.5rem;
  color: #ffffff;
  font-weight: 800;
  font-family: 'Inter', sans-serif;
  text-shadow: 0 0 10px rgba(229, 62, 62, 0.5);
}

.stat-value.positive { 
  color: var(--neon-green); 
  text-shadow: 0 0 10px rgba(34, 197, 94, 0.6);
}
.stat-value.negative { 
  color: var(--neon-red); 
  text-shadow: 0 0 10px rgba(239, 68, 68, 0.6);
}

/* ══════ RESPONSIVE DESIGN ══════ */
@media (max-width: 1200px) {
  .predict-main {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .betting-panel {
    max-width: 600px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  #predict-container {
    padding: 20px 16px;
  }
  
  .predict-header {
    padding: 24px 20px;
  }
  
  .predict-header h1 {
    font-size: 2rem;
  }
  
  .chart-section,
  .betting-panel {
    padding: 24px 20px;
  }
  
  .symbol-selector {
    flex-wrap: wrap;
    gap: 6px;
  }
  
  .symbol-btn {
    padding: 10px 16px;
    font-size: 0.85rem;
  }
  
  .chart-container {
    height: 300px;
  }
  
  .direction-buttons {
    gap: 12px;
  }
  
  .direction-btn {
    padding: 16px;
    font-size: 0.9rem;
  }
  
  .quick-amounts {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .time-buttons {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .predict-header h1 {
    font-size: 1.8rem;
  }
  
  .betting-panel,
  .chart-section {
    padding: 20px 16px;
  }
  
  .direction-buttons {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .summary-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .prediction-details {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}
/* ── Nado Typography Color Hierarchy ── */
#predict-container h2,
#predict-container h3,
.predict-header h2 {
  color: #e53e3e !important;
  font-family: 'Space Grotesk', sans-serif !important;
  text-shadow: 0 0 10px rgba(229, 62, 62, 0.25) !important;
}

#predict-container .section-title,
#predict-container .pool-title {
  color: #9a8a8a !important;
}

#predict-container .bet-amount label {
  color: #7a6b6b !important;
}

.prediction-card h4 {
  color: #ff6b6b !important;
}
