/* Help Button */
.help-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #58a2ec;
  color: white;
  border: none;
  cursor: pointer;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  z-index: 1000;
}

.help-btn:hover {
  background-color: #4a90d9;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.help-btn:active {
  transform: scale(0.95);
}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Modal Content */
.modal-content {
  background: white;
  border-radius: 12px;
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  animation: slideUp 0.3s ease;
}

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

/* Modal Header */
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 30px;
  border-bottom: 1px solid #e0e0e0;
}

.modal-header h2 {
  margin: 0;
  font-size: 24px;
  color: #333;
  font-weight: 600;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #999;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background-color: #f5f5f5;
  color: #333;
}

/* Modal Tabs */
.modal-tabs {
  display: flex;
  gap: 8px;
  padding: 20px 30px 0;
  border-bottom: 2px solid #e0e0e0;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.tab-btn {
  background: none;
  border: none;
  padding: 12px 20px;
  font-size: 17px;
  color: #666;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  transition: all 0.2s ease;
  font-weight: 500;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
}

.tab-btn:hover {
  color: #333;
  background-color: #f5f5f5;
  border-radius: 6px 6px 0 0;
}

.tab-btn.active {
  color: #58a2ec;
  border-bottom-color: #58a2ec;
  font-weight: 600;
}

/* Modal Body */
.modal-body {
  padding: 30px;
  overflow-y: auto;
  flex: 1;
  min-height: 200px;
}

/* Loading Spinner */
.loading-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
  color: #58a2ec;
  font-size: 16px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
}

.loading-spinner::before {
  content: '';
  width: 24px;
  height: 24px;
  margin-right: 12px;
  border: 3px solid #e0e0e0;
  border-top-color: #58a2ec;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Help Content Styles */
.help-content {
  color: #333;
  line-height: 1.6;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  font-size: 15px !important;
}

.help-content h4 {
  color: #333;
  font-size: 22px !important;
  margin: 0 0 16px 0;
  font-weight: 600;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
}

.help-content h5 {
  color: #444;
  font-size: 17px !important;
  font-weight: 600;
  margin: 0 0 12px 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
}

.help-content p {
  margin: 0 0 16px 0;
  color: #555;
}

.help-content ul {
  margin: 0 0 16px 0;
  padding-left: 24px;
}

.help-content ol {
  margin: 0 0 16px 0;
  padding-left: 24px;
}

.help-content li {
  margin-bottom: 8px;
  color: #555;
}

.help-content li ul,
.help-content li ol {
  margin-top: 8px;
  margin-bottom: 8px;
}

.help-content a {
  color: #58a2ec;
  text-decoration: none;
  font-weight: 500;
}

.help-content a:hover {
  text-decoration: underline;
}

/* Alert Boxes */
.help-alert {
  background-color: #e8f4fd;
  border-left: 4px solid #58a2ec;
  padding: 16px 20px;
  border-radius: 4px;
  margin: 16px 0;
}

.help-alert p {
  margin: 0 0 12px 0;
}

.help-alert p:last-child {
  margin-bottom: 0;
}

.help-alert ul {
  margin: 8px 0 0 0;
}

.help-note {
  background-color: #fff8e1;
  border-left: 4px solid #ffc107;
  padding: 16px 20px;
  border-radius: 4px;
  margin: 16px 0;
}

.help-note p {
  margin: 0 0 12px 0;
}

.help-note p:last-child {
  margin-bottom: 0;
}

.help-note ul {
  margin: 8px 0 0 0;
}

/* Author Social Links */
.author-social-links {
  display: flex;
  gap: 16px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background-color: #f5f5f5;
  border-radius: 8px;
  color: #333;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: all 0.2s ease;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
}

.social-link:hover {
  background-color: #58a2ec;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(88, 162, 236, 0.3);
}

.social-link i {
  font-size: 20px;
}

.social-link span {
  font-weight: 500;
}

/* Utility Classes */
.mt-4 {
  margin-top: 24px;
}

.mb-2 {
  margin-bottom: 12px;
}

/* Responsive */
@media (max-width: 768px) {
  .modal-overlay {
    padding: 0;
    align-items: stretch;
  }

  .modal-content {
    max-width: 100%;
    max-height: 100vh;
    height: 100vh;
    border-radius: 0;
    display: flex;
    flex-direction: column;
  }

  .modal-header {
    padding: 20px;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
  }

  .modal-header h2 {
    font-size: 18px;
    line-height: 1.3;
    max-width: calc(100% - 40px);
  }

  .modal-tabs {
    padding: 12px 20px 0;
    gap: 4px;
    flex-shrink: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .tab-btn {
    padding: 10px 14px;
    font-size: 13px;
    flex-shrink: 0;
  }

  .modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
    -webkit-overflow-scrolling: touch;
  }

  .help-btn {
    width: 44px;
    height: 44px;
    font-size: 20px;
    bottom: 16px;
    right: 16px;
  }
}

@media (max-width: 480px) {
  .modal-tabs {
    gap: 0;
  }

  .tab-btn {
    padding: 10px 12px;
    font-size: 12px;
  }
}
