/*
 * File: help-system.css
 * Version: mmdb-0.8.21-claude
 * Munich Musicians DB - Help System Styles
 * Floating help button and modal dialog
 */

/* Help Button - Fixed bottom right */
.imm-help-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #0073aa;
  color: white;
  border: none;
  border-radius: 50px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
  transition: all 0.3s ease;
  z-index: 9998;
  display: flex;
  align-items: center;
  gap: 8px;
}

.imm-help-button:hover {
  background: #005a87;
  box-shadow: 0 6px 16px rgba(0, 115, 170, 0.4);
  transform: translateY(-2px);
}

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

.imm-help-button::before {
  content: "?";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: white;
  color: #0073aa;
  border-radius: 50%;
  font-weight: bold;
  font-size: 14px;
}

/* Help Modal Overlay */
.imm-help-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

.imm-help-overlay.active {
  display: flex;
}

/* Help Modal Dialog */
.imm-help-dialog {
  background: white;
  border-radius: 12px;
  max-width: 700px;
  width: 100%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  animation: slideUp 0.3s ease;
}

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

.imm-help-header h2 {
  margin: 0;
  font-size: 24px;
  color: #1a1a1a;
  display: flex;
  align-items: center;
  gap: 12px;
}

.imm-help-header h2::before {
  content: "?";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #0073aa;
  color: white;
  border-radius: 50%;
  font-weight: bold;
  font-size: 18px;
}

.imm-help-close {
  background: none;
  border: none;
  font-size: 28px;
  color: #666;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.imm-help-close:hover {
  background: #f0f0f0;
  color: #333;
}

/* Help Modal Content */
.imm-help-content {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.imm-help-content h3 {
  font-size: 18px;
  color: #1a1a1a;
  margin: 24px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #0073aa;
}

.imm-help-content h3:first-child {
  margin-top: 0;
}

.imm-help-content p {
  margin: 12px 0;
  line-height: 1.6;
  color: #444;
}

.imm-help-content ul,
.imm-help-content ol {
  margin: 12px 0 12px 24px;
  line-height: 1.8;
  color: #444;
}

.imm-help-content li {
  margin: 8px 0;
}

.imm-help-content strong {
  color: #1a1a1a;
  font-weight: 600;
}

.imm-help-content code {
  background: #f5f5f5;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.9em;
  color: #d63384;
}

/* Help Section with Icon */
.help-section {
  margin: 20px 0;
  padding: 16px;
  background: #f8f9fa;
  border-left: 4px solid #0073aa;
  border-radius: 4px;
}

.help-section:first-child {
  margin-top: 0;
}

/* Feature List */
.help-features {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 16px;
  margin: 16px 0;
}

.help-features ul {
  margin: 0;
  padding-left: 20px;
}

.help-features li {
  padding: 4px 0;
}

/* Tip Box */
.help-tip {
  background: #fff9e6;
  border-left: 4px solid #ffc107;
  padding: 12px 16px;
  margin: 16px 0;
  border-radius: 4px;
}

.help-tip::before {
  content: "💡 Tip: ";
  font-weight: bold;
  color: #f57c00;
}

/* Warning Box */
.help-warning {
  background: #ffebee;
  border-left: 4px solid #f44336;
  padding: 12px 16px;
  margin: 16px 0;
  border-radius: 4px;
}

.help-warning::before {
  content: var(--help-warning-label, "⚠️ Important: ");
  font-weight: bold;
  color: #c62828;
}

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

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

/* Responsive Design */
@media (max-width: 768px) {
  .imm-help-button {
    bottom: 15px;
    right: 15px;
    padding: 10px 20px;
    font-size: 13px;
  }

  .imm-help-dialog {
    max-height: 90vh;
    margin: 10px;
  }

  .imm-help-header {
    padding: 16px;
  }

  .imm-help-header h2 {
    font-size: 20px;
  }

  .imm-help-content {
    padding: 16px;
  }

  .imm-help-content h3 {
    font-size: 16px;
  }
}

/* Print Styles */
@media print {
  .imm-help-button {
    display: none;
  }
}
