/* FAQ Page Styles - Theme Support */
:root {
  --gold: #f2b705;
  --gold-dark: #c98a00;
  --amber: #f5d061;
  --charcoal: #1e1f24;
  --white: #ffffff;

  /* Dark mode (default) */
  --bg-primary: #0f1014;
  --bg-secondary: #1a1b23;
  --bg-tertiary: #16171f;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-input: rgba(255, 255, 255, 0.04);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-tertiary: rgba(255, 255, 255, 0.5);
  --border-color: rgba(255, 255, 255, 0.06);
  --border-input: rgba(255, 255, 255, 0.08);
}

[data-theme="light"] {
  /* Light mode */
  --bg-primary: #e8e9ea;
  --bg-secondary: #f0f1f2;
  --bg-tertiary: #d8d9da;
  --bg-card: rgba(240, 241, 242, 0.95);
  --bg-input: rgba(0, 0, 0, 0.03);
  --text-primary: #2a2b35;
  --text-secondary: rgba(42, 43, 53, 0.7);
  --text-tertiary: rgba(42, 43, 53, 0.5);
  --border-color: rgba(0, 0, 0, 0.06);
  --border-input: rgba(0, 0, 0, 0.08);
}

/* Auth Header Styles (from cart.css) */
.auth-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 1.5rem;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

[data-theme="light"] .auth-header {
  background: rgba(240, 241, 242, 0.9);
}

.auth-header-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s ease;
}

.auth-logo:hover {
  opacity: 0.8;
}

.auth-logo img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(242, 183, 5, 0.3));
}

.auth-company-name {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  transition: color 0.3s ease;
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
  position: relative;
  overflow: hidden;
}

.theme-toggle:hover {
  background: var(--bg-input);
  border-color: var(--gold);
  transform: scale(1.05);
}

.theme-icon {
  position: absolute;
  width: 20px;
  height: 20px;
  color: var(--text-primary);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-icon-dark {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.theme-icon-light {
  opacity: 0;
  transform: rotate(90deg) scale(0);
}

[data-theme="light"] .theme-icon-dark {
  opacity: 0;
  transform: rotate(-90deg) scale(0);
}

[data-theme="light"] .theme-icon-light {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

/* FAQ Page Styles */
.faq-page {
  min-height: 100vh;
  padding-top: 80px;
  background: var(--bg-primary);
  color: var(--text-primary);
  transition: background-color 0.3s ease, color 0.3s ease;
  padding-bottom: 4rem;
}

.faq-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
}

.faq-header {
  text-align: center;
  margin-bottom: 3rem;
  padding-top: 2rem;
}

.faq-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  position: relative;
  display: inline-block;
}

.faq-title::after {
  content: "";
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--amber) 100%);
  border-radius: 2px;
}

.faq-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-top: 1.5rem;
}

/* Search */
.faq-search {
  margin-bottom: 2rem;
}

.search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 1.25rem;
  color: var(--text-tertiary);
  pointer-events: none;
  transition: color 0.3s ease;
}

.search-input {
  width: 100%;
  padding: 1rem 1rem 1rem 3.5rem;
  background: var(--bg-input);
  border: 1px solid var(--border-input);
  border-radius: 0.75rem;
  color: var(--text-primary);
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: "Poppins", sans-serif;
}

.search-input:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--bg-card);
  box-shadow: 0 0 0 3px rgba(242, 183, 5, 0.1);
}

.search-input::placeholder {
  color: var(--text-tertiary);
}

.search-clear {
  position: absolute;
  right: 1rem;
  background: transparent;
  border: none;
  color: var(--text-tertiary);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-clear:hover {
  color: var(--text-primary);
  background: var(--bg-input);
}

/* Categories */
.faq-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  justify-content: center;
}

@media (max-width: 1024px) {
  .faq-categories {
    justify-content: center;
  }
}

.category-btn {
  padding: 0.625rem 1.25rem;
  background: var(--bg-input);
  border: 1px solid var(--border-input);
  border-radius: 0.625rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: "Poppins", sans-serif;
}

