/* LedgerConnect Help Center Styles */

:root {
  --primary-color: #0e65a2;
  --primary-dark: rgb(50, 63, 137);
  --primary-gradient: linear-gradient(135deg, #61beff 0%, #0e65a2 100%);
  --text-primary: #1a202c;
  --text-secondary: #4a5568;
  --text-light: #718096;
  --bg-light: #f7fafc;
  --bg-white: #ffffff;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
  --header-height: 80px;
  --button-bg-light: rgba(14, 101, 162, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--text-primary);
  line-height: 1.6;
  background-color: var(--bg-white);
}

/* Header Styles */
.help-header {
  /* background: var(--primary-gradient); */
  padding: 0.3rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-md);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: white;
  font-size: 1.25rem;
  font-weight: 600;
}

.header-logo img {
  height: 60px;
  width: auto;
}
.header-logo span {
  color: var(--primary-color);
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-btn {
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.header-btn-contact {
  color: var(--primary-color);
  /* border: 1px solid var(--primary-color); */
}

.header-btn-contact:hover {
  color: var(--primary-dark);
}

.header-btn-signup {
  background: var(--primary-color);
  color: white;
   border: 1px solid var(--primary-color);
}

.header-btn-signup:hover {
  background: transparent;
  border: 1px solid var(--primary-color);
  transform: translateY(-1px);
  color: var(--primary-color);
}

.header-btn-signin {
  background: var(--primary-color);
  color: white;
  border: 1px solid var(--primary-color);
}

.header-btn-signin:hover {
  background: transparent;
  border: 1px solid var(--primary-color);
  transform: translateY(-1px);
  color: var(--primary-color);
}

/* Search Bar */
.search-container {
  width: 100%;
  max-width: 600px;
  margin: 2rem auto;
  position: relative;
}

.search-bar {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  box-shadow: var(--shadow-md);
  outline: none;
  transition: box-shadow 0.3s ease;
}

.search-bar:focus {
  box-shadow: var(--shadow-lg);
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
}

.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  margin-top: 0.5rem;
  max-height: 400px;
  overflow-y: auto;
  display: none;
  z-index: 1000;
}

.search-results.active {
  display: block;
}

.search-result-item {
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
  transition: background 0.2s ease;
}

.search-result-item:hover {
  background: var(--bg-light);
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-title {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.search-result-category {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 0.25rem;
}

.search-result-description {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.search-highlight {
  background: #fef08a;
  padding: 0 2px;
}

/* Hero Section */
.hero-section {
  background: var(--primary-gradient);
  padding: 3rem 2rem 2.5rem;
  text-align: center;
  color: white;
  margin-bottom: 0;
}

.hero-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .hero-section {
    padding: 2rem 1rem;
  }

  .hero-title {
    font-size: 1.75rem;
  }
}

/* Main Container */
.main-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

@media (max-width: 768px) {
  .main-container {
    padding: 1.5rem 1rem;
  }
}

/* Category Cards Grid */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0 4rem;
  padding: 0;
  justify-items: stretch;
}

/* For 2-column layout (bank-statement, ecommerce) */
.categories-grid.two-columns {
  grid-template-columns: repeat(2, 1fr);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  gap: 2rem;
}

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

  .categories-grid.two-columns {
    grid-template-columns: repeat(2, 1fr);
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .categories-grid {
    grid-template-columns: 1fr;
  }

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

.category-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 300px;
  position: relative;
  overflow: hidden;
}

.category-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--primary-color);
}

.category-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 1.25rem;
  background: var(--primary-gradient);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  flex-shrink: 0;
}

.category-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  line-height: 1.3;
}

.category-description {
  color: var(--text-secondary);
  margin-bottom: 0;
  line-height: 1.6;
  flex-grow: 1;
}

.category-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  flex-shrink: 0;
  margin-top: 30px;
}

