/* MirrorNex Help Center Styles */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #F5F5F7;
  color: #1D1D1F;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}

a {
  color: #0071E3;
  text-decoration: none;
}

a:hover {
  color: #0058b8;
}

/* Wrapper for sticky footer */
.help-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.help-wrapper > .help-main {
  flex: 1 0 auto;
  width: 100%;
}

.help-wrapper > .help-content {
  flex: 1 0 auto;
  width: 100%;
}

/* Content wrapper for section pages */
.help-content {
  padding-bottom: 40px;
}

/* Header */
.help-header {
  background: #FFFFFF;
  border-bottom: 1px solid #E8E8ED;
  position: sticky;
  top: 0;
  z-index: 100;
}

.help-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.help-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 600;
  color: #1D1D1F;
  letter-spacing: -0.02em;
}

.help-logo:hover {
  color: #1D1D1F;
}

.help-search {
  flex: 1;
  max-width: 320px;
  margin-left: auto;
  position: relative;
}

.help-search svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #86868B;
}

.help-search input {
  width: 100%;
  padding: 12px 16px 12px 44px;
  border: 1px solid #E8E8ED;
  border-radius: 10px;
  font-size: 15px;
  background: #F5F5F7;
  transition: all 0.2s;
}

.help-search input:focus {
  outline: none;
  border-color: #0071E3;
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.1);
}

.help-install-btn {
  background: #1D1D1F;
  color: #F5F5F7 !important;
  padding: 10px 20px;
  border-radius: 980px;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s;
}

.help-install-btn:hover {
  background: #333;
  color: #F5F5F7 !important;
}

/* Hero */
.help-hero {
  background: linear-gradient(135deg, #1D1D1F 0%, #2D2D2F 100%);
  color: #FFFFFF;
  text-align: center;
  padding: 80px 24px;
}

.help-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.help-hero p {
  margin: 0;
  font-size: 19px;
  color: rgba(255, 255, 255, 0.7);
  max-width: 480px;
  margin: 0 auto;
}

/* Main Content */
.help-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px;
}

/* Categories Grid */
.help-categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.help-category-card {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  transition: all 0.2s;
  border: 1px solid transparent;
}

.help-category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  border-color: #E8E8ED;
  color: #1D1D1F;
}

.help-category-icon {
  width: 56px;
  height: 56px;
  background: #F5F5F7;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: #0071E3;
}

.help-category-card h2 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #1D1D1F;
}

.help-category-card p {
  margin: 0 0 16px;
  font-size: 15px;
  color: #86868B;
  flex: 1;
}

.help-category-count {
  font-size: 13px;
  color: #86868B;
}

/* Section Page Styles */
.help-breadcrumb {
  max-width: 800px;
  margin: 0 auto;
  padding: 24px 24px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #86868B;
}

.help-breadcrumb a {
  color: #86868B;
}

.help-breadcrumb a:hover {
  color: #0071E3;
}

.help-breadcrumb span {
  color: #86868B;
}

.help-section-header {
  max-width: 800px;
  margin: 0 auto;
  padding: 32px 24px 48px;
}

.help-section-header h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.help-article-list {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px 60px;
}

.help-article-item {
  display: block;
  background: #FFFFFF;
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 12px;
  transition: all 0.2s;
  border: 1px solid #E8E8ED;
}

.help-article-item:hover {
  border-color: #0071E3;
  box-shadow: 0 4px 12px rgba(0, 113, 227, 0.08);
  color: #1D1D1F;
}

.help-article-item h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 500;
  color: #1D1D1F;
}

/* Article Page Styles */
.help-article {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px 60px;
}

.help-article-header {
  padding: 32px 0 40px;
  border-bottom: 1px solid #E8E8ED;
  margin-bottom: 40px;
}

.help-article-header h1 {
  margin: 0;
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.help-article-content {
  font-size: 17px;
  line-height: 1.7;
}

.help-article-content h2 {
  margin: 48px 0 20px;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.help-article-content h3 {
  margin: 36px 0 16px;
  font-size: 20px;
  font-weight: 600;
}

.help-article-content p {
  margin: 0 0 20px;
}

.help-article-content ul,
.help-article-content ol {
  margin: 0 0 24px;
  padding-left: 24px;
}

.help-article-content li {
  margin-bottom: 12px;
}

.help-article-content strong {
  font-weight: 600;
}

.help-article-content code {
  background: #F5F5F7;
  padding: 2px 8px;
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 15px;
}

.help-article-content pre {
  background: #1D1D1F;
  color: #F5F5F7;
  padding: 20px 24px;
  border-radius: 12px;
  overflow-x: auto;
  margin: 0 0 24px;
}

.help-article-content pre code {
  background: none;
  padding: 0;
  color: inherit;
}

.help-article-content img {
  max-width: 100%;
  border-radius: 12px;
  margin: 24px 0;
  border: 1px solid #E8E8ED;
}

/* Comparison table */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
}

.comparison-table th,
.comparison-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #E8E8ED;
}

.comparison-table th {
  background: #F5F5F7;
  font-weight: 600;
  color: #1D1D1F;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table tbody tr:hover {
  background: #FAFAFA;
}

@media (max-width: 768px) {
  .comparison-table {
    font-size: 14px;
  }
  
  .comparison-table th,
  .comparison-table td {
    padding: 10px 12px;
  }
}

