/*
 * Brain Insights CSS
 * Second Brain (C1 Lite) styles for SOC sticky block and Profile sidebar
 */

/* ============================================
   SOC Sticky Insight Block
   ============================================ */

.brain-insight-sticky {
  background: linear-gradient(135deg, #f5f0e6, #fff8e7);
  border: 2px solid #d4af37;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  position: relative;
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.15);
  animation: brain-fade-in 0.3s ease-out;
}

@keyframes brain-fade-in {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.brain-insight-sticky .insight-icon {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
}

.brain-insight-sticky .insight-content {
  flex: 1;
  min-width: 0;
}

.brain-insight-sticky .insight-content strong {
  display: block;
  font-size: 14px;
  color: #92400e;
  margin-bottom: 6px;
}

.brain-insight-sticky .insight-content p {
  margin: 0;
  font-size: 14px;
  color: #78350f;
  line-height: 1.5;
}

.brain-insight-sticky .insight-theme {
  font-weight: 600;
  color: #92400e;
}

.brain-insight-sticky .insight-question {
  font-style: italic;
  color: #a16207;
  margin-top: 8px !important;
  padding-top: 8px;
  border-top: 1px dashed #d4af37;
}

.brain-insight-sticky .insight-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.brain-insight-sticky .btn-insight-useful,
.brain-insight-sticky .btn-insight-dismiss {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.brain-insight-sticky .btn-insight-useful {
  background: #FFCC00;
  color: #000;
  border: 2px solid #000;
}

.brain-insight-sticky .btn-insight-useful:hover {
  background: #ffd633;
  transform: translateY(-1px);
}

.brain-insight-sticky .btn-insight-dismiss {
  background: white;
  color: #78350f;
  border: 2px solid #d4af37;
}

.brain-insight-sticky .btn-insight-dismiss:hover {
  background: #fef3c7;
}

.brain-insight-sticky .insight-close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: none;
  border: none;
  font-size: 18px;
  color: #a16207;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.brain-insight-sticky .insight-close:hover {
  background: rgba(161, 98, 7, 0.1);
  color: #78350f;
}

/* ============================================
   Channel Creation Brain Toggle
   ============================================ */

.brain-capture-group {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed #e5e7eb;
}

.brain-toggle-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 500;
  color: #374151;
}

.brain-toggle-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #d4af37;
  cursor: pointer;
}

.brain-toggle-label .brain-icon {
  font-size: 18px;
}

.brain-hint {
  display: block;
  margin-top: 6px;
  margin-left: 26px;
  font-size: 12px;
  color: #6b7280;
}

/* ============================================
   Profile Sidebar Brain Insights
   ============================================ */

.brain-insights-list {
  max-height: 200px;
  overflow-y: auto;
}

.brain-insight-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: #f9fafb;
  border-radius: 8px;
  margin-bottom: 8px;
  transition: background 0.2s ease;
}

.brain-insight-item:hover {
  background: #f3f4f6;
}

.brain-insight-item:last-child {
  margin-bottom: 0;
}

.brain-insight-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  transition: box-shadow 0.2s ease;
}

.brain-insight-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* ============================================
   Empty State
   ============================================ */

.brain-insights-empty {
  text-align: center;
  padding: 16px;
}

.brain-insights-empty p {
  margin: 0;
  color: #9ca3af;
  font-size: 14px;
}

.brain-insights-empty small {
  display: block;
  margin-top: 8px;
  font-size: 12px;
}

/* ============================================
   Brain Intro Box (Full page)
   ============================================ */

.brain-intro {
  background: linear-gradient(135deg, #f5f0e6, #fff8e7);
  border: 2px solid #d4af37;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 1.5rem;
}

.brain-intro h3 {
  margin: 0 0 8px 0;
  color: #92400e;
}

.brain-intro p {
  margin: 0;
  color: #78350f;
  font-size: 14px;
  line-height: 1.5;
}

/* ============================================
   Responsive Adjustments
   ============================================ */

@media (max-width: 768px) {
  .brain-insight-sticky {
    flex-direction: column;
    padding: 14px;
  }

  .brain-insight-sticky .insight-icon {
    font-size: 1.5rem;
  }

  .brain-insight-sticky .insight-actions {
    flex-direction: column;
    width: 100%;
  }

  .brain-insight-sticky .btn-insight-useful,
  .brain-insight-sticky .btn-insight-dismiss {
    width: 100%;
    text-align: center;
  }
}
