/* Additional styles for the help center */

/* Hide nav instantly when rendered inside the chat iframe */
[data-framed="1"] .nav-container { display: none !important; }
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.breadcrumb {
  padding: 1rem 0;
  margin-top: 2rem;
}

.breadcrumb a {
  color: var(--page-secondary);
  font-weight: 400;
}

.breadcrumb span {
  color: var(--color-text-muted);
  margin: 0 0.5rem;
}

.help-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0;
  text-align: left;
}

.help-subtitle {
  font-size: 1.75rem;
  font-weight: 600;
  margin: 4rem 0 1rem;
}

.help-content {
  line-height: 1.6;
  color: var(--color-text);
}

.feature-card {
  background-color: #fcfcfc;
  border-radius: 16px;
  /* padding: 1.5rem; */
  margin-bottom: 1.5rem;
}

html[data-theme="dark"] .feature-card {
  background-color: #1a1a1a;
}

html[data-theme="dark"] .feature-card p,
html[data-theme="dark"] .feature-title,
html[data-theme="dark"] .key-features-title,
html[data-theme="dark"] .feature-list,
html[data-theme="dark"] .feature-list li {
  color: #e8e8e8;
}

/* --color-text handles dark mode automatically via tokens.css */

html[data-theme="dark"] .help-subtitle {
  color: #f0f0f0;
}

html[data-theme="dark"] .plugin-version {
  color: #999;
}

html[data-theme="dark"] .faq-item {
  border-color: #2e2e2e;
}

html[data-theme="dark"] .faq-question {
  background-color: #1c1c1c;
  color: #e8e8e8;
  border-color: #2e2e2e;
}

html[data-theme="dark"] .faq-question:hover {
  background-color: #252525;
  border-color: #555;
}

html[data-theme="dark"] .faq-icon {
  color: #999;
}

html[data-theme="dark"] .faq-answer {
  background-color: #161616;
  color: #cccccc;
  border-color: #2e2e2e;
}

.feature-card p {
  margin: 0.5rem 0 0;
  padding: 0 1.5rem;
}

.feature-title {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  padding: 0 1.5rem;
}

.feature-title-support {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-white);
}

.key-features-title {
  font-size: 1.25rem;
}

.feature-list {
  list-style-type: disc;
  padding-left: 1.5rem;
  margin: 1rem;
}

.feature-list li {
  margin-bottom: 0.5rem;
}

.help-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1.5rem 0;
}

.cta-container {
  background-color: #1a1a1a;
  color: #ffffff;
  border-radius: 16px;
  padding: 4rem 2rem;
  margin: 0 auto 3rem;
  text-align: center;
  max-width: 720px;
}

html[data-theme="light"] .cta-container {
  background-color: #1a1a1a;
}

html[data-theme="dark"] .cta-container {
  background-color: #1c1c1c;
}

.cta-title {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #ffffff;
}

.cta-button {
  display: inline-block;
  background-color: #ffffff;
  color: #0f0f0f;
  padding: var(--spacing-md) var(--spacing-2xl);
  border-radius: 50px;
  font-weight: var(--font-weight-medium);
  margin-top: var(--spacing-lg);
  transition: var(--transition-fast);
  text-decoration: none;
}

.cta-button:hover {
  background-color: #e8e8e8;
  color: #0f0f0f;
}

/* DS accordion component (ui-accordion) */
.ui-accordion {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 720px;
  margin: 0 auto 3rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.ui-accordion-item {
  border-bottom: 1px solid var(--color-border);
}

.ui-accordion-item:last-child {
  border-bottom: none;
}

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

.ui-accordion-trigger:hover {
  background: var(--color-surface);
}

.ui-accordion-chevron {
  flex-shrink: 0;
  transition: transform 0.2s;
  color: var(--color-text-muted);
}

.ui-accordion-trigger[aria-expanded="true"] .ui-accordion-chevron {
  transform: rotate(180deg);
}

.ui-accordion-content {
  padding: 0 1rem;
  font-size: 0.9375rem;
  font-family: var(--font-family);
  color: var(--color-text-muted);
  line-height: 1.65;
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.28s cubic-bezier(0.4, 0, 0.2, 1),
    padding 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.ui-accordion-content.open {
  max-height: 800px;
  padding: 0 1rem 0.875rem;
}

html[data-theme="dark"] .ui-accordion {
  border-color: #2e2e2e;
}

html[data-theme="dark"] .ui-accordion-item {
  border-color: #2e2e2e;
}

html[data-theme="dark"] .ui-accordion-trigger {
  color: #e8e8e8;
}

html[data-theme="dark"] .ui-accordion-trigger:hover {
  background: #252525;
}

html[data-theme="dark"] .ui-accordion-chevron {
  color: #999;
}

.ui-accordion-content .feature-list,
.ui-accordion-content .feature-list li {
  color: inherit;
}

.ui-accordion-content--legal {
  max-height: 0;
}

.ui-accordion-content--legal.open {
  max-height: 4000px;
}

.ui-accordion-content--legal h4 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 1rem;
  color: inherit;
}

.ui-accordion-content--legal p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.ui-accordion-content--legal ul.feature-list {
  margin-bottom: 1rem;
}

.ui-accordion-content--legal ul.feature-list li {
  margin-bottom: 0.5rem;
}

/* FAQ accordion styles */
.faq-item {
  margin-bottom: 0.5rem;
  border: none;
  border-radius: 0;
  overflow: visible;
  z-index: 1;
}

.faq-item:last-child {
  margin-bottom: 3rem;
}

.faq-question {
  font-weight: 600;
  padding: 0.75rem 1.5rem 0.75rem 1rem;
  background-color: var(--color-bg);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
  z-index: 1;
  /* Reset button styles */
  border: 1px solid var(--color-border);
  border-radius: 8px;
  width: 100%;
  text-align: left;
  font-size: inherit;
  font-family: inherit;
  color: inherit;
}

.faq-question.active {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom-color: transparent;
}

.faq-question:hover {
  background-color: var(--color-surface);
  border-color: var(--color-text-muted);
}

.faq-icon {
  flex-shrink: 0;
  margin-left: 1rem;
  display: flex;
  align-items: center;
  color: var(--color-text);
  transition: transform 0.3s ease;
}

.faq-question.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  background-color: var(--color-white);
  line-height: 1.6;
  padding: 0 1rem;
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.3s ease,
    padding 0.3s ease;
  border: 1px solid transparent;
  border-top: none;
  border-radius: 0 0 8px 8px;
}