/* Screenshot container for actual images */
.screenshot-container {
  margin: 24px 0;
  text-align: center;
  width: 100%;
}

.screenshot-container .screenshot {
  width: 100%;
  max-width: 700px;
  height: auto;
  border-radius: 12px;
  border: 1px solid #E8E8ED;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  display: block;
  margin: 0 auto;
}

/* Responsive screenshot sizing */
@media (max-width: 768px) {
  .screenshot-container .screenshot {
    max-width: 100%;
    border-radius: 8px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .screenshot-container .screenshot {
    max-width: 600px;
  }
}

/* Screenshot placeholder */
.screenshot-placeholder {
  background: #F0F4F8;
  border: 2px dashed #CBD5E1;
  border-radius: 12px;
  padding: 40px 24px;
  text-align: center;
  margin: 24px 0;
}

.screenshot-placeholder .placeholder-icon {
  width: 48px;
  height: 48px;
  background: #E2E8F0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: #64748B;
}

.screenshot-placeholder .placeholder-label {
  font-size: 14px;
  font-weight: 600;
  color: #475569;
  margin: 0 0 8px;
}

.screenshot-placeholder .placeholder-desc {
  font-size: 13px;
  color: #64748B;
  margin: 0;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.help-article-content .callout {
  background: #F0F7FF;
  border-left: 4px solid #0071E3;
  padding: 20px 24px;
  border-radius: 0 12px 12px 0;
  margin: 24px 0;
}

.help-article-content .callout-warning {
  background: #FFF8E6;
  border-left-color: #F5A623;
}

.help-article-content .callout-success {
  background: #E8F7EF;
  border-left-color: #34C759;
}

.help-article-content .callout-info {
  background: #F0F7FF;
  border-left-color: #0071E3;
}

/* Steps styling */
.steps {
  margin: 24px 0;
}

.step {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.step-number {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: #0071E3;
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
}

.step-content {
  flex: 1;
  padding-top: 4px;
}

.step-content p:first-child {
  margin-top: 0;
}

.step-content p:last-child {
  margin-bottom: 0;
}

.step-content p strong {
  font-weight: 600;
  font-size: 17px;
}

/* Legacy ol.steps styling */
.help-article-content ol.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 24px 0;
}

.help-article-content ol.steps li {
  position: relative;
  padding-left: 48px;
  margin-bottom: 24px;
  counter-increment: step;
}

.help-article-content ol.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  background: #0071E3;
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
}

/* Contact Section */
.help-contact {
  background: #FFFFFF;
  text-align: center;
  padding: 80px 24px;
  border-top: 1px solid #E8E8ED;
}

.help-contact h2 {
  margin: 0 0 12px;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.help-contact p {
  margin: 0 0 28px;
  font-size: 17px;
  color: #86868B;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 28px;
}

.help-contact-btn {
  display: inline-block;
  background: #0071E3;
  color: #FFFFFF !important;
  padding: 14px 32px;
  border-radius: 980px;
  font-size: 17px;
  font-weight: 500;
  transition: background 0.2s;
}

.help-contact-btn:hover {
  background: #0058b8;
  color: #FFFFFF !important;
}

/* Footer */
.help-footer {
  background: #1D1D1F;
  color: #86868B;
  padding: 32px 24px;
}

.help-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.help-footer p {
  margin: 0;
  font-size: 14px;
}

.help-footer-links {
  display: flex;
  gap: 24px;
}

.help-footer-links a {
  font-size: 14px;
  color: #86868B;
}

.help-footer-links a:hover {
  color: #FFFFFF;
}

/* Responsive */
@media (max-width: 1024px) {
  .help-categories {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .help-header-inner {
    flex-wrap: wrap;
  }

  .help-search {
    order: 3;
    max-width: 100%;
    width: 100%;
  }

  .help-install-btn {
    margin-left: auto;
  }

  .help-hero {
    padding: 60px 24px;
  }

  .help-categories {
    grid-template-columns: 1fr;
  }

  .help-footer-inner {
    flex-direction: column;
    text-align: center;
  }
}


/* Article Navigation (prev/next) */
.help-article-nav {
  max-width: 800px;
  margin: 40px auto 0;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid #E8E8ED;
}

.help-nav-prev,
.help-nav-next {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 20px;
  background: #FFFFFF;
  border: 1px solid #E8E8ED;
  border-radius: 12px;
  transition: all 0.2s;
  min-width: 200px;
}

.help-nav-prev:hover,
.help-nav-next:hover {
  border-color: #0071E3;
  box-shadow: 0 4px 12px rgba(0, 113, 227, 0.08);
}

.help-nav-prev {
  align-items: flex-start;
}

.help-nav-next {
  align-items: flex-end;
  text-align: right;
  margin-left: auto;
}

.help-nav-prev span,
.help-nav-next span {
  font-size: 13px;
  color: #86868B;
}

.help-nav-prev strong,
.help-nav-next strong {
  font-size: 15px;
  font-weight: 600;
  color: #1D1D1F;
}

@media (max-width: 768px) {
  .help-article-nav {
    flex-direction: column;
  }
  
  .help-nav-prev,
  .help-nav-next {
    min-width: 100%;
  }
  
  .help-nav-next {
    align-items: flex-start;
    text-align: left;
  }
}
