/* Simple Timeline for History Content Only */

.simple-timeline {
  margin: 1.5rem 0;
  border-left: 2px solid #e5e7eb;
  padding-left: 1rem;
}

.timeline-event {
  margin-bottom: 1rem;
  padding: 0.75rem;
  background: #f9fafb;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  position: relative;
}

.timeline-event::before {
  content: '';
  position: absolute;
  left: -1.25rem;
  top: 1rem;
  width: 8px;
  height: 8px;
  background: #3b82f6;
  border-radius: 50%;
  border: 2px solid white;
}

.timeline-event strong {
  color: #3b82f6;
  font-weight: 600;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .simple-timeline {
    padding-left: 0.75rem;
    margin: 1rem 0;
    border-left: 2px solid #cbd5e1;
  }
  
  .timeline-event {
    margin-bottom: 0.75rem;
    padding: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
  }
  
  .timeline-event::before {
    left: -1rem;
    width: 6px;
    height: 6px;
    top: 0.75rem;
  }
  
  .timeline-event strong {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
  }
}

/* Original Mindmap Styles */
.mindmap-container {
  position: relative;
  width: 100%;
  height: 400px;
  margin: 1rem 0;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
}

.mindmap-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.mindmap-nodes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.mindmap-node {
  position: absolute;
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition: all 0.3s ease;
}

.node-content {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
  padding: 0.75rem 1rem;
  border-radius: 20px;
  text-align: center;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  min-width: 100px;
  max-width: 140px;
}

.central-content {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  font-size: 0.9rem;
  padding: 1rem 1.25rem;
}

.branch-content {
  background: linear-gradient(135deg, #10b981, #059669);
  font-size: 0.8rem;
  padding: 0.6rem 0.8rem;
}

.node-icon {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
  display: block;
}

.node-text {
  font-size: 0.75rem;
  line-height: 1.2;
  font-weight: 600;
}

.mindmap-svg {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  margin: 0 auto;
}

/* Ensure proper SVG scaling */
.mindmap-container svg[viewBox] {
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  min-height: 300px;
}

/* Basic mobile adjustments */
@media (max-width: 768px) {
  .mindmap-container {
    height: 300px;
    margin: 0.75rem 0;
  }

  .node-content {
    padding: 0.6rem 0.8rem;
    font-size: 0.8rem;
  }

  .central-content {
    padding: 0.8rem 1rem;
  }

  .branch-content {
    padding: 0.5rem 0.7rem;
    font-size: 0.75rem;
  }

  .node-text {
    font-size: 0.7rem;
  }
}

/* Additional themed sections mobile improvements */
@media (max-width: 640px) {
  .themed-section,
  .summary-mindmap,
  .summary-timeline,
  .summary-process {
    margin: 1rem 0;
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.875rem;
  }
  
  .themed-section h2,
  .themed-section h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
  }
  
  /* Themed section improvements */
  .themed-section {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    clear: both;
    width: 100%;
    margin: 1rem 0;
  }
  
  .themed-summary {
    padding: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    border-radius: 8px 8px 0 0;
  }
  
  .themed-content {
    padding: 0.75rem;
  }
  
  /* Prevent any floating issues on mobile */
  .themed-section::after,
  .mindmap-container::after {
    content: "";
    display: table;
    clear: both;
  }
  
  /* Mobile typography improvements */
  .themed-section h1,
  .themed-section h2,
  .themed-section h3 {
    line-height: 1.3;
    margin-bottom: 0.75rem;
  }
}