.category-link-text {
  color: var(--primary-color);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.category-card:hover .category-link-text {
  transform: translateX(4px);
}

.category-link-text i {
  transition: transform 0.3s ease;
}

.category-card:hover .category-link-text i {
  transform: translateX(4px);
}

.category-count {
  color: var(--text-light);
  font-size: 0.9rem;
  font-weight: 500;
}

/* Breadcrumbs */
.breadcrumbs {
  padding: 1rem 0;
  color: var(--text-light);
  font-size: 0.9rem;
}

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

.breadcrumbs a:hover {
  text-decoration: underline;
}

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

/* Category Page */
.category-header {
  text-align: center;
  padding: 2rem 0 1.5rem;
}

.category-illustration {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  background: var(--primary-gradient);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
}

.category-page-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.category-page-description {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 1rem;
  line-height: 1.6;
}

.category-article-count {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Articles List */
.articles-list {
  list-style: none;
  margin: 2rem 0;
}

.article-item {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.article-item:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.article-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.article-description {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.article-arrow {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-left: 1rem;
  flex-shrink: 0;
}

/* Article Page Layout */
.article-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 3rem;
  margin: 2rem 0;
}

/* Sidebar Navigation */
.sidebar {
  position: sticky;
  top: calc(var(--header-height) + 2rem);
  align-self: start;
}

.sidebar-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-color);
}

.sidebar-nav {
  list-style: none;
}

.sidebar-nav-item {
  margin-bottom: 0.5rem;
}

.sidebar-nav-link {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.2s ease;
  font-size: 0.95rem;
}

.sidebar-nav-link:hover {
  background: var(--bg-light);
  color: var(--primary-color);
}

.sidebar-nav-link.active {
  background: var(--primary-color);
  color: white;
  font-weight: 500;
}

/* Article Content */
.article-content {
  max-width: 800px;
}

.article-header {
  margin-bottom: 2rem;
}

.article-title {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
  line-height: 1.2;
}

.article-intro {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.article-body {
  margin-top: 2rem;
}

.article-section {
  margin-bottom: 3rem;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-color);
}

.section-content {
  color: var(--text-secondary);
  line-height: 1.8;
}

.section-content p {
  margin-bottom: 1rem;
}

.section-content ul,
.section-content ol {
  margin: 1rem 0 1rem 2rem;
}

.section-content li {
  margin-bottom: 0.5rem;
}

.article-screenshot {
  width: 100%;
  max-width: 800px;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  margin: 1.5rem 0;
  border: 1px solid var(--border-color);
}

.article-step {
  background: var(--bg-light);
  padding: 1.5rem;
  border-radius: 8px;
  margin: 1.5rem 0;
  border-left: 4px solid var(--primary-color);
}

.step-number {
  display: inline-block;
  width: 32px;
  height: 32px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  text-align: center;
  line-height: 32px;
  font-weight: 600;
  margin-right: 1rem;
}

.step-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.step-content {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Footer */
.help-footer {
  background: var(--bg-light);
  border-top: 1px solid var(--border-color);
  padding: 3rem 2rem 2rem;
  margin-top: 4rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section-title {
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-nav {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .categories-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

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

  .sidebar {
    position: static;
    order: 2;
  }

  .article-content {
    order: 1;
  }

  .category-page-title {
    font-size: 1.75rem;
  }

  .category-header {
    padding: 1.5rem 0 1rem;
  }

  .category-illustration {
    width: 64px;
    height: 64px;
    font-size: 1.5rem;
  }

  .article-title {
    font-size: 1.75rem;
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mt-1 {
  margin-top: 0.5rem;
}
.mt-2 {
  margin-top: 1rem;
}
.mt-3 {
  margin-top: 1.5rem;
}
.mt-4 {
  margin-top: 2rem;
}

.mb-1 {
  margin-bottom: 0.5rem;
}
.mb-2 {
  margin-bottom: 1rem;
}
.mb-3 {
  margin-bottom: 1.5rem;
}
.mb-4 {
  margin-bottom: 2rem;
}
