/* Help Center CSS — Lexter Public Website */

/* ============================================================
   Reset & base
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Lato', sans-serif;
  color: #1E1818;
  background: #fff;
  line-height: 1.7;
}

a {
  color: #FF7548;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #e05e30;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ============================================================
   Header (same style as blog)
   ============================================================ */
.help-header {
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  position: sticky;
  top: 0;
  z-index: 100;
}

.help-nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.help-nav__logo img {
  height: 32px;
  width: auto;
}

.help-nav__center {
  display: flex;
  align-items: center;
  gap: 32px;
}

.help-nav__center a {
  font-family: 'Lexend', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: #1E1818;
  transition: color 0.2s;
}

.help-nav__center a:hover {
  color: #FF7548;
}

.help-nav__right {
  display: flex;
  align-items: center;
}

.help-nav__cta {
  display: inline-block;
  background: #FF7548;
  color: #fff !important;
  padding: 10px 24px;
  border-radius: 8px;
  font-family: 'Lexend', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background 0.2s;
  white-space: nowrap;
}

.help-nav__cta:hover {
  background: #e05e30;
  color: #fff !important;
}

/* Mobile nav */
.help-nav__hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.help-nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #1E1818;
  margin: 5px 0;
  transition: 0.3s;
}

@media (max-width: 768px) {
  .help-nav__center,
  .help-nav__right {
    display: none;
  }
  .help-nav__hamburger {
    display: block;
  }
  .help-nav.open .help-nav__center,
  .help-nav.open .help-nav__right {
    display: flex;
  }
  .help-nav.open {
    flex-wrap: wrap;
  }
  .help-nav.open .help-nav__center {
    order: 3;
    width: 100%;
    flex-direction: column;
    gap: 16px;
    padding: 16px 0;
    border-top: 1px solid #eee;
    margin-top: 12px;
  }
  .help-nav.open .help-nav__right {
    order: 4;
    width: 100%;
    justify-content: center;
    padding-bottom: 12px;
  }
}

/* ============================================================
   Help Hero (landing page)
   ============================================================ */
.help-hero {
  background: rgb(255, 248, 246);
  padding: 64px 0;
  text-align: center;
}

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

.help-hero h1 {
  font-family: 'Lexend', sans-serif;
  font-size: 40px;
  font-weight: 500;
  line-height: 1.2;
  color: #000;
  margin-bottom: 12px;
}

.help-hero p {
  font-size: 1.125rem;
  color: #555;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .help-hero {
    padding: 48px 0;
  }
  .help-hero h1 {
    font-size: 28px;
  }
}

/* ============================================================
   Search
   ============================================================ */
.help-search {
  position: relative;
  max-width: 640px;
  margin: 32px auto 0;
}

.help-search input {
  width: 100%;
  padding: 16px 20px 16px 48px;
  font-family: 'Lato', sans-serif;
  font-size: 17px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  outline: none;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.help-search input:focus {
  border-color: #FF7548;
  box-shadow: 0 4px 16px rgba(255, 117, 72, 0.15);
}

.help-search input::placeholder {
  color: #aaa;
}

/* Search icon */
.help-search::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 1;
}

.help-search__results {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #ddd;
  border-top: none;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  z-index: 50;
  max-height: 400px;
  overflow-y: auto;
}

.help-search__result {
  display: flex;
  flex-direction: column;
  padding: 12px 20px;
  border-bottom: 1px solid #f0f0f0;
  color: #1E1818;
  transition: background 0.15s;
}

.help-search__result:last-child {
  border-bottom: none;
}

.help-search__result:hover {
  background: #FFF8F5;
  color: #1E1818;
}

.help-search__result-title {
  font-family: 'Lexend', sans-serif;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.3;
}

.help-search__result-category {
  font-size: 12px;
  color: #FF7548;
  margin-top: 2px;
}

.help-search__empty {
  padding: 16px 20px;
  color: #999;
  font-size: 14px;
  text-align: center;
}

/* ============================================================
   Category sections (landing page)
   ============================================================ */
.help-categories {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 60px;
}

