/* Lesson Mindmap Component */
/* Compact mindmap visualization for lesson overview */

.lesson-mindmap {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 450px;
  position: relative;
  padding: 3rem 1rem;
  margin-top: 20px;
}

.mindmap-center {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 1.5rem 2.5rem;
  border-radius: 20px;
  text-align: center;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.mindmap-center strong {
  display: block;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.mindmap-node {
  position: absolute;
  background: white;
  border: 3px solid;
  padding: 1rem 1.5rem;
  border-radius: 15px;
  max-width: 180px;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.mindmap-node:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  z-index: 20;
}

.mindmap-node strong {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}

.mindmap-node span {
  display: block;
  color: #64748b;
  font-size: 0.8rem;
  line-height: 1.3;
}

/* Position nodes in circular layout */
.mindmap-node:nth-child(2) {
  top: 5%;
  left: 50%;
  transform: translateX(-50%);
  border-color: #3b82f6;
}
.mindmap-node:nth-child(2) strong {
  color: #3b82f6;
}

.mindmap-node:nth-child(3) {
  top: 25%;
  left: 8%;
  border-color: #8b5cf6;
}
.mindmap-node:nth-child(3) strong {
  color: #8b5cf6;
}

.mindmap-node:nth-child(4) {
  top: 25%;
  right: 8%;
  border-color: #ec4899;
}
.mindmap-node:nth-child(4) strong {
  color: #ec4899;
}

.mindmap-node:nth-child(5) {
  bottom: 25%;
  left: 6%;
  border-color: #f59e0b;
}
.mindmap-node:nth-child(5) strong {
  color: #f59e0b;
}

.mindmap-node:nth-child(6) {
  bottom: 25%;
  right: 6%;
  border-color: #10b981;
}
.mindmap-node:nth-child(6) strong {
  color: #10b981;
}

/* Additional color variations for more nodes */
.mindmap-node:nth-child(7) {
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
  border-color: #14b8a6;
}
.mindmap-node:nth-child(7) strong {
  color: #14b8a6;
}

.mindmap-node:nth-child(8) {
  top: 15%;
  left: 20%;
  border-color: #ef4444;
}
.mindmap-node:nth-child(8) strong {
  color: #ef4444;
}

.mindmap-node:nth-child(9) {
  top: 15%;
  right: 20%;
  border-color: #06b6d4;
}
.mindmap-node:nth-child(9) strong {
  color: #06b6d4;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .lesson-mindmap {
    min-height: 550px;
    padding: 2rem 0.5rem;
  }

  .mindmap-center {
    padding: 1.2rem 2rem;
  }

  .mindmap-center strong {
    font-size: 1.1rem;
  }

  .mindmap-node {
    max-width: 130px;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
  }

  .mindmap-node:nth-child(3) {
    left: 5%;
  }
  .mindmap-node:nth-child(4) {
    right: 5%;
  }
  .mindmap-node:nth-child(5) {
    left: 10%;
  }
  .mindmap-node:nth-child(6) {
    right: 10%;
  }
  .mindmap-node:nth-child(8) {
    left: 15%;
  }
  .mindmap-node:nth-child(9) {
    right: 15%;
  }
}

@media (max-width: 480px) {
  .lesson-mindmap {
    min-height: 600px;
  }

  .mindmap-node {
    max-width: 110px;
    padding: 0.6rem 0.8rem;
  }

  .mindmap-node strong {
    font-size: 0.85rem;
  }

  .mindmap-node span {
    font-size: 0.75rem;
  }
}
