/* General */
body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(to bottom right, #0f172a, #1e293b, #0f172a);
  color: #eee;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Header */
.header {
  border-bottom: 1px solid #334155;
  backdrop-filter: blur(10px);
  padding-bottom: 20px;
  margin-bottom: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo h1 {
  font-size: 2rem;
  background: linear-gradient(to right, #60a5fa, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0;
}

.logo p {
  font-size: 0.9rem;
  color: #94a3b8;
  margin: 0;
}

/* Mode Selector */
.mode-selector {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.mode-selector button {
  padding: 10px 20px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  background: #334155;
  color: #94a3b8;
  font-weight: bold;
  transition: all 0.3s ease;
}

.mode-selector button.active {
  background: linear-gradient(to right, #2563eb, #7c3aed);
  color: #fff;
}

/* Coin Selection */
.coin-selection {
  background: rgba(51,65,85,0.5);
  backdrop-filter: blur(10px);
  padding: 20px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.coin-selection h2 {
  margin-top: 0;
}

.coin-search {
  width: 100%;
  padding: 10px;
  border-radius: 12px;
  border: 2px solid #475569;
  margin-bottom: 10px;
  background: rgba(100,116,139,0.2);
  color: #fff;
  font-weight: bold;
}

.coin-search::placeholder {
  color: #94a3b8;
}

.coins {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.coins button {
  padding: 10px;
  border-radius: 12px;
  border: 2px solid #475569;
  background: rgba(100,116,139,0.3);
  color: #fff;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.2s ease;
}

.coins button.selected {
  border-color: #3b82f6;
  background: rgba(59,130,246,0.2);
}

#submitBtn {
  margin-top: 20px;
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(to right, #2563eb, #7c3aed);
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

#submitBtn:hover {
  box-shadow: 0 0 15px rgba(59,130,246,0.5);
}

.error {
  color: #f87171;
  margin-top: 10px;
}

/* Results */
#results > div {
  background: rgba(51,65,85,0.5);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 20px;
}

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.result-header h3 {
  margin: 0;
  font-size: 1.5rem;
}

.sentiment {
  padding: 5px 10px;
  border-radius: 12px;
  font-weight: bold;
  margin-top: 5px;
}

.sentiment.bullish {
  color: #4ade80;
  background: rgba(74,222,128,0.2);
}

.sentiment.bearish {
  color: #f87171;
  background: rgba(248,113,113,0.2);
}

.sentiment.neutral {
  color: #facc15;
  background: rgba(250,204,21,0.2);
}

.key-factors, .insights, .reasons {
  margin-top: 15px;
}

.key-factors div, .insights div, .reasons div {
  background: rgba(100,116,139,0.3);
  border-radius: 12px;
  padding: 10px;
  margin-bottom: 10px;
  word-break: break-word;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .coins {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  }
  .result-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}
