/* TripCanvas — Luxury dark aesthetic */
/* Vibe: private members club, not corporate SaaS */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Jost:wght@300;400;500&display=swap');

:root {
  --bg-deep:    #080c12;
  --bg-surface: #0e1420;
  --bg-card:    #121928;
  --bg-hover:   #1a2438;
  --gold:       #c9a84c;
  --gold-light: #e8c97a;
  --gold-dim:   #8a6e30;
  --text-primary:   #f0ead6;
  --text-secondary: #8a9ab0;
  --text-muted:     #4a5568;
  --border:     #1e2d42;
  --border-gold: rgba(201,168,76,0.3);
  --error:      #e05555;
  --success:    #4caf7d;
  --radius:     4px;
  --transition: 0.2s ease;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Jost', sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Typography ─────────────────────────────── */
h1, h2, h3, .serif {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  letter-spacing: 0.02em;
}

h1 { font-size: 2.8rem; line-height: 1.15; }
h2 { font-size: 2rem; }
h3 { font-size: 1.4rem; }

.brand {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 1.5rem;
  color: var(--gold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
}

/* ── Layout ─────────────────────────────────── */
.page-auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.page-auth .auth-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 3rem 2rem;
}

.page-auth .art-panel {
  background: var(--bg-surface);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 3rem;
}

.page-auth .art-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 60% 30%, rgba(201,168,76,0.08) 0%, transparent 60%),
    linear-gradient(160deg, #0e1420 0%, #060a10 100%);
}

.art-panel-text {
  position: relative;
  z-index: 1;
}

.art-panel-text h2 {
  font-size: 3rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.art-panel-text p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 300;
  max-width: 320px;
}

.art-ornament {
  position: absolute;
  top: 3rem;
  right: 3rem;
  width: 120px;
  height: 120px;
  border: 1px solid var(--border-gold);
  border-radius: 50%;
  opacity: 0.4;
}

.art-ornament::after {
  content: '';
  position: absolute;
  inset: 15px;
  border: 1px solid var(--border-gold);
  border-radius: 50%;
}

/* ── Auth Form Card ──────────────────────────── */
.auth-card {
  width: 100%;
  max-width: 420px;
}

.auth-card .brand-wrap {
  margin-bottom: 2.5rem;
  text-align: center;
}

.auth-card h1 {
  font-size: 2rem;
  margin-bottom: 0.35rem;
}

.auth-card .subtitle {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 300;
}

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

.form-label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-family: 'Jost', sans-serif;
  font-size: 0.95rem;
  font-weight: 300;
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  -webkit-appearance: none;
}

.form-input:focus {
  border-color: var(--gold-dim);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.08);
}

.form-input::placeholder { color: var(--text-muted); }

/* ── Upload zones ────────────────────────────── */
.upload-zone {
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  position: relative;
  background: var(--bg-surface);
}

.upload-zone:hover, .upload-zone.drag-over {
  border-color: var(--gold-dim);
  background: var(--bg-hover);
}

.upload-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.upload-zone .upload-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

.upload-zone .upload-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
}

.upload-zone .upload-hint {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.upload-preview {
  margin-top: 0.75rem;
  display: none;
}

.upload-preview img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.upload-preview.circle img {
  border-radius: 50%;
}

/* ── Buttons ─────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.75rem;
  font-family: 'Jost', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold);
  color: #080c12;
}

.btn-primary:hover {
  background: var(--gold-light);
  box-shadow: 0 4px 20px rgba(201,168,76,0.25);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--gold-dim);
  color: var(--gold);
}

.btn-full { width: 100%; }

/* ── Divider ─────────────────────────────────── */
.divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── Alerts ──────────────────────────────────── */
.alert {
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
  border: 1px solid;
}

.alert-error {
  background: rgba(224,85,85,0.08);
  border-color: rgba(224,85,85,0.3);
  color: #f08080;
}

.alert-success {
  background: rgba(76,175,125,0.08);
  border-color: rgba(76,175,125,0.3);
  color: #70d4a0;
}

/* ── Nav ─────────────────────────────────────── */
.app-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-surface);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border-gold);
}

.nav-avatar-placeholder {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-hover);
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 500;
}

/* ── Dashboard ───────────────────────────────── */
.page-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 2rem;
}

.profile-photo-lg {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-gold);
  flex-shrink: 0;
}

.profile-photo-placeholder {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--bg-hover);
  border: 2px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1.8rem;
  font-family: 'Cormorant Garamond', serif;
  flex-shrink: 0;
}

.profile-info h2 {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.profile-info .agency { color: var(--text-secondary); font-size: 0.875rem; }
.profile-info .email { color: var(--text-muted); font-size: 0.8rem; margin-top: 0.25rem; }

.agency-logo {
  max-height: 48px;
  max-width: 160px;
  object-fit: contain;
  margin-left: auto;
  opacity: 0.85;
}

/* ── Onboarding stepper ──────────────────────── */
.onboarding-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(201,168,76,0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 10%, rgba(201,168,76,0.03) 0%, transparent 50%),
    var(--bg-deep);
}

.onboarding-card {
  width: 100%;
  max-width: 560px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2.5rem;
}

.onboarding-card .card-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.onboarding-card h1 {
  font-size: 2rem;
  margin-bottom: 0.35rem;
}

.gold-rule {
  width: 40px;
  height: 1px;
  background: var(--gold);
  margin: 0.75rem auto;
  opacity: 0.6;
}

/* ── Util ────────────────────────────────────── */
.text-center { text-align: center; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-gold { color: var(--gold); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.gap-1 { gap: 0.5rem; }
.link {
  color: var(--gold);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color var(--transition);
}
.link:hover { color: var(--gold-light); }

/* ── Profile form two-col ────────────────────── */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-grid .span-full { grid-column: 1 / -1; }

/* ── Upload pair ─────────────────────────────── */
.upload-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

/* ── Responsive ──────────────────────────────── */
@media (max-width: 768px) {
  .page-auth { grid-template-columns: 1fr; }
  .page-auth .art-panel { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .upload-pair { grid-template-columns: 1fr; }
  .profile-header { flex-direction: column; text-align: center; }
  .agency-logo { margin: 0 auto; }
  .app-nav { padding: 1rem 1.25rem; }
}
