/* ─── Reset & base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #0f1117;
  --surface:  #1a1d27;
  --border:   #2a2d3a;
  --accent:   #6c63ff;
  --accent2:  #48d9a4;
  --text:     #e8eaf0;
  --muted:    #8b8fa8;
  --danger:   #e05c5c;
  --radius:   10px;
  --font:     'Inter', system-ui, -apple-system, sans-serif;
}

[data-theme="light"] {
  --bg:      #f0f2f8;
  --surface: #ffffff;
  --border:  #d8dce8;
  --text:    #1a1d27;
  --muted:   #6b7280;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ─── Header ───────────────────────────────────────────────── */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 56px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.logo:hover { text-decoration: none; }

.site-header nav { display: flex; align-items: center; gap: 1.5rem; }
.site-header nav a { color: var(--muted); font-size: 0.9rem; }
.site-header nav a:hover, .site-header nav a.active { color: var(--text); text-decoration: none; }

.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 99px;
  color: var(--muted);
  cursor: pointer;
  font-size: 1rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, border-color 0.2s;
  flex-shrink: 0;
}
.theme-toggle:hover { color: var(--text); border-color: var(--muted); }

/* ─── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 1.2rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: opacity 0.15s, transform 0.1s;
}
.btn:hover { opacity: 0.88; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary  { background: var(--accent);  color: #fff; }
.btn-success  { background: var(--accent2); color: #0f1117; }
.btn-outline  { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-danger   { background: var(--danger);  color: #fff; }
.btn-sm       { padding: 0.3rem 0.75rem; font-size: 0.8rem; }
.btn-full     { width: 100%; }

/* ─── Forms ────────────────────────────────────────────────── */
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: 0.35rem; font-size: 0.85rem; color: var(--muted); }
.form-group input {
  width: 100%;
  padding: 0.6rem 0.9rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.95rem;
}
.form-group input:focus { outline: none; border-color: var(--accent); }

.form-error   { color: var(--danger);  font-size: 0.85rem; margin-top: 0.4rem; }
.form-success { color: var(--accent2); font-size: 0.85rem; margin-top: 0.4rem; }

/* ─── Card ─────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

/* ─── Hero (landing) ───────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 5rem 1rem 4rem;
}
.hero h1 {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}
.hero p {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto 2rem;
}
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ─── Steps section ────────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto 5rem;
  padding: 0 1rem;
}
.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.step-num {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 0.75rem;
}
.step-card h3 { font-size: 1rem; margin-bottom: 0.4rem; }
.step-card p  { font-size: 0.85rem; color: var(--muted); }

/* ─── Auth modal / card ────────────────────────────────────── */
.auth-section {
  display: flex;
  justify-content: center;
  padding: 2rem 1rem;
}
.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  width: 100%;
  max-width: 400px;
}
.auth-card h2 { font-size: 1.2rem; margin-bottom: 1.25rem; }
.auth-toggle { text-align: center; margin-top: 1rem; font-size: 0.85rem; color: var(--muted); }

/* ─── Account page ─────────────────────────────────────────── */
.account-page { max-width: 620px; margin: 0 auto; padding: 2rem 1rem; }
.account-page h1 { font-size: 1.5rem; margin-bottom: 1.5rem; }
.account-section { margin-bottom: 2rem; }
.account-section h2 { font-size: 1rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 1rem; }
.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.5rem;
}
.badge {
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 99px;
  font-weight: 600;
}
.badge-ok      { background: rgba(72,217,164,.15); color: var(--accent2); }
.badge-pending { background: rgba(139,143,168,.15); color: var(--muted); }

/* ─── Pastes list ──────────────────────────────────────────── */
.pastes-list { max-width: 800px; margin: 0 auto; padding: 2rem 1rem; }
.pastes-list h1 { font-size: 1.5rem; margin-bottom: 1.5rem; }
.pastes-list ul { list-style: none; }
.pastes-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.6rem;
}
.pastes-list li a { color: var(--text); font-weight: 500; }
.pastes-list li a:hover { color: var(--accent); }
.pastes-list .date { font-size: 0.8rem; color: var(--muted); white-space: nowrap; }
.empty { color: var(--muted); }

/* ─── Paste view ───────────────────────────────────────────── */
.paste-view { max-width: 900px; margin: 0 auto; padding: 2rem 1rem; }
.paste-meta { margin-bottom: 1.5rem; }
.paste-meta h1 { font-size: 1.4rem; margin-bottom: 0.4rem; }
.paste-meta .source { font-size: 0.85rem; color: var(--muted); margin-bottom: 0.3rem; }
.paste-meta .date   { font-size: 0.8rem;  color: var(--muted); margin-bottom: 0.75rem; }
.paste-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: 'Fira Code', 'Cascadia Code', monospace;
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ─── Alert bar ────────────────────────────────────────────── */
.alert {
  padding: 0.8rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}
.alert-error   { background: rgba(224,92,92,.15);  color: #f07070; border: 1px solid rgba(224,92,92,.3); }
.alert-success { background: rgba(72,217,164,.12); color: var(--accent2); border: 1px solid rgba(72,217,164,.3); }

/* ─── Footer ───────────────────────────────────────────────── */
footer { text-align: center; padding: 2rem; color: var(--muted); font-size: 0.8rem; border-top: 1px solid var(--border); margin-top: 4rem; }
