/* Support Page Styles */

.support-hero {
  padding: var(--space-4xl) 0;
  background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-secondary) 100%);
  text-align: center;
}

.support-hero__content h1 {
  font-size: 42px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: var(--space-md);
}

.support-hero__content > p {
  font-size: 18px;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.support-search {
  display: flex;
  gap: var(--space-sm);
  max-width: 600px;
  margin: 0 auto;
}

.support-search__input {
  flex: 1;
  padding: var(--space-md) var(--space-lg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  font-size: 16px;
  background: white;
}

.support-search__input:focus {
  outline: none;
  border-color: var(--color-primary);
}

/* Support Categories */
.support-categories {
  padding: var(--space-4xl) 0;
  background: white;
}

.support-categories__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.support-category-card {
  display: block;
  background: var(--color-secondary);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid var(--color-border);
}

.support-category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  background: white;
}

.support-category__icon {
  width: 56px;
  height: 56px;
  background: var(--color-primary-light);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
}

.support-category__icon svg {
  width: 28px;
  height: 28px;
}

.support-category-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: var(--space-sm);
}

.support-category-card p {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

.doc-count {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-primary);
}

/* Technical Articles */
.tech-articles {
  padding: var(--space-4xl) 0;
  background: var(--color-secondary);
}

.tech-articles .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-2xl);
}

.view-all {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-primary);
  text-decoration: none;
}

.view-all:hover {
  text-decoration: underline;
}

.tech-articles__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.tech-article-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tech-article-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.tech-article__meta {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.tech-article__category {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-primary);
  background: var(--color-primary-light);
  padding: 2px 10px;
  border-radius: var(--radius-full);
}

.tech-article__date {
  font-size: 12px;
  color: var(--color-text-tertiary);
}

.tech-article__title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: var(--space-sm);
}

.tech-article__title a {
  color: var(--color-text-primary);
  text-decoration: none;
}

.tech-article__title a:hover {
  color: var(--color-primary);
}

.tech-article__excerpt {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-md);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tech-article__author {
  padding-top: var(--space-sm);
  border-top: 1px solid var(--color-border-light);
}

.author-name {
  font-size: 13px;
  color: var(--color-text-tertiary);
}

/* FAE Team Section */
.fae-team {
  padding: var(--space-4xl) 0;
  background: white;
}

.fae-team__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}

.fae-card {
  background: var(--color-secondary);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  border: 1px solid var(--color-border);
}

.fae-card__avatar {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-md);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.fae-card__avatar svg {
  width: 100%;
  height: 100%;
}

.fae-card__name {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 4px;
}

.fae-card__title {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.fae-card__specialty {
  font-size: 13px;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-sm);
}

.fae-card__experience {
  font-size: 12px;
  color: var(--color-text-tertiary);
  margin-bottom: var(--space-md);
  line-height: 1.5;
}

/* Support CTA */
.support-cta {
  padding: var(--space-4xl) 0;
  background: var(--color-primary);
  color: white;
  text-align: center;
}

.support-cta__content h2 {
  font-size: 36px;
  font-weight: 600;
  margin-bottom: var(--space-md);
}

.support-cta__content p {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: var(--space-xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.support-cta__buttons {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
}

/* Technical Article Detail Page */
.tech-article-detail {
  padding: var(--space-3xl) 0;
  background: var(--color-secondary);
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--space-2xl);
}

.article-main {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-sm);
}

.article-header {
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--color-border);
}

.article-header__meta {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.article-header h1 {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-text-primary);
  line-height: 1.3;
  margin-bottom: var(--space-md);
}

.article-author {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.article-author__avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--color-secondary);
}

.article-author__info h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 2px;
}

.article-author__info p {
  font-size: 13px;
  color: var(--color-text-secondary);
  margin: 0;
}

.article-content {
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-text-secondary);
}

.article-content h2 {
  font-size: 24px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin: var(--space-xl) 0 var(--space-md);
  padding-left: var(--space-md);
  border-left: 4px solid var(--color-primary);
}

.article-content h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin: var(--space-lg) 0 var(--space-sm);
}

.article-content p {
  margin-bottom: var(--space-md);
}

.article-content ul,
.article-content ol {
  margin-bottom: var(--space-md);
  padding-left: var(--space-lg);
}

.article-content li {
  margin-bottom: var(--space-sm);
}

.article-content pre {
  background: #f8f9fa;
  padding: var(--space-md);
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin-bottom: var(--space-md);
}

.article-content code {
  font-family: 'Courier New', monospace;
  font-size: 14px;
  color: #e83e8c;
}

.article-content blockquote {
  border-left: 4px solid var(--color-primary);
  padding-left: var(--space-md);
  margin: var(--space-md) 0;
  color: var(--color-text-secondary);
  font-style: italic;
}

/* Article Sidebar */
.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.toc-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 140px;
}

.toc-card h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--color-border);
}

.toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.toc-list li {
  margin-bottom: var(--space-xs);
}

.toc-list a {
  display: block;
  padding: var(--space-xs) 0;
  font-size: 14px;
  color: var(--color-text-secondary);
  text-decoration: none;
}

.toc-list a:hover {
  color: var(--color-primary);
}

.toc-list a.active {
  color: var(--color-primary);
  font-weight: 500;
}

.download-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
}

.download-card h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: var(--space-md);
}

.download-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.download-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm);
  background: var(--color-secondary);
  border-radius: var(--radius-md);
  text-decoration: none;
}

.download-item svg {
  width: 24px;
  height: 24px;
  color: var(--color-primary);
  flex-shrink: 0;
}

.download-item span {
  font-size: 13px;
  color: var(--color-text-primary);
}

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

  .tech-articles__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .fae-team__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-sidebar {
    flex-direction: row;
    gap: var(--space-md);
  }

  .toc-card,
  .download-card {
    flex: 1;
    position: static;
  }
}

@media (max-width: 768px) {
  .support-hero__content h1 {
    font-size: 28px;
  }

  .support-search {
    flex-direction: column;
  }

  .support-categories__grid {
    grid-template-columns: 1fr;
  }

  .tech-articles .section-header {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }

  .tech-articles__grid {
    grid-template-columns: 1fr;
  }

  .fae-team__grid {
    grid-template-columns: 1fr;
  }

  .support-cta__buttons {
    flex-direction: column;
  }

  .article-header h1 {
    font-size: 24px;
  }

  .article-sidebar {
    flex-direction: column;
  }

  .article-main {
    padding: var(--space-lg);
  }

  .article-content {
    font-size: 15px;
  }

  .article-content h2 {
    font-size: 20px;
  }

  .article-content h3 {
    font-size: 18px;
  }
}
