/**
 * MSiR Callout System - November 2025
 * 8 callout types with colored LEFT borders (NO emoji icons)
 *
 * Design Philosophy: Use brand color accents to create visual distinction
 * without relying on emoji or icon assets.
 */

/* ========================================
   BASE CALLOUT STYLING
   ======================================== */
.callout {
  background: white;
  border-left: 4px solid;
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin: var(--space-2xl) 0;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

.callout:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-lg);
}

.callout-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.callout-header h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

.callout-content {
  line-height: 1.7;
}

.callout-content p:last-child {
  margin-bottom: 0;
}

/* ========================================
   CALLOUT TYPE 1: SCIENCE NOTE
   Use: Technical explanations, definitions
   Color: Scientific Cyan
   ======================================== */
.callout-science {
  border-left-color: var(--scientific-cyan);
}

.callout-science .callout-header h4 {
  color: var(--scientific-cyan);
}

.callout-science .formula-container {
  background: #f8f9fa;
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  margin: var(--space-lg) 0;
  text-align: center;
}

.callout-science .formula {
  font-family: 'Source Code Pro', monospace;
  font-size: 1.25rem;
  color: var(--laboratory-dark);
}

.callout-science .callout-source {
  margin-top: var(--space-md);
  font-size: 0.875rem;
  color: #6c757d;
  font-style: italic;
}

/* ========================================
   CALLOUT TYPE 2: PRO TIP
   Use: Practical advice, best practices
   Color: Flash Green
   ======================================== */
.callout-tip {
  border-left-color: var(--flash-green);
}

.callout-tip .callout-header h4 {
  color: var(--flash-green);
}

.callout-tip .tip-checklist {
  margin-top: var(--space-lg);
}

.callout-tip .tip-checklist h5 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  margin-bottom: var(--space-md);
}

.callout-tip .tip-checklist ul {
  list-style: none;
  padding-left: 0;
}

.callout-tip .tip-checklist li {
  padding-left: var(--space-lg);
  margin-bottom: var(--space-sm);
  position: relative;
}

.callout-tip .tip-checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--flash-green);
  font-weight: bold;
}

/* ========================================
   CALLOUT TYPE 3: WARNING
   Use: Cautions, common mistakes
   Color: Experiment Orange
   ======================================== */
.callout-warning {
  border-left-color: var(--experiment-orange);
}

.callout-warning .callout-header h4 {
  color: var(--experiment-orange);
}

/* ========================================
   CALLOUT TYPE 4: DEEP DIVE
   Use: Advanced concepts, optional reading
   Color: Mad Magenta
   ======================================== */
.callout-deep-dive {
  border-left-color: var(--mad-magenta);
}

.callout-deep-dive .callout-header h4 {
  color: var(--mad-magenta);
}

.callout-deep-dive .complexity-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(255, 62, 138, 0.1);
  color: var(--mad-magenta);
  border: 1px solid var(--mad-magenta);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.callout-deep-dive .technical-section,
.callout-deep-dive .reference-section {
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid #e9ecef;
}

.callout-deep-dive h5 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  margin-bottom: var(--space-md);
}

.callout-deep-dive .reference-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.callout-deep-dive .reference-link {
  color: var(--scientific-cyan);
  text-decoration: none;
  font-weight: 600;
}

.callout-deep-dive .reference-link:hover {
  color: var(--mad-magenta);
  text-decoration: underline;
}

/* ========================================
   CALLOUT TYPE 5: RESEARCH INSIGHT
   Use: Academic references, studies
   Color: Laboratory Dark
   ======================================== */
.callout-research {
  border-left-color: var(--laboratory-dark);
}

.callout-research .callout-header h4 {
  color: var(--laboratory-dark);
}

/* ========================================
   CALLOUT TYPE 6: INDUSTRY INSIGHT
   Use: Professional practices, real-world applications
   Color: Scientific Cyan
   ======================================== */
.callout-industry {
  border-left-color: var(--scientific-cyan);
}

.callout-industry .callout-header h4 {
  color: var(--scientific-cyan);
}

.callout-industry .industry-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(0, 169, 224, 0.1);
  color: var(--scientific-cyan);
  border: 1px solid var(--scientific-cyan);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.callout-industry .case-study-mini {
  margin-top: var(--space-lg);
  padding: var(--space-lg);
  background: #f8f9fa;
  border-radius: var(--radius-md);
}

.callout-industry .case-study-mini h5 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  margin-bottom: var(--space-md);
}

.callout-industry .case-company {
  font-weight: 700;
  color: var(--laboratory-dark);
  margin-bottom: var(--space-sm);
}

.callout-industry .case-description {
  margin-bottom: var(--space-md);
}

.callout-industry .case-result {
  display: flex;
  gap: var(--space-sm);
}

.callout-industry .result-label {
  font-weight: 700;
  color: var(--laboratory-dark);
}