.help-category {
  margin-bottom: 40px;
}

.help-category h2 {
  font-family: 'Lexend', sans-serif;
  font-size: 1.5rem;
  font-weight: 500;
  color: #1E1818;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #FF7548;
}

.help-category__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.help-category__card {
  display: block;
  padding: 20px 24px;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  color: #1E1818;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.help-category__card:hover {
  border-color: #FF7548;
  box-shadow: 0 2px 8px rgba(255, 117, 72, 0.1);
  color: #1E1818;
}

.help-category__card h3 {
  font-family: 'Lexend', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  margin: 0;
}

@media (max-width: 600px) {
  .help-category__grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Breadcrumb
   ============================================================ */
.help-breadcrumb {
  max-width: 800px;
  margin: 0 auto;
  padding: 24px 24px 0;
  font-size: 0.875rem;
  color: #888;
}

.help-breadcrumb a {
  color: #888;
  transition: color 0.2s;
}

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

.help-breadcrumb span {
  margin: 0 6px;
}

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

.help-article h1 {
  font-family: 'Lexend', sans-serif;
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.3;
  color: #1E1818;
  margin-bottom: 24px;
}

.help-article__body h2 {
  font-family: 'Lexend', sans-serif;
  font-size: 1.375rem;
  font-weight: 500;
  color: #1E1818;
  margin: 32px 0 12px;
  line-height: 1.4;
}

.help-article__body h3 {
  font-family: 'Lexend', sans-serif;
  font-size: 1.125rem;
  font-weight: 500;
  color: #1E1818;
  margin: 24px 0 8px;
}

.help-article__body p,
.help-article__body div {
  margin-bottom: 12px;
  line-height: 1.7;
}

.help-article__body ul,
.help-article__body ol {
  margin: 12px 0 12px 24px;
  line-height: 1.7;
}

.help-article__body li {
  margin-bottom: 6px;
}

.help-article__body img {
  margin: 20px 0;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.help-article__body blockquote {
  border-left: 4px solid #FF7548;
  padding: 12px 20px;
  margin: 20px 0;
  background: #fff8f6;
  border-radius: 0 8px 8px 0;
}

.help-article__body table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.9375rem;
}

.help-article__body th,
.help-article__body td {
  padding: 10px 14px;
  border: 1px solid #e8e8e8;
  text-align: left;
}

.help-article__body th {
  background: #f8f8f8;
  font-weight: 700;
}

.help-article__body hr {
  border: none;
  border-top: 1px solid #e8e8e8;
  margin: 24px 0;
}

.help-article__body a {
  color: #FF7548;
  text-decoration: underline;
}

.help-article__body a:hover {
  color: #e05e30;
}

/* ============================================================
   Footer (same style as blog)
   ============================================================ */
.help-footer {
  background: #1E1818;
  color: #ccc;
  padding: 60px 0 0;
}

.help-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.help-footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.help-footer__brand .footer-logo {
  height: 28px;
  width: auto;
  margin-bottom: 20px;
  filter: brightness(0) invert(1);
}

.help-footer__social {
  display: flex;
  gap: 12px;
}

.help-footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: background 0.2s;
}

.help-footer__social a:hover {
  background: #FF7548;
}

.help-footer__social svg {
  width: 18px;
  height: 18px;
  fill: #fff;
}

.help-footer__column h4 {
  font-family: 'Lexend', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 16px;
}

.help-footer__column ul {
  list-style: none;
}

.help-footer__column li {
  margin-bottom: 10px;
}

.help-footer__column a {
  color: #ccc;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.help-footer__column a:hover {
  color: #FF7548;
}

.help-footer__support-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.help-footer__support-item svg {
  width: 18px;
  height: 18px;
  fill: #ccc;
  flex-shrink: 0;
}

.help-footer__support-item span {
  font-size: 0.875rem;
}

.help-footer__bottom {
  padding: 24px 0;
  text-align: center;
  font-size: 0.8rem;
  color: #888;
}

@media (max-width: 768px) {
  .help-footer__top {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