.category-btn:hover {
  background: var(--bg-card);
  border-color: var(--border-color);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.category-btn.active {
  background: linear-gradient(135deg, var(--gold) 0%, var(--amber) 100%);
  border-color: var(--gold);
  color: var(--charcoal);
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(242, 183, 5, 0.25);
}

.category-btn.active:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(242, 183, 5, 0.35);
}

/* FAQ Items */
.faq-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 0.875rem;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item:hover {
  border-color: rgba(242, 183, 5, 0.3);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.faq-item.active {
  border-color: var(--gold);
  box-shadow: 0 4px 20px rgba(242, 183, 5, 0.15);
}

.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: transparent;
  border: none;
  text-align: left;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-family: "Poppins", sans-serif;
  transition: color 0.3s ease;
}

.faq-question:hover {
  color: var(--gold);
}

.faq-icon {
  flex-shrink: 0;
  color: var(--text-tertiary);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: var(--gold);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
  padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 1.5rem 1.5rem;
}

.faq-answer p {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.95rem;
  margin: 0;
  padding-top: 0.5rem;
}

/* Footer */
.faq-footer {
  text-align: center;
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border-color);
}

.faq-footer p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.faq-contact-btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  background: linear-gradient(135deg, var(--gold) 0%, var(--amber) 100%);
  color: var(--charcoal);
  text-decoration: none;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(242, 183, 5, 0.2);
}

.faq-contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(242, 183, 5, 0.3);
  background: linear-gradient(135deg, var(--amber) 0%, var(--gold) 100%);
}

/* Empty State */
.faq-empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-secondary);
}

.faq-empty-state svg {
  width: 64px;
  height: 64px;
  margin-bottom: 1.5rem;
  color: var(--text-tertiary);
  opacity: 0.6;
}

.faq-empty-state h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-weight: 600;
}

.faq-empty-state p {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* Hidden */
.faq-section.hidden,
.faq-item.hidden {
  display: none;
}

/* Responsive */
@media (max-width: 1024px) {
  .faq-categories {
    justify-content: center;
  }
}

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

  .faq-title {
    font-size: 2.25rem;
  }

  .faq-subtitle {
    font-size: 1rem;
  }

  .faq-categories {
    justify-content: center;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
  }

  .category-btn {
    white-space: nowrap;
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
  }

  .faq-question {
    padding: 1rem 1.25rem;
    font-size: 0.95rem;
  }

  .faq-answer {
    padding: 0 1.25rem;
  }

  .faq-item.active .faq-answer {
    padding: 0 1.25rem 1.25rem;
  }
}

@media (max-width: 480px) {
  .faq-page {
    padding-top: 70px;
  }

  .faq-container {
    padding: 0 1rem;
  }

  .faq-header {
    margin-bottom: 2rem;
    padding-top: 1rem;
  }

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

  .faq-subtitle {
    font-size: 0.9rem;
    margin-top: 1rem;
  }

  .search-input {
    padding: 0.875rem 0.875rem 0.875rem 3rem;
    font-size: 0.95rem;
  }

  .faq-question {
    padding: 0.875rem 1rem;
    font-size: 0.9rem;
  }

  .faq-answer p {
    font-size: 0.9rem;
  }

  .faq-categories {
    justify-content: center;
  }
}

/* Breadcrumb Navigation */
.breadcrumb-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-primary);
}

.breadcrumb-link {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 500;
}

.breadcrumb-link:hover {
  color: var(--gold);
}

.breadcrumb-separator {
  color: var(--text-tertiary);
  margin: 0 0.25rem;
}

.breadcrumb-current {
  color: var(--text-primary);
  font-weight: 600;
}

[data-theme="light"] .breadcrumb-nav {
  border-bottom-color: var(--border-color);
}

[data-theme="light"] .breadcrumb-link {
  color: var(--text-secondary);
}

[data-theme="light"] .breadcrumb-link:hover {
  color: var(--gold);
}

[data-theme="light"] .breadcrumb-current {
  color: var(--text-primary);
}
