/* ============================================================================
   GridMate — brand stylesheet
   Dark theme (#0A0D14) with blue→purple→pink brand gradient
   (#00BFFF → #7C3AED → #FF3FB4)
   ============================================================================ */

:root {
  --bg: #0a0d14;
  --bg-soft: #121724;
  --surface: #1a2130;
  --surface-2: #232c40;
  --border: #2c3750;
  --text: #e8ecf4;
  --text-dim: #9aa7bd;
  --brand-1: #00bfff;
  --brand-2: #7c3aed;
  --brand-3: #ff3fb4;
  --gradient: linear-gradient(135deg, #00bfff 0%, #7c3aed 50%, #ff3fb4 100%);
  --ok: #22c55e;
  --warn: #f59e0b;
  --danger: #ef4444;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
}

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

html, body {
  height: 100%;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

#app { min-height: 100vh; display: flex; flex-direction: column; }

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

/* --- Brand gradient text --- */
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--gradient); color: #fff; box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-danger { background: var(--danger); color: #fff; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

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

/* --- Inputs --- */
.input {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 15px;
  outline: none;
  transition: border-color 0.15s ease;
}
.input:focus { border-color: var(--brand-1); }
label { display: block; font-size: 13px; color: var(--text-dim); margin-bottom: 6px; }

/* --- Layout --- */
.container { max-width: 1080px; margin: 0 auto; padding: 24px; width: 100%; }
.page { padding: 32px 0; }

/* --- Header --- */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}
.app-header .brand { display: flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 700; }
.app-header nav { display: flex; gap: 18px; align-items: center; }
.app-header nav a { color: var(--text-dim); font-weight: 500; }
.app-header nav a.router-link-active { color: var(--brand-1); }

/* --- Auth pages --- */
.auth-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.auth-card { width: 100%; max-width: 420px; text-align: center; }
.auth-card .logo { width: 96px; height: 96px; margin: 0 auto 16px; border-radius: 24px; }
.auth-card h1 { font-size: 34px; margin-bottom: 6px; }
.auth-card .tagline { color: var(--text-dim); margin-bottom: 28px; }
.auth-card .field { margin-bottom: 16px; text-align: left; }
.auth-card .btn { width: 100%; margin-top: 8px; }
.auth-card .alt { margin-top: 18px; font-size: 14px; color: var(--text-dim); }

/* --- Status pills --- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.pill-online { background: rgba(34, 197, 94, 0.15); color: var(--ok); }
.pill-offline { background: rgba(154, 167, 189, 0.12); color: var(--text-dim); }
.pill-region { background: rgba(0, 191, 255, 0.15); color: var(--brand-1); }

/* --- Match cards --- */
.match-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.match-card { display: flex; flex-direction: column; gap: 10px; }
.match-card .row { display: flex; justify-content: space-between; align-items: center; }
.match-card .name { font-size: 18px; font-weight: 700; }
.match-card .meta { color: var(--text-dim); font-size: 13px; }

/* --- Messages --- */
.chat { display: flex; flex-direction: column; height: 60vh; }
.chat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.bubble { max-width: 70%; padding: 10px 14px; border-radius: 14px; font-size: 14px; line-height: 1.45; }
.bubble.mine { align-self: flex-end; background: var(--gradient); color: #fff; }
.bubble.theirs { align-self: flex-start; background: var(--surface-2); color: var(--text); }
.chat-input { display: flex; gap: 10px; padding: 12px; border-top: 1px solid var(--border); }

/* --- Moments timeline --- */
.timeline { display: flex; flex-direction: column; gap: 12px; }
.moment { display: flex; gap: 14px; align-items: flex-start; padding: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.moment .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gradient); margin-top: 6px; flex-shrink: 0; }

/* --- Misc --- */
.muted { color: var(--text-dim); }
.spacer { flex: 1; }
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 720px) { .grid-2 { grid-template-columns: 1fr; } }

/* --- Logo --- */
.logo-img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; }
.logo-img.lg { width: 96px; height: 96px; border-radius: 24px; }