/* ShowCall Help Documentation Styles */

.help-container {
  display: flex;
  max-width: 1400px;
  margin: 0 auto;
  padding: 100px 20px 40px;
  gap: 40px;
  min-height: calc(100vh - 80px);
}

/* Sidebar Navigation */
.help-sidebar {
  width: 280px;
  flex-shrink: 0;
  position: sticky;
  top: 120px;
  height: fit-content;
  background-color: var(--card-bg-color);
  border-radius: 12px;
  padding: 24px;
  border: 1px solid var(--border-color);
}

.help-sidebar h3 {
  margin: 0 0 20px 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-color);
}

.help-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.help-nav-link {
  display: block;
  padding: 10px 16px;
  color: var(--text-secondary-color);
  text-decoration: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}

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

.help-nav-link.active {
  background-color: rgba(26, 115, 232, 0.1);
  color: var(--primary-color);
}

/* Main Content */
.help-content {
  flex: 1;
  max-width: none;
}

.help-header {
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.help-header h1 {
  font-size: 36px;
  font-weight: 700;
  margin: 0 0 12px 0;
  color: var(--text-color);
}

.help-header p {
  font-size: 18px;
  color: var(--text-secondary-color);
  margin: 0;
}

/* Help Sections */
.help-section {
  margin-bottom: 80px;
  scroll-margin-top: 120px;
  background-color: var(--card-bg-color);
  border-radius: 16px;
  padding: 40px;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.help-section h2 {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 32px 0;
  color: var(--text-color);
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--card-bg-color-alt);
}

.help-section h2 i {
  color: var(--primary-color);
  font-size: 24px;
}

.help-section h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 40px 0 20px 0;
  color: var(--text-color);
  position: relative;
  padding-left: 20px;
}

.help-section h3:first-of-type {
  margin-top: 0;
}

.help-section h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 20px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

.help-section p {
  color: var(--text-color);
  line-height: 1.7;
  margin-bottom: 20px;
  font-size: 16px;
}

.help-section ul,
.help-section ol {
  color: var(--text-color);
  line-height: 1.7;
  margin-bottom: 24px;
  padding-left: 0;
  list-style: none;
}

.help-section ul li,
.help-section ol li {
  margin-bottom: 12px;
  padding-left: 28px;
  position: relative;
  font-size: 16px;
}

.help-section ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
  font-size: 14px;
}

.help-section ol {
  counter-reset: step-counter;
}

.help-section ol > li {
  counter-increment: step-counter;
}

.help-section ol > li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
}

/* Nested lists within ordered lists */
.help-section ol li ul {
  margin-top: 12px;
  margin-bottom: 0;
}

.help-section ol li ul li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  padding-left: 0;
}

.help-section ol li ul li::before {
  display: none;
}

.help-section ol li ul li i {
  color: var(--primary-color);
  font-size: 12px;
  flex-shrink: 0;
}

.help-section a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

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

/* Role Cards */
.role-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin: 32px 0;
}

.role-card {
  background: linear-gradient(135deg, var(--card-bg-color) 0%, var(--card-bg-color-alt) 100%);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 32px;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}

.role-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), #42a5f5);
}

.role-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.role-card h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px 0;
  font-size: 20px;
  font-weight: 600;
  color: var(--text-color);
  padding-left: 0;
}

.role-card h3::before {
  display: none;
}

.role-card h3 i {
  color: var(--primary-color);
  font-size: 20px;
  background-color: rgba(26, 115, 232, 0.1);
  padding: 8px;
  border-radius: 8px;
}

.role-card ul {
  margin: 0;
  padding-left: 0;
}

.role-card li {
  margin-bottom: 12px;
  color: var(--text-secondary-color);
  padding-left: 24px;
  font-size: 15px;
}

.role-card li::before {
  content: '✓';
  color: var(--success-color);
  font-weight: bold;
}

/* Role Options */
.role-options {
  margin: 24px 0;
  padding: 20px;
  background-color: var(--card-bg-color-alt);
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.role-option {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding: 8px 0;
}

.role-option:last-child {
  margin-bottom: 0;
}

.role-option i {
  color: var(--primary-color);
  font-size: 14px;
  flex-shrink: 0;
}

.role-option strong {
  color: var(--text-color);
  margin-right: 8px;
}

/* Keyboard Shortcuts */
.shortcut-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 32px 0;
}

