/* ========================================
   BotCamp Training Notebook - Components
   ======================================== */

/* Card Box */
.card-box {
  background: var(--bg-card);
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.card-box:hover {
  box-shadow: 0 6px 12px -1px rgba(0, 0, 0, 0.08);
}

/* Highlight Box - Base */
.highlight-box {
  background-color: #f5f3ff; /* Very light violet */
  border-right: 4px solid #8b5cf6;
  padding: 15px 20px;
  border-radius: 4px;
  margin: 20px 0;
}

/* Highlight Box - Variants */
.highlight-box.yellow,
.highlight-box--yellow {
  background-color: #fef3c7;
  border-right-color: #f59e0b;
}

.highlight-box.green,
.highlight-box--green {
  background-color: #d1fae5;
  border-right-color: #10b981;
}

.highlight-box.red,
.highlight-box--red {
  background-color: #fee2e2;
  border-right-color: #ef4444;
}

.highlight-box.blue,
.highlight-box--blue {
  background-color: #dbeafe;
  border-right-color: #3b82f6;
}

.highlight-box.pink,
.highlight-box--pink {
  background-color: #fff1f2;
  border-right-color: #e11d48;
}

/* Card Box - Color Variants */
.card-box.green,
.card-box--green {
  background: linear-gradient(to bottom, #f0fdf4, #ffffff);
  border-right: 3px solid #10b981;
}

.card-box.blue,
.card-box--blue {
  background: linear-gradient(to bottom, #eff6ff, #ffffff);
  border-right: 3px solid #3b82f6;
}

.card-box.purple,
.card-box--purple {
  background: linear-gradient(to bottom, #faf5ff, #ffffff);
  border-right: 3px solid #8b5cf6;
}

.card-box.sky,
.card-box--sky {
  background: linear-gradient(to bottom, #f0f9ff, #ffffff);
  border-right: 3px solid #0284c7;
}

.card-box.violet,
.card-box--violet {
  background: linear-gradient(to left, #f5f3ff, white);
  border-right: 4px solid var(--primary-color);
}

/* Semantic Section Classes */
.section-objectives {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(139, 92, 246, 0.05) 100%);
  border-right: 4px solid var(--primary-color);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 25px;
}

.section-objectives h2 {
  margin-top: 0;
  border: none;
  color: #4338ca;
}

.section-important {
  background-color: #fff1f2;
  border-right: 4px solid #e11d48;
  padding: 15px 20px;
  border-radius: 4px;
  margin: 20px 0;
}

.section-summary {
  background: linear-gradient(to left, #f5f3ff, white);
  border-right: 4px solid var(--primary-color);
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0;
}

.section-homework {
  background: linear-gradient(to bottom, #eff6ff, #ffffff);
  border-right: 4px solid #3b82f6;
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0;
}

/* Concept Item */
.concept-item {
  margin-bottom: 20px;
  border-bottom: 1px dashed #cbd5e1;
  padding-bottom: 15px;
}

.concept-item:last-child {
  border-bottom: none;
}

/* Q&A Container */
.qa-container {
  background-color: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 25px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.qa-question {
  font-weight: bold;
  color: #4338ca;
  margin-bottom: 8px;
  display: block;
}

.qa-answer {
  color: #475569;
  padding-right: 25px;
  border-right: 2px solid #e0e7ff;
}

/* Table Container */
.table-container {
  overflow-x: auto;
  margin: 20px 0;
}

.table-container table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border-radius: 8px;
  overflow: hidden;
}

.table-container th,
.table-container td {
  padding: 12px 16px;
  text-align: right;
  border-bottom: 1px solid #e2e8f0;
}

.table-container th {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: white;
  font-weight: 600;
}

.table-container tr:hover {
  background-color: #f8fafc;
}

/* Debug Step */
.debug-step {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
  border-radius: 8px;
  padding: 15px 20px;
  margin: 15px 0;
  border-right: 3px solid var(--primary-color);
}

.debug-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--accent-gradient);
  color: white;
  border-radius: 50%;
  font-weight: bold;
  font-size: 0.9rem;
  margin-left: 10px;
}

/* Code Block */
.code-block {
  background: #1e293b;
  color: #e2e8f0;
  padding: 16px 20px;
  border-radius: 8px;
  font-family: 'Fira Code', 'Monaco', monospace;
  font-size: 0.9rem;
  overflow-x: auto;
  direction: ltr;
  text-align: left;
}

/* Override inline code styles inside code blocks */
.code-block code,
.code-block pre,
.code-block pre code {
  background: transparent;
  color: #e2e8f0;
  padding: 0;
  border-radius: 0;
  font-size: inherit;
  font-family: inherit;
}

/* Tip Box */
.tip-box {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
  border-right: 4px solid #10b981;
  padding: 15px 20px;
  border-radius: 4px;
  margin: 20px 0;
}

.tip-box::before {
  content: '💡';
  margin-left: 8px;
}

/* Warning Box */
.warning-box {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(239, 68, 68, 0.05) 100%);
  border-right: 4px solid #ef4444;
  padding: 15px 20px;
  border-radius: 4px;
  margin: 20px 0;
}

/* Step Indicator */
.step-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 15px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  background: var(--accent-gradient);
  color: white;
  border-radius: 50%;
  font-weight: bold;
}

.step-title {
  font-weight: 600;
  color: var(--dark-text);
}

/* Lesson Header */
.lesson-header {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #e2e8f0;
}

.lesson-number {
  display: inline-block;
  background: var(--accent-gradient);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 10px;
}


/* AI Content Disclaimer */
.ai-disclaimer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.06) 0%, rgba(168, 85, 247, 0.04) 100%);
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--light-text);
}

.ai-disclaimer-icon {
  font-size: 1rem;
  flex-shrink: 0;
}

.ai-disclaimer-text {
  line-height: 1.4;
}

.ai-disclaimer-text a {
  color: var(--primary-color);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ai-disclaimer-text a:hover {
  color: var(--secondary-color);
}
