/* ── Design tokens ─────────────────────────────────────────────────────────── */
:root {
  --bg: #0a0a0f;
  --surface: #14142a;
  --surface-alt: #1e1e38;
  --accent: #c9a84c;
  --accent-light: #e6c96b;
  --text: #f0f0f0;
  --text-muted: #8888aa;
  --success: #4caf79;
  --error: #e74c3c;
  --linkedin: #0077b5;
  --microsoft: #0078d4;
  --google: #ea4335;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

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

/* ── Base ──────────────────────────────────────────────────────────────────── */
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-font-smoothing: antialiased;
}

/* ── Home ──────────────────────────────────────────────────────────────────── */
body.home main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  padding: 2rem;
  text-align: center;
}

.name-display {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-weight: 900;
  font-style: italic;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.02em;
  /* JS will set font-size to fill 75 vw */
  white-space: nowrap;
  text-shadow: 0 0 80px rgba(201, 168, 76, 0.3);
  user-select: none;
}

.contact-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 340px;
}

/* ── Buttons ───────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0.9rem 2rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: opacity 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease;
  letter-spacing: 0.01em;
}
.btn:hover  { opacity: 0.88; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }

.btn-professional { background: var(--accent); color: #0a0a0f; }
.btn-contact { background: var(--accent); color: #0a0a0f; }
.btn-social {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

/* Provider buttons */
.btn-linkedin  { background: var(--linkedin);  color: #fff; }
.btn-microsoft { background: var(--microsoft); color: #fff; }
.btn-google    { background: var(--google);    color: #fff; }

/* Send button */
.btn-send {
  background: var(--accent);
  color: #0a0a0f;
  width: 100%;
  padding: 1rem;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: var(--radius);
  cursor: pointer;
  border: none;
  margin-top: 0.5rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ── Inner pages layout ────────────────────────────────────────────────────── */
body.professional main,
body.social main,
body.contact main {
  width: 100%;
  max-width: 520px;
  padding: 2rem 1.5rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  margin-bottom: 1.75rem;
  transition: color 0.15s;
}
.back-link:hover { color: var(--accent); }

h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

/* ── Contact page ──────────────────────────────────────────────────────────── */
.signin-intro {
  color: var(--text-muted);
  margin-bottom: 0.25rem;
  line-height: 1.55;
}

.linkedin-profile-card {
  background: var(--surface);
  border: 1px solid rgba(201, 168, 76, 0.4);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow);
}

.linkedin-profile-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--linkedin);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: 0.75rem;
  transition: opacity 0.15s;
}
.linkedin-profile-link:hover { opacity: 0.8; }

.section-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin: 2rem 0;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

/* ── Auth section ──────────────────────────────────────────────────────────── */
#login-section > p {
  color: var(--text-muted);
  margin-bottom: 0.25rem;
  line-height: 1.55;
}

.auth-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.provider-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ── Contact card ──────────────────────────────────────────────────────────── */
.contact-card {
  background: var(--surface);
  border: 1px solid rgba(201, 168, 76, 0.4);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.contact-card-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.contact-card-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.97rem;
}
.contact-card-row:last-child { border-bottom: none; }

.contact-card-label {
  color: var(--text-muted);
  min-width: 3rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.contact-card-row a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.15s;
}
.contact-card-row a:hover { color: var(--accent-light); }

.verified-note {
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-top: 1rem;
}

/* ── Form styles ───────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-size: 0.825rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

input[type='text'],
input[type='email'],
input[type='tel'],
textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
  resize: vertical;
}
input:focus,
textarea:focus { border-color: var(--accent); }

/* ── Feedback panels ───────────────────────────────────────────────────────── */
.success-card {
  background: var(--surface);
  border: 1px solid var(--success);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
}
.success-card h3 { color: var(--success); margin-bottom: 0.5rem; font-size: 1.3rem; }

.error-panel {
  background: rgba(231, 76, 60, 0.1);
  border: 1px solid rgba(231, 76, 60, 0.4);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
  color: var(--error);
  font-size: 0.9rem;
  margin-top: 1rem;
}

/* ── Spinner ───────────────────────────────────────────────────────────────── */
.spinner {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,0.2);
  border-top-color: var(--text);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 420px) {
  body.professional main,
  body.social main,
  body.contact main { padding: 1.5rem 1rem; }
  .contact-options { max-width: 100%; }
}
