/* Help View Styles */

.help-view {
  display: flex;
  height: 100%;
  background: var(--bg-primary);
  overflow: hidden;
}

/* Help Sidebar */
.help-sidebar {
  width: 260px;
  min-width: 260px;
  background: var(--bg-card);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.help-sidebar-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 1rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-color);
}

.help-sidebar-header i {
  color: var(--brand-primary);
}

.help-nav {
  display: flex;
  flex-direction: column;
  padding: 0.5rem;
}

.help-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.15s ease;
  font-size: 0.875rem;
}

.help-nav-item:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.help-nav-item.active {
  background: rgba(var(--brand-primary-rgb), 0.1);
  color: var(--brand-primary);
  font-weight: 500;
}

.help-nav-item i {
  width: 1.25rem;
  text-align: center;
  font-size: 0.875rem;
}

/* Help Content */
.help-content {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem 2rem;
}

.help-search-bar {
  position: relative;
  margin-bottom: 1.5rem;
}

.help-search-bar i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.help-search-bar input {
  width: 100%;
  padding: 0.875rem 1rem 0.875rem 2.75rem;
  font-size: 0.9375rem;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: var(--bg-card);
  color: var(--text-primary);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.help-search-bar input:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(var(--brand-primary-rgb), 0.1);
}

.help-search-bar input::placeholder {
  color: var(--text-muted);
}

/* Help Sections */
.help-section {
  display: none;
}

.help-section.active {
  display: block;
}

.help-section h1 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border-color);
}

.help-section h1 i {
  color: var(--brand-primary);
}

/* Help Cards */
.help-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}

.help-card h2 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.help-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

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

.help-card ul,
.help-card ol {
  margin: 0.75rem 0;
  padding-left: 1.5rem;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.help-card li {
  margin-bottom: 0.375rem;
}

.help-card strong {
  color: var(--text-primary);
}

/* Role Table */
.role-table {
  margin-top: 1rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
}

.role-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  border-bottom: 1px solid var(--border-color);
}

.role-row:last-child {
  border-bottom: none;
}

.role-row.role-header {
  background: var(--bg-hover);
  font-weight: 600;
  color: var(--text-primary);
}

.role-row span {
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.role-row span:first-child {
  justify-content: flex-start;
}

.role-row .fa-check {
  color: #22c55e;
}

.role-row .fa-times {
  color: #ef4444;
}

/* Status Badges (inline) */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 9999px;
  margin-right: 0.25rem;
}

.status-badge.status-draft {
  background: rgba(234, 179, 8, 0.15);
  color: #ca8a04;
}

.status-badge.status-published {
  background: rgba(34, 197, 94, 0.15);
  color: #16a34a;
}

.status-badge.status-live {
  background: rgba(59, 130, 246, 0.15);
  color: #2563eb;
}

.status-badge.status-completed {
  background: rgba(107, 114, 128, 0.15);
  color: #6b7280;
}

.status-badge.status-cancelled {
  background: rgba(239, 68, 68, 0.15);
  color: #dc2626;
}

.status-badge.status-rescheduled {
  background: rgba(168, 85, 247, 0.15);
  color: #9333ea;
}

/* Icon Reference */
.icon-reference {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.icon-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--bg-secondary);
  border-radius: 8px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.icon-item i {
  width: 1.5rem;
  text-align: center;
  color: var(--brand-primary);
  font-size: 1rem;
}

/* Status Reference */
.status-reference {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

.status-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-dot.status-active {
  background: #22c55e;
}

.status-dot.status-draft {
  background: #eab308;
}

.status-dot.status-completed {
  background: #6b7280;
}

.status-dot.status-cancelled {
  background: #ef4444;
}

.status-dot.status-future {
  background: #3b82f6;
}

/* FAQ Styles */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-primary);
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s;
}

.faq-question:hover {
  background: var(--bg-hover);
}

.faq-question i {
  color: var(--text-muted);
  font-size: 0.75rem;
  transition: transform 0.2s;
}

.faq-item.open .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease-out;
}

.faq-item.open .faq-answer {
  max-height: 500px;
}

.faq-answer p {
  padding: 0 1.25rem 1rem;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
  .help-view {
    flex-direction: column;
  }

  .help-sidebar {
    width: 100%;
    min-width: 100%;
    max-height: 200px;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }

  .help-nav {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 0.5rem;
    gap: 0.25rem;
  }

  .help-nav-item {
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
  }

  .help-nav-item span {
    display: none;
  }

  .help-nav-item i {
    margin: 0;
  }

  .help-content {
    padding: 1rem;
  }

  .help-section h1 {
    font-size: 1.25rem;
  }

  .icon-reference {
    grid-template-columns: 1fr 1fr;
  }

  .role-row {
    font-size: 0.75rem;
  }

  .role-row span {
    padding: 0.5rem;
  }
}
