/* Help Center Styles */
.help-center-page {
  min-height: 100vh;
  background: #f5f7fa;
}

/* Header */
.main-header {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  padding: 0.9375rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  max-width: 87.5rem;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.nav-links {
  display: flex;
  gap: 1.875rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: #2c3e50;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #667eea;
}

.btn {
  padding: 0.625rem 1.5rem;
  border: none;
  border-radius: 0.5rem;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s;
  font-size: 0.95rem;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(102,126,234,0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(102,126,234,0.4);
}

.btn-secondary {
  background: #f8f9fa;
  color: #2c3e50;
  border: 2px solid #e0e0e0;
}

.btn-secondary:hover {
  background: #e9ecef;
  border-color: #667eea;
}

/* Modal */
.help-center-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 1rem;
}

.help-center-modal {
  background: #fff;
  border-radius: 0.75rem;
  max-width: 90%;
  width: 100%;
  max-width: 500px;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #7f8c8d;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
}

.modal-close:hover {
  background: #f8f9fa;
  color: #2c3e50;
}

.modal-content {
  padding: 2rem;
  text-align: center;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 1rem;
}

.modal-text {
  font-size: 1rem;
  color: #7f8c8d;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.modal-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Hero */
.hero-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  padding: 3.75rem 1.25rem;
  text-align: center;
}

.hero-content {
  max-width: 50rem;
  margin: 0 auto;
}

.hero-title {
  font-size: 2.5rem;
  margin-bottom: 1.25rem;
  font-weight: 700;
}

.search-box {
  max-width: 18.75rem;
  margin: 1.875rem auto 0;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 1rem 3.125rem 1rem 1.25rem;
  border: none;
  border-radius: 3.125rem;
  font-size: 1rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.search-input:focus {
  outline: none;
  box-shadow: 0 6px 25px rgba(0,0,0,0.15);
}

.search-icon {
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  color: #667eea;
  pointer-events: none;
}

/* Content */
.content-section {
  max-width: 75rem;
  margin: 3.75rem auto;
  padding: 0 1.25rem;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.875rem;
  margin-bottom: 3.75rem;
}

.category-card {
  background: #fff;
  border-radius: 1rem;
  padding: 1.875rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.category-icon {
  font-size: 3rem;
  margin-bottom: 0.9375rem;
}

.category-card h3 {
  color: #2c3e50;
  margin-bottom: 0.625rem;
  font-size: 1.3rem;
}

.category-card p {
  color: #7f8c8d;
  line-height: 1.6;
}

.no-results {
  text-align: center;
  padding: 2rem;
  color: #7f8c8d;
  font-size: 1.125rem;
}

/* FAQ Section */
.faq-section {
  margin-top: 3.75rem;
}

.faq-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 0.9375rem;
}

.faq-section h2 {
  color: #2c3e50;
  font-size: 2rem;
  text-align: center;
  margin-bottom: 1.875rem;
}

.category-filter {
  padding: 0.625rem 0.9375rem;
  border: 2px solid #e0e0e0;
  border-radius: 0.5rem;
  font-size: 0.95rem;
  background: #fff;
  cursor: pointer;
}

.loading-indicator {
  text-align: center;
  padding: 1.25rem;
  color: #7f8c8d;
}

.faqs-container {
  display: grid;
  gap: 1rem;
}

.faq-item {
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  overflow: hidden;
}

.faq-card {
  padding: 1.25rem;
}

.faq-header-row {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 0.625rem;
  gap: 1rem;
}

.faq-question {
  margin: 0;
  color: #2c3e50;
  font-size: 1.1rem;
  font-weight: 600;
  flex: 1;
}

.faq-category-badge {
  padding: 0.25rem 0.75rem;
  background: #e3f2fd;
  color: #1976d2;
  border-radius: 1.25rem;
  font-size: 0.85rem;
  white-space: nowrap;
}

.faq-answer {
  color: #7f8c8d;
  margin: 0.625rem 0;
  line-height: 1.8;
}

.faq-tags {
  margin-top: 0.9375rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.faq-tag {
  padding: 0.25rem 0.5rem;
  background: #f5f7fa;
  color: #7f8c8d;
  border-radius: 0.25rem;
  font-size: 0.8rem;
}

.faq-stats {
  margin-top: 0.9375rem;
  display: flex;
  gap: 1.25rem;
  font-size: 0.85rem;
  color: #95a5a6;
  align-items: center;
  flex-wrap: wrap;
}

.stat-item {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.stat-item.clickable {
  cursor: pointer;
  transition: color 0.2s;
}

.stat-item.clickable:hover {
  color: #667eea;
}

.helpful-btn {
  padding: 0.375rem 0.75rem;
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 0.375rem;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}

.helpful-btn:hover:not(:disabled) {
  background: #e9ecef;
  border-color: #667eea;
}

.helpful-btn:disabled {
  background: #d4edda;
  border-color: #c3e6cb;
  color: #155724;
  cursor: not-allowed;
}

/* Support Ticket */
.support-section {
  margin-top: 3.75rem;
}

.ticket-message {
  padding: 0.9375rem;
  border-radius: 0.5rem;
  margin-bottom: 1.25rem;
}

.ticket-message.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.ticket-message.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.ticket-form {
  background: #fff;
  padding: 1.875rem;
  border-radius: 0.75rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin-top: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #2c3e50;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #e0e0e0;
  border-radius: 0.5rem;
  font-size: 0.95rem;
  font-family: inherit;
  box-sizing: border-box;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.submit-btn {
  width: 100%;
  padding: 0.875rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s;
}

.submit-btn:hover:not(:disabled) {
  transform: translateY(-2px);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Footer */
.main-footer {
  background: #2c3e50;
  color: #ecf0f1;
  padding: 2.5rem 1.25rem 1.25rem;
  margin-top: 5rem;
}

.footer-container {
  max-width: 87.5rem;
  margin: 0 auto;
}

.footer-bottom {
  text-align: center;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 1.875rem;
}

/* Modal Transitions */
.modal-enter-active,
.modal-leave-active {
  transition: opacity 0.3s;
}

.modal-enter-active .help-center-modal,
.modal-leave-active .help-center-modal {
  transition: transform 0.3s, opacity 0.3s;
}

.modal-enter-from,
.modal-leave-to {
  opacity: 0;
}

.modal-enter-from .help-center-modal,
.modal-leave-to .help-center-modal {
  transform: scale(0.9);
  opacity: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .header-container {
    padding: 0 1rem;
  }

  .nav-links {
    display: none;
  }

  .hero-title {
    font-size: 1.875rem;
  }

  .search-box {
    max-width: 100%;
    width: 100%;
  }

  .categories-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .category-card {
    padding: 1.5rem;
  }

  .faq-header {
    flex-direction: column;
    align-items: stretch;
  }

  .category-filter {
    width: 100%;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .ticket-form {
    padding: 1.5rem;
  }

  .help-center-modal {
    max-width: 95%;
    margin: 1rem;
  }

  .modal-content {
    padding: 1.5rem;
  }

  .modal-title {
    font-size: 1.25rem;
  }

  .modal-text {
    font-size: 0.9375rem;
  }

  .modal-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}
