/* LocalExchangeRates - Currency Converter Design System */
:root {
  --font-display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', 'Segoe UI', Roboto, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', 'Segoe UI', Roboto, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', Menlo, Monaco, Consolas, monospace;
  --bg: #07080d;
  --surface: #0e1017;
  --surface-2: #151822;
  --surface-3: #1e2230;
  --surface-glass: rgba(14, 16, 23, 0.85);
  --fg: #f8fafc;
  --text-1: #e2e8f0;
  --text-2: #94a3b8;
  --text-3: #64748b;
  --border: rgba(255, 255, 255, 0.08);
  --border-soft: rgba(255, 255, 255, 0.05);
  --accent: #2563eb;
  --accent-bright: #3b82f6;
  --accent-glow: rgba(59, 130, 246, 0.25);
  --good: #10b981;
  --good-soft: rgba(16, 185, 129, 0.12);
  --warn: #f59e0b;
  --danger: #ef4444;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-bright);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: #60a5fa;
  text-decoration: underline;
}

/* Header */
.converter-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 20px;
}

.converter-nav {
  max-width: 1000px;
  margin: 0 auto;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.02em;
  text-decoration: none !important;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-link {
  font-size: 13px;
  color: var(--text-2);
  text-decoration: none !important;
  font-weight: 500;
}

.nav-link:hover {
  color: var(--fg);
}

.nav-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--surface-3);
  color: var(--fg);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--border);
  text-decoration: none !important;
  transition: all 0.15s ease;
}

.nav-tag:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Container */
.converter-container {
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 20px 48px;
  flex: 1;
}

/* Breadcrumb */
.converter-breadcrumb {
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 20px;
}

.converter-breadcrumb a {
  color: var(--text-3);
  text-decoration: none;
}

.converter-breadcrumb a:hover {
  color: var(--text-2);
}

.converter-breadcrumb span {
  color: var(--text-2);
}

/* Hero */
.converter-hero {
  margin-bottom: 28px;
}

.converter-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 8px;
  line-height: 1.25;
}

.hero-sub {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.5;
}

/* Cards */
.card, .converter-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
}

.converter-card h2 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 8px;
}

/* Converter Widget */
.converter-widget {
  background: linear-gradient(180deg, #10141f 0%, #0c0e16 100%);
  border: 1px solid rgba(59, 130, 246, 0.2);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.widget-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

@media (max-width: 720px) {
  .widget-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-group label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-3);
}

.input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px;
  transition: border-color 0.15s ease;
}

.input-row:focus-within {
  border-color: var(--accent-bright);
}

.currency-flag {
  font-size: 24px;
  line-height: 1;
}

.currency-code {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 16px;
  color: var(--fg);
}

.input-row input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--fg);
  text-align: right;
  min-width: 0;
}

.quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.chip {
  padding: 4px 8px;
  background: var(--surface-3);
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-2);
  cursor: pointer;
  transition: all 0.15s ease;
}

.chip:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--fg);
}

.swap-divider {
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-swap {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface-3);
  border: 1px solid var(--border);
  color: var(--fg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  text-decoration: none !important;
  transition: all 0.15s ease;
}

.btn-swap:hover {
  background: var(--accent);
  border-color: var(--accent-bright);
  transform: rotate(180deg);
}

.rate-preview {
  font-size: 12px;
  color: var(--text-3);
  font-family: var(--font-mono);
  text-align: right;
  margin-top: 4px;
}

/* Tables */
.table {
  width: 100%;
  border-collapse: collapse;
}

.table th, .table td {
  padding: 10px 12px;
}

.table tbody tr {
  border-bottom: 1px solid var(--border-soft);
  transition: background 0.15s ease;
}

.table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.table tbody tr:last-child {
  border-bottom: none;
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
}

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

.faq-item p {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.6;
}

.faq-item strong {
  color: var(--fg);
}

/* Footer */
.converter-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 24px 20px;
  margin-top: auto;
}

.footer-container {
  max-width: 1000px;
  margin: 0 auto;
  font-size: 13px;
  color: var(--text-3);
  text-align: center;
}