/* ============================================ */
/* HELP MODAL                                   */
/* ============================================ */

.help-modal {
  display: none;
  position: fixed;
  z-index: 20000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  animation: fadeIn 0.3s ease;
}

.help-modal-content {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  margin: 5% auto;
  padding: 40px;
  border: 2px solid #667eea;
  border-radius: 16px;
  width: 90%;
  max-width: 700px;
  color: white;
  box-shadow: 0 20px 60px rgba(102, 126, 234, 0.4);
  animation: slideDown 0.4s ease;
  max-height: 85vh;
  overflow-y: auto;
}

.help-modal-close {
  color: #aaa;
  float: right;
  font-size: 32px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  line-height: 1;
}

.help-modal-close:hover,
.help-modal-close:focus {
  color: #667eea;
  transform: rotate(90deg);
}

.help-modal-content h2 {
  margin-top: 0;
  margin-bottom: 30px;
  font-size: 32px;
  color: #667eea;
  text-align: center;
  border-bottom: 2px solid rgba(102, 126, 234, 0.3);
  padding-bottom: 15px;
}

.help-section {
  margin: 25px 0;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border-left: 4px solid #667eea;
  transition: all 0.3s ease;
}

.help-section:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(5px);
}

.help-section h3 {
  margin-top: 0;
  margin-bottom: 15px;
  color: #667eea;
  font-size: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.help-section p {
  margin: 12px 0;
  font-size: 16px;
  line-height: 1.6;
}

.help-section p strong {
  color: #a0aec0;
  min-width: 120px;
  display: inline-block;
}

.help-section code {
  background: rgba(0, 0, 0, 0.4);
  padding: 4px 12px;
  border-radius: 6px;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  color: #ffd700;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.help-section span {
  color: #ffffff;
  font-weight: 500;
}

/* Кнопки */
.help-btn,
.help-btn-danger {
  margin: 8px 5px;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.help-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.help-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.help-btn:active {
  transform: translateY(0);
}

.help-btn-danger {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
}

.help-btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 87, 108, 0.4);
}

/* Анімації */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scrollbar для modal content */
.help-modal-content::-webkit-scrollbar {
  width: 8px;
}

.help-modal-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

.help-modal-content::-webkit-scrollbar-thumb {
  background: #667eea;
  border-radius: 10px;
}

.help-modal-content::-webkit-scrollbar-thumb:hover {
  background: #5568d3;
}

/* Responsive */
@media (max-width: 768px) {
  .help-modal-content {
    width: 95%;
    padding: 25px;
    margin: 10% auto;
  }
  
  .help-modal-content h2 {
    font-size: 24px;
  }
  
  .help-section {
    padding: 15px;
  }
  
  .help-btn,
  .help-btn-danger {
    width: 100%;
    margin: 5px 0;
  }
}