/* COT Positioning Card Styles */

.cot-card {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cot-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cot-header h3 {
  margin: 0;
  color: #fff;
  font-size: 1.3rem;
  font-weight: 600;
}

.cot-dates {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.cot-date {
  color: #888;
  font-size: 0.85rem;
}

.cot-section {
  margin-bottom: 25px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.cot-section h4 {
  margin: 0 0 15px 0;
  color: #3b82f6;
  font-size: 1.1rem;
  font-weight: 600;
}

.cot-pct {
  color: #888;
  font-size: 0.8rem;
  margin-top: 4px;
}

.cot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.cot-metric {
  background: rgba(255, 255, 255, 0.05);
  padding: 15px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.cot-metric label {
  display: block;
  color: #aaa;
  font-size: 0.85rem;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cot-value {
  color: #fff;
  font-size: 1.4rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cot-change {
  font-size: 0.9rem;
  font-weight: 500;
}

.cot-label {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.cot-label-building {
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
}

.cot-label-unwinding {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.cot-label-flat {
  background: rgba(156, 163, 175, 0.2);
  color: #9ca3af;
}

.cot-crowding {
  font-size: 0.85rem;
  font-weight: 500;
}

.cot-regime {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.cot-regime-bullish {
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.4);
}

.cot-regime-bearish {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.cot-regime-neutral {
  background: rgba(156, 163, 175, 0.2);
  color: #9ca3af;
  border: 1px solid rgba(156, 163, 175, 0.4);
}

.cot-interpretation {
  background: rgba(59, 130, 246, 0.1);
  border-left: 3px solid #3b82f6;
  padding: 15px;
  border-radius: 6px;
  margin-top: 20px;
}

.cot-interpretation p {
  margin: 8px 0;
  color: #ddd;
  font-size: 0.95rem;
  line-height: 1.6;
}

.cot-interpretation p:first-child {
  margin-top: 0;
}

.cot-interpretation p:last-child {
  margin-bottom: 0;
}

.cot-error {
  text-align: center;
  padding: 40px;
  color: #ef4444;
}

/* Responsive */
@media (max-width: 768px) {
  .cot-grid {
    grid-template-columns: 1fr;
  }
  
  .cot-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}
