/**
 * VVP Help System - Professional, clean styling
 * Best-in-class UX
 */

/* Help Dropdown Container */
#vvp-help-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 420px;
  max-height: 600px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
  z-index: 10000;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Header */
.help-dropdown-header {
  padding: 20px;
  border-bottom: 1px solid #e5e7eb;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

.help-dropdown-header h3 {
  margin: 0 0 12px 0;
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
}

#help-search {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.2s;
  background: #ffffff;
}

#help-search:focus {
  outline: none;
  border-color: #1a4d3e;
  box-shadow: 0 0 0 3px rgba(26, 77, 62, 0.1);
}

#help-search::placeholder {
  color: #94a3b8;
}

/* Content Area */
.help-dropdown-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  max-height: 450px;
}

.help-dropdown-content::-webkit-scrollbar {
  width: 6px;
}

.help-dropdown-content::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 3px;
}

.help-dropdown-content::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

.help-dropdown-content::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Help Sections */
.help-section {
  margin-bottom: 24px;
}

.help-section:last-child {
  margin-bottom: 0;
}

.help-section h4 {
  margin: 0 0 12px 0;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #64748b;
}

/* Quick Tips List */
#help-tips-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

#help-tips-list li {
  padding: 10px 12px;
  margin-bottom: 6px;
  background: #f8fafc;
  border-left: 3px solid #1a4d3e;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.5;
  color: #334155;
  transition: all 0.2s;
}

#help-tips-list li:hover {
  background: #f0fdf4;
  border-left-color: #0f3328;
  transform: translateX(2px);
}

/* Common Tasks */
#help-tasks-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.help-task-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #0f172a;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
}

.help-task-item:hover {
  background: #f8fafc;
  border-color: #1a4d3e;
  transform: translateX(4px);
  box-shadow: 0 2px 8px rgba(26, 77, 62, 0.1);
}

.help-task-arrow {
  color: #1a4d3e;
  font-weight: 700;
  font-size: 16px;
  transition: transform 0.2s;
}

.help-task-item:hover .help-task-arrow {
  transform: translateX(4px);
}

/* FAQ Items */
.help-faq-item {
  padding: 14px;
  margin-bottom: 8px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.help-faq-item:hover {
  border-color: #1a4d3e;
  box-shadow: 0 2px 8px rgba(26, 77, 62, 0.08);
}

.help-faq-item.expanded {
  background: #f8fafc;
  border-color: #1a4d3e;
}

.help-faq-category {
  display: inline-block;
  padding: 3px 8px;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.help-faq-question {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 8px;
  line-height: 1.4;
}

.help-faq-answer {
  font-size: 13px;
  line-height: 1.6;
  color: #475569;
  padding-top: 8px;
  border-top: 1px solid #e5e7eb;
}

/* No Results */
.help-no-results {
  text-align: center;
  padding: 40px 20px;
}

.help-no-results p {
  color: #64748b;
  font-size: 14px;
  margin-bottom: 16px;
}

.help-no-results .button {
  display: inline-block;
  padding: 10px 20px;
  background: #f1f5f9;
  color: #334155;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s;
}

.help-no-results .button:hover {
  background: #e2e8f0;
  transform: translateY(-2px);
}

/* Footer */
.help-dropdown-footer {
  padding: 14px 20px;
  border-top: 1px solid #e5e7eb;
  background: #f8fafc;
}

.help-footer-link {
  display: block;
  text-align: center;
  color: #1a4d3e;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

.help-footer-link:hover {
  color: #0f3328;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  #vvp-help-dropdown {
    width: calc(100vw - 32px);
    right: 16px;
    max-height: 70vh;
  }
  
  .help-dropdown-content {
    max-height: calc(70vh - 180px);
  }
}

/* Help Button Badge (for new tips) */
.vvp-topbar-btn.has-new-tips::after {
  content: '';
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  background: #1a4d3e;
  border-radius: 50%;
  border: 2px solid #ffffff;
  animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.8;
  }
}

