/* How It Works - Shared Styles */

/* CSS Variables matching main app (light mode only) */
:root {
  --background: hsl(0 0% 100%);
  --foreground: hsl(222.2 84% 4.9%);
  --card: hsl(0 0% 100%);
  --card-foreground: hsl(222.2 84% 4.9%);
  --primary: hsl(221.2 83.2% 53.3%);
  --primary-foreground: hsl(210 40% 98%);
  --secondary: hsl(210 40% 96%);
  --secondary-foreground: hsl(222.2 84% 4.9%);
  --muted: hsl(210 40% 96%);
  --muted-foreground: hsl(215.4 16.3% 46.9%);
  --accent: hsl(210 40% 96%);
  --accent-foreground: hsl(222.2 84% 4.9%);
  --border: hsl(214.3 31.8% 91.4%);
  --input: hsl(214.3 31.8% 91.4%);
  --ring: hsl(221.2 83.2% 53.3%);
  --radius: 0.5rem;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border-color: var(--border);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a:hover {
  text-decoration: underline;
}

/* Header - matching main app */
.header {
  border-bottom: 1px solid var(--border);
  background: var(--background);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-container {
  width: 100%;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 768px) {
  .header-left {
    gap: 2rem;
  }
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-size: 1.25rem;
  line-height: 2rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

@media (min-width: 768px) {
  .logo {
    font-size: 1.5rem;
  }
}

.logo:hover {
  text-decoration: none;
}

.logo-icon {
  width: 2rem;
  height: 2rem;
}

.logo-icon svg {
  width: 100%;
  height: 100%;
}

.nav-links {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted-foreground);
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  transition: all 0.15s ease;
}

.nav-link:hover {
  color: var(--foreground);
  background: var(--muted);
  text-decoration: none;
}

.nav-link.active {
  background: var(--primary);
  color: var(--primary-foreground);
}

.nav-link svg {
  width: 1rem;
  height: 1rem;
}

.lang-switcher {
  position: relative;
}

.lang-switcher select {
  appearance: none;
  background: var(--background);
  border: 1px solid var(--border);
  padding: 0.5rem 2rem 0.5rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  color: var(--foreground);
  font-family: inherit;
  transition: all 0.15s ease;
}

.lang-switcher select:hover {
  background: var(--muted);
}

.lang-switcher select:focus {
  outline: none;
  ring: 2px solid var(--ring);
}

.lang-switcher::after {
  content: '';
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--muted-foreground);
}

/* Main Layout */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 1rem;
}


/* Main Content */
.faq-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-section {
  margin-bottom: 2.5rem;
}

.page-title {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.025em;
}

.intro-text {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
  line-height: 1.75;
}

/* FAQ Sections */
.faq-section {
  margin-bottom: 3rem;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1rem;
  letter-spacing: -0.025em;
}

/* Accordion */
.accordion-item {
  border-bottom: 1px solid var(--border);
}

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

.accordion-trigger:hover {
  color: var(--primary);
}

.accordion-icon {
  width: 1rem;
  height: 1rem;
  transition: transform 0.2s ease;
  flex-shrink: 0;
  margin-left: 1rem;
  color: var(--muted-foreground);
}

.accordion-item.open .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.accordion-item.open .accordion-content {
  max-height: 2000px;
}

.accordion-content-inner {
  padding: 0 0 1.5rem 0;
  color: var(--foreground);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.accordion-content-inner p {
  margin-bottom: 0.875rem;
}

.accordion-content-inner p:last-child {
  margin-bottom: 0;
}

.accordion-content-inner ul,
.accordion-content-inner ol {
  margin: 0.75rem 0;
  padding-left: 1.5rem;
}

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

.accordion-content-inner li:last-child {
  margin-bottom: 0;
}

.accordion-content-inner strong {
  color: var(--foreground);
  font-weight: 600;
}

/* Tables */
.accordion-content-inner table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.875rem;
}

.accordion-content-inner th,
.accordion-content-inner td {
  padding: 0.625rem 0.75rem;
  text-align: left;
  border: 1px solid var(--border);
}

.accordion-content-inner th {
  background: var(--muted);
  font-weight: 600;
  color: var(--foreground);
}

.accordion-content-inner td {
  background: var(--card);
}

.accordion-content-inner tr:hover td {
  background: var(--muted);
}

@media (max-width: 768px) {
  .accordion-content-inner table {
    font-size: 0.75rem;
  }
  
  .accordion-content-inner th,
  .accordion-content-inner td {
    padding: 0.5rem;
  }
}

/* Footer */
.faq-footer {
  margin-top: 4rem;
  padding: 2.5rem;
  background: var(--muted);
  border-radius: calc(var(--radius) * 2);
  text-align: center;
}

.footer-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.footer-text {
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  background: var(--primary);
  color: var(--primary-foreground);
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.875rem;
  text-decoration: none;
  transition: opacity 0.15s ease;
  font-family: inherit;
}

.cta-button:hover {
  opacity: 0.9;
  text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
  .page-title {
    font-size: 1.5rem;
  }
  
  .intro-text {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 1.25rem;
  }
  
  .accordion-trigger {
    font-size: 0.875rem;
  }
  
  .accordion-content-inner {
    font-size: 0.875rem;
  }
  
  .nav-links {
    display: none;
  }
  
  .header-container {
    padding: 0.75rem 1rem;
  }
}

/* SVG Icons */
.icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
}

/* Share Button */
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  margin-left: 0.5rem;
  background: transparent;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  color: var(--muted-foreground);
  opacity: 0;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.share-btn:hover {
  background: var(--muted);
  color: var(--primary);
}

.share-btn svg {
  width: 1rem;
  height: 1rem;
}

/* Show share button on section title hover */
.section-title:hover .share-btn,
.accordion-trigger:hover .share-btn {
  opacity: 1;
}

/* Always show share button on mobile */
@media (max-width: 768px) {
  .share-btn {
    opacity: 0.7;
  }
}

/* Accordion actions container */
.accordion-actions {
  display: flex;
  align-items: center;
  margin-left: auto;
  flex-shrink: 0;
}

/* Toast notification */
.share-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  background: var(--foreground);
  color: var(--background);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  z-index: 1000;
  opacity: 0;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.share-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Adjust section title to accommodate share button */
.section-title {
  display: flex;
  align-items: center;
}