.faq-answer.active {
  max-height: 300px;
  padding: 0.75rem 1.5rem 0.75rem 1rem;
  border-color: var(--color-border);
  border-top-color: transparent;
}

.faq-grid {
  display: flex;
  flex-direction: column;
  max-width: 720px;
  margin: 0 auto;
  margin-bottom: 3rem;
}

.faq-grid .faq-item {
  margin-bottom: 0.5rem;
}

.faq-grid .faq-item:last-child {
  margin-bottom: 0;
}

.legal-grid {
  grid-template-columns: unset;
}

.support-content {
  margin: 0;
}

.support-card {
  display: flex;
  background-color: #1a1a1a;
  color: #ffffff;
  border-radius: 16px;
  padding: 2rem 2rem 0rem;
  margin: 4rem 0 0;
}

html[data-theme="dark"] .support-card {
  background-color: #1c1c1c;
}

.support-button {
  margin-right: 1rem;
  width: 170px;
  text-align: center;
  border-radius: 50px;
  background-color: #ffffff;
  color: #0f0f0f;
}

.support-button:hover {
  background-color: #e8e8e8;
  color: #0f0f0f;
}

.support-secondary {
  width: 170px;
  text-align: center;
  border-radius: 50px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #ffffff;
}

.support-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
}

.img-support {
  height: 300px;
  padding-left: 4rem;
  display: block;
  align-self: flex-end;
}

/* Navigation styles */
.nav-container {
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  padding: 12px 0;
}

.nav-content {
  display: flex;
  z-index: 1000;
}

.nav-logo {
  height: 2rem;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--color-white);
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--page-secondary);
  transition: 0.2s ease-in-out;
}

.key-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-bottom: 3rem;
}

.key-features .feature-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
}

.logo-plugin img {
  height: 128px;
  margin: 0 3rem 0 0;
}

.hero-section {
  display: flex;
  align-items: center;
  padding: 4rem 0 0;
}

.frameOrganizer {
  width: 100%;
  margin: 0;
  text-align: left;
  color: var(--color-text);
}

.img-card {
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  background-color: var(--color-surface, #1c1c1c);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.img-card.loaded {
  opacity: 1;
}

.plugin-name {
  display: flex;
  align-items: baseline;
  gap: 1rem;
}

.plugin-version {
  color: var(--color-text-muted);
}

/* Explore other plugins section */
.explore-plugins-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1rem 0 3rem;
}

.explore-plugin-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--color-text);
  background: var(--color-bg);
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}

.explore-plugin-card:hover {
  border-color: var(--color-text-muted);
  background: var(--color-surface);
}

.explore-plugin-logo {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  flex-shrink: 0;
  object-fit: contain;
}

.explore-plugin-body {
  flex: 1;
  min-width: 0;
}

.explore-plugin-name {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.explore-plugin-desc {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.45;
}

.explore-plugin-arrow {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  color: var(--color-text-muted);
  transition: transform 0.2s ease;
}

.explore-plugin-card:hover .explore-plugin-arrow {
  transform: translateX(3px);
}

html[data-theme="dark"] .explore-plugin-card {
  background: #1c1c1c;
  border-color: #2e2e2e;
  color: #e8e8e8;
}

html[data-theme="dark"] .explore-plugin-card:hover {
  border-color: #555;
  background: #252525;
}

@media (max-width: 63.9375em) {
  .container {
    padding: 0 1rem;
  }

  .help-title {
    font-size: 2rem;
  }

  .help-subtitle {
    font-size: 1.5rem;
  }

  .feature-title {
    font-size: 1.25rem;
  }

  .nav-links {
    display: none;
  }

  .key-features {
    grid-template-columns: 1fr;
  }

  .explore-plugins-grid {
    grid-template-columns: 1fr;
  }

  .cta-button {
    width: 100%;
    text-align: center;
  }

  .cta-button:hover {
    background-color: #e8e8e8;
    color: #0f0f0f;
  }

  .faq-question {
    padding: 0.75rem 1rem 0.75rem 1rem;
  }

  .hero-section {
    flex-direction: column;
    align-items: normal;
    gap: 1rem;
  }

  .logo-plugin img {
    height: 80px;
  }

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

  .img-support {
    height: auto;
    padding: 2rem 0 0;
    padding-left: 0;
    width: 100%;
  }

  .support-secondary {
    width: 100%;
  }

  .support-card {
    padding: 2rem 1.5rem 0;
  }

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

  .img-card {
    object-fit: cover;
    height: auto;
  }
  .help-subtitle {
    margin: 2rem 0 1rem;
  }
}
