/* LiveTranslate Website — shared styles */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:   #6c63ff;
  --primary-d: #574fd6;
  --text:      #1a1a2e;
  --muted:     #6b7280;
  --border:    #e5e7eb;
  --bg:        #f9fafb;
  --white:     #ffffff;
  --error:     #ef4444;
  --success:   #22c55e;
  --radius:    10px;
  --shadow:    0 4px 20px rgba(0,0,0,0.08);
}

body {
  font-family: -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Nav ─────────────────────────────────────────────────── */
nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 10;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  text-decoration: none;
}
.nav-brand img { width: 28px; height: 28px; }
.nav-links { display: flex; align-items: center; gap: 20px; }
.nav-links a { font-size: 14px; color: var(--muted); }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.btn-nav {
  background: var(--primary);
  color: #fff !important;
  padding: 7px 18px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 500;
}
.btn-nav:hover { background: var(--primary-d); text-decoration: none; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: opacity 0.15s, background 0.15s;
  text-decoration: none;
}
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-primary  { background: var(--primary); color: #fff; }
.btn-primary:hover  { background: var(--primary-d); text-decoration: none; }
.btn-secondary { background: var(--border); color: var(--text); }
.btn-secondary:hover { background: #d1d5db; text-decoration: none; }
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn-outline:hover { background: #f0eeff; text-decoration: none; }
.btn-full { width: 100%; }
.btn-lg { padding: 14px 32px; font-size: 16px; }

/* ── Card / form container ───────────────────────────────── */
.card {
  background: var(--white);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 36px;
}

/* ── Form elements ───────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.form-group input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.15s;
  background: var(--white);
  color: var(--text);
}
.form-group input:focus { border-color: var(--primary); }
.form-group input.error { border-color: var(--error); }

/* ── Alerts ──────────────────────────────────────────────── */
.alert {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 18px;
}
.alert-error   { background: #fef2f2; color: #b91c1c; border: 1px solid #fca5a5; }
.alert-success { background: #f0fdf4; color: #15803d; border: 1px solid #86efac; }
.alert-info    { background: #eff6ff; color: #1d4ed8; border: 1px solid #93c5fd; }
.hidden { display: none !important; }

/* ── Badge ───────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-free { background: #f3f4f6; color: var(--muted); }
.badge-pro  { background: #6c63ff; color: #fff; }

/* ── Auth pages (login / register) ──────────────────────── */
.auth-page {
  min-height: calc(100vh - 60px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}
.auth-box {
  width: 100%;
  max-width: 400px;
}
.auth-box h1 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 6px;
}
.auth-box .subtitle {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 28px;
}
.auth-footer {
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  margin-top: 20px;
}

/* ── Hero (index.html) ───────────────────────────────────── */
.hero {
  text-align: center;
  padding: 80px 24px 60px;
  max-width: 780px;
  margin: 0 auto;
}
.hero h1 {
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}
.hero h1 span { color: var(--primary); }
.hero p {
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 36px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── Features grid ───────────────────────────────────────── */
.features {
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--border);
}
.feature-card .icon { font-size: 32px; margin-bottom: 14px; }
.feature-card h3 { font-size: 17px; margin-bottom: 8px; }
.feature-card p  { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ── Pricing page ────────────────────────────────────────── */
.pricing-page {
  max-width: 880px;
  margin: 0 auto;
  padding: 60px 24px;
}
.pricing-page h1 {
  text-align: center;
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 8px;
}
.pricing-page .lead {
  text-align: center;
  color: var(--muted);
  margin-bottom: 48px;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.pricing-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 32px;
}
.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(108,99,255,0.12);
}
.pricing-card .plan-name {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  margin-bottom: 8px;
}
.pricing-card.featured .plan-name { color: var(--primary); }
.pricing-card .price {
  font-size: 42px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 4px;
}
.pricing-card .price-period {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 24px;
}
.pricing-card ul {
  list-style: none;
  margin-bottom: 28px;
}
.pricing-card ul li {
  font-size: 14px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 8px;
}
.pricing-card ul li:last-child { border-bottom: none; }
.pricing-card ul li .check { color: var(--success); }

/* ── Dashboard ───────────────────────────────────────────── */
.dashboard-page {
  max-width: 680px;
  margin: 48px auto;
  padding: 0 24px;
}
.dashboard-page h1 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 28px;
}
.info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}
.info-row:last-child { border-bottom: none; }
.info-label { color: var(--muted); font-size: 13px; }
.info-value { font-weight: 500; }
.dashboard-actions {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

footer {
  text-align: center;
  padding: 40px 24px;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--border);
  margin-top: 60px;
}
