/* Easy Exchange - Documentation Styles */

:root {
  --primary: #4CAF50;
  --primary-dark: #388E3C;
  --primary-light: #81C784;
  --bg: #FAFAFA;
  --surface: #FFFFFF;
  --text: #212121;
  --text-secondary: #757575;
  --border: #E0E0E0;
  --shadow: rgba(0, 0, 0, 0.08);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121212;
    --surface: #1E1E1E;
    --text: #E0E0E0;
    --text-secondary: #9E9E9E;
    --border: #333333;
    --shadow: rgba(0, 0, 0, 0.3);
  }
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  padding: 0;
  margin: 0;
}

/* Header */
.header {
  background-color: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 16px 20px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 4px var(--shadow);
}

.header-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.header-brand span {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}

/* Language selector */
.lang-selector select {
  appearance: none;
  -webkit-appearance: none;
  background-color: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 28px 6px 10px;
  font-size: 0.85rem;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23757575' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
}

.lang-selector select:focus {
  outline: none;
  border-color: var(--primary);
}

/* Main content */
.content {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 20px 40px;
}

.content h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.content .effective-date {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.content h2 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-top: 28px;
  margin-bottom: 10px;
}

@media (prefers-color-scheme: dark) {
  .content h2 {
    color: var(--primary-light);
  }
}

.content p {
  margin-bottom: 12px;
  color: var(--text);
}

.content ul, .content ol {
  margin-bottom: 12px;
  padding-left: 24px;
}

.content li {
  margin-bottom: 6px;
  color: var(--text);
}

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

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

/* FAQ section */
.faq-item {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 12px;
}

.faq-item h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.faq-item p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* Contact box */
.contact-box {
  background-color: var(--surface);
  border: 1px solid var(--primary);
  border-radius: 10px;
  padding: 20px;
  margin-top: 24px;
  text-align: center;
}

.contact-box h2 {
  margin-top: 0;
  color: var(--primary);
}

.contact-box a {
  display: inline-block;
  background-color: var(--primary);
  color: #FFFFFF;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 600;
  margin-top: 10px;
  text-decoration: none;
}

.contact-box a:hover {
  background-color: var(--primary-dark);
  text-decoration: none;
}

/* Footer */
.footer {
  max-width: 720px;
  margin: 0 auto;
  padding: 20px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-secondary);
  border-top: 1px solid var(--border);
}

/* Language sections - hidden by default */
.lang-section {
  display: none;
}

.lang-section.active {
  display: block;
}

/* Responsive */
@media (max-width: 480px) {
  html {
    font-size: 15px;
  }

  .header {
    padding: 12px 16px;
  }

  .content {
    padding: 20px 16px 32px;
  }
}
