/* Insights Page Styles */
.insights-page {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
}

.page-header {
  text-align: center;
  margin-bottom: 30px;
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: #333;
}

.page-header p {
  color: #666;
  font-size: 1.1rem;
}

/* Tabs */
.insights-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 10px;
}

.tab-btn {
  padding: 12px 24px;
  border: none;
  background: transparent;
  font-size: 1rem;
  font-weight: 600;
  color: #666;
  cursor: pointer;
  border-radius: 8px 8px 0 0;
  transition: all 0.3s ease;
}

.tab-btn:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #333;
}

.tab-btn.active {
  background: #4a90e2;
  color: white;
}

/* Tab Content */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Insight Card */
.insight-card {
  background: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.insight-summary {
  background: #f8f9fa;
  border-left: 4px solid #4a90e2;
  padding: 20px;
  margin-bottom: 30px;
  border-radius: 8px;
}

.insight-summary p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #333;
  margin: 0;
}

.insight-details {
  display: grid;
  gap: 25px;
}

.detail-section h3 {
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e0e0e0;
}

.detail-section p {
  color: #555;
  line-height: 1.6;
  margin-bottom: 8px;
}

/* Emotion Bars */
.emotion-bars {
  display: grid;
  gap: 12px;
}

.emotion-bar-item {
  display: grid;
  grid-template-columns: 120px 1fr 50px;
  align-items: center;
  gap: 12px;
}

.emotion-label {
  font-weight: 600;
  color: #555;
  text-transform: capitalize;
}

.bar-container {
  height: 24px;
  background: #e0e0e0;
  border-radius: 12px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #4a90e2, #357abd);
  border-radius: 12px;
  transition: width 0.5s ease;
}

.emotion-count {
  text-align: right;
  font-weight: 600;
  color: #666;
}

/* Tag List */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-badge {
  background: #e3f2fd;
  color: #1976d2;
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 0.9rem;
  font-weight: 500;
}

/* No Insights */
.no-insights {
  text-align: center;
  padding: 40px 20px;
}

.no-insights p {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 20px;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  background: #4a90e2;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.3s ease;
}

.btn:hover {
  background: #357abd;
}