.shortcut-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: linear-gradient(135deg, var(--card-bg-color) 0%, var(--card-bg-color-alt) 100%);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.shortcut-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.shortcut-item kbd {
  background: linear-gradient(135deg, var(--primary-color), #42a5f5);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 8px 12px;
  font-family: 'Inter', monospace;
  font-size: 13px;
  font-weight: 600;
  min-width: 70px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(26, 115, 232, 0.2);
}

.shortcut-item span {
  color: var(--text-color);
  font-size: 15px;
  font-weight: 500;
}

/* Help Callouts */
.help-tip {
  background: linear-gradient(135deg, rgba(26, 115, 232, 0.08) 0%, rgba(26, 115, 232, 0.12) 100%);
  border: 1px solid rgba(26, 115, 232, 0.2);
  border-radius: 12px;
  padding: 20px;
  margin: 32px 0;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  position: relative;
  overflow: hidden;
}

.help-tip::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(135deg, var(--primary-color), #42a5f5);
}

.help-tip i {
  color: var(--primary-color);
  font-size: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  background-color: rgba(26, 115, 232, 0.1);
  padding: 8px;
  border-radius: 8px;
}

.help-tip div {
  flex: 1;
  line-height: 1.6;
}

.help-tip strong {
  color: var(--primary-color);
  margin-right: 8px;
}

.help-tip p {
  margin: 0;
  display: inline;
}

/* Quick Start Steps */
.quick-start-steps {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 32px 0;
}

.step-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 0;
  margin-bottom: 32px;
}

.step-number {
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(26, 115, 232, 0.3);
}

.step-content {
  flex: 1;
}

.step-content h3 {
  margin: 0 0 12px 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-color);
  padding-left: 0;
}

.step-content h3::before {
  display: none;
}

.step-content p {
  margin: 0;
  color: var(--text-color);
  line-height: 1.6;
}

.help-warning {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.08) 0%, rgba(255, 193, 7, 0.12) 100%);
  border: 1px solid rgba(255, 193, 7, 0.3);
  border-radius: 12px;
  padding: 20px;
  margin: 32px 0;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  position: relative;
  overflow: hidden;
}

.help-warning::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(135deg, #ff9800, #ffa726);
}

.help-warning i {
  color: #ff9800;
  font-size: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  background-color: rgba(255, 152, 0, 0.1);
  padding: 8px;
  border-radius: 8px;
}

.help-warning strong {
  color: #ff9800;
}

/* Code and Technical Elements */
code {
  background-color: var(--card-bg-color-alt);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 14px;
  color: var(--text-color);
}

kbd {
  background-color: var(--card-bg-color-alt);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 2px 6px;
  font-family: monospace;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-color);
}

/* FAQ Styles */
.faq-item {
  background-color: var(--card-bg-color-alt);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  margin-bottom: 16px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.faq-item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.faq-question {
  margin: 0;
  padding: 24px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-color);
  cursor: pointer;
  position: relative;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background-color 0.2s;
}

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

.faq-question::before {
  display: none;
}

.faq-question::after {
  content: '+';
  font-size: 24px;
  font-weight: 300;
  color: var(--primary-color);
  transition: transform 0.2s;
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 24px 24px;
  color: var(--text-color);
  line-height: 1.7;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-answer p {
  margin-bottom: 16px;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-answer ul {
  margin: 16px 0;
  padding-left: 0;
}

.faq-answer li {
  margin-bottom: 8px;
  padding-left: 20px;
  position: relative;
}

.faq-answer li::before {
  content: '•';
  color: var(--primary-color);
  position: absolute;
  left: 0;
  font-weight: bold;
}

.faq-answer ol {
  margin: 16px 0;
  padding-left: 0;
  list-style: none;
  counter-reset: faq-counter;
}

.faq-answer ol li {
  counter-increment: faq-counter;
  padding-left: 32px;
  position: relative;
  margin-bottom: 12px;
}

.faq-answer ol li::before {
  content: counter(faq-counter);
  position: absolute;
  left: 0;
  top: 0;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .help-container {
    flex-direction: column;
    gap: 24px;
  }
  
  .help-sidebar {
    width: 100%;
    position: static;
    order: 2;
  }
  
  .help-content {
    order: 1;
  }
  
  .role-cards {
    grid-template-columns: 1fr;
  }
  
  .shortcut-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .help-container {
    padding: 100px 16px 40px;
  }
  
  .help-header h1 {
    font-size: 28px;
  }
  
  .help-section h2 {
    font-size: 24px;
  }
  
  .help-section h3 {
    font-size: 18px;
  }
  
  .help-sidebar {
    padding: 16px;
  }
  
  .role-card,
  .shortcut-item {
    padding: 16px;
  }
}