.callout-industry .result-value {
  color: var(--flash-green);
  font-weight: 600;
}

/* ========================================
   CALLOUT TYPE 7: QUICK REFERENCE
   Use: Fast facts, formulas, cheat sheets
   Color: Flash Green
   ======================================== */
.callout-reference {
  border-left-color: var(--flash-green);
}

.callout-reference .callout-header h4 {
  color: var(--flash-green);
}

/* ========================================
   CALLOUT TYPE 8: SUCCESS NOTE / KEY TAKEAWAY
   Use: Key takeaways, achievements
   Color: Flash Green
   ======================================== */
.callout-success,
.callout-takeaway {
  border-left-color: var(--flash-green);
}

.callout-success .callout-header h4,
.callout-takeaway .callout-header h4 {
  color: var(--flash-green);
}

.callout-takeaway .takeaway-content {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.7;
  color: var(--laboratory-dark);
  margin-bottom: var(--space-lg);
}

.callout-takeaway .action-section {
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid #e9ecef;
}

.callout-takeaway .action-section h5 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  margin-bottom: var(--space-md);
}

.callout-takeaway .action-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.callout-takeaway .action-item {
  display: flex;
  align-items: start;
  gap: var(--space-sm);
}

.callout-takeaway .action-checkbox {
  margin-top: 0.25rem;
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--flash-green);
}

.callout-takeaway .action-label {
  flex: 1;
  cursor: pointer;
}

/* ========================================
   SPECIAL CALLOUT: FORMULA BREAKDOWN
   Use: Mathematical formulas with explanations
   Color: Laboratory Dark
   ======================================== */
.callout-formula {
  border-left-color: var(--laboratory-dark);
}

.callout-formula .callout-header h4 {
  color: var(--laboratory-dark);
}

.callout-formula .main-formula {
  background: var(--laboratory-dark);
  color: white;
  padding: var(--space-xl);
  border-radius: var(--radius-md);
  margin: var(--space-lg) 0;
  text-align: center;
}

.callout-formula .formula-display {
  font-family: 'Source Code Pro', monospace;
  font-size: 1.5rem;
  font-weight: 700;
}

.callout-formula .formula-explanation {
  margin-top: var(--space-lg);
}

.callout-formula .formula-explanation h5 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  margin-bottom: var(--space-md);
}

.callout-formula .variable-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.callout-formula .variable-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: var(--space-md);
  align-items: baseline;
}

.callout-formula .variable-symbol {
  font-family: 'Source Code Pro', monospace;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--laboratory-dark);
}

.callout-formula .variable-description {
  color: #6c757d;
}

.callout-formula .formula-example {
  margin-top: var(--space-lg);
  padding: var(--space-lg);
  background: #f8f9fa;
  border-radius: var(--radius-md);
}

.callout-formula .formula-example h5 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  margin-bottom: var(--space-md);
}

.callout-formula .example-content {
  font-family: 'Source Code Pro', monospace;
}

.callout-formula .example-values,
.callout-formula .example-calculation {
  margin-bottom: var(--space-sm);
}

.callout-formula .example-result {
  font-weight: 700;
  color: var(--flash-green);
}

/* ========================================
   SPECIAL CALLOUT: INTERACTIVE CHALLENGE
   Use: End-of-article challenges and missions
   Color: Mad Magenta
   ======================================== */
.callout-challenge {
  border-left-color: var(--mad-magenta);
}

.callout-challenge .callout-header h4 {
  color: var(--mad-magenta);
}

.callout-challenge .difficulty-indicator {
  display: flex;
  gap: 0.25rem;
}

.callout-challenge .difficulty-dot {
  width: 10px;
  height: 10px;
  background: rgba(255, 62, 138, 0.2);
  border-radius: 50%;
}

.callout-challenge .difficulty-dot.active {
  background: var(--mad-magenta);
}

.callout-challenge .challenge-description {
  font-size: 1.125rem;
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}

.callout-challenge .challenge-objectives {
  margin: var(--space-lg) 0;
}

.callout-challenge .challenge-objectives h5 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  margin-bottom: var(--space-md);
}

.callout-challenge .challenge-objectives ol {
  padding-left: var(--space-xl);
}

.callout-challenge .challenge-objectives li {
  margin-bottom: var(--space-sm);
}

.callout-challenge .challenge-action {
  text-align: center;
  margin-top: var(--space-xl);
}

.callout-challenge .challenge-btn {
  display: inline-block;
  padding: var(--space-md) var(--space-xl);
  background: var(--mad-magenta);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1.125rem;
  cursor: pointer;
  transition: all var(--transition-base);
}

.callout-challenge .challenge-btn:hover {
  background: var(--scientific-cyan);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 768px) {
  .callout {
    padding: var(--space-lg);
  }

  .callout-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .callout-formula .variable-item {
    grid-template-columns: 1fr;
    gap: var(--space-xs);
  }
}
