/* ============================================================
   VolleyPass — Global Stylesheet
   ============================================================ */

:root {
  --primary:        #B73C2C;
  --primary-dark:   #842619;
  --primary-light:  #FBEBEA;
  --blue:           #0369a1;
  --text:           #0C2320;
  --text-muted:     #6b7280;
  --border:         #e5e7eb;
  --bg:             #f9fafb;
  --white:          #ffffff;
  --error:          #dc2626;
  --error-bg:       #fef2f2;
  --success:        #16a34a;
  --success-bg:     #f0fdf4;
  --radius:         8px;
  --radius-lg:      12px;
  --shadow:         0 1px 3px rgba(0,0,0,.10), 0 1px 2px rgba(0,0,0,.06);
  --shadow-lg:      0 10px 15px -3px rgba(0,0,0,.10), 0 4px 6px -2px rgba(0,0,0,.05);
  --font:           'Montserrat', system-ui, -apple-system, sans-serif;

  /* ── Navbar theme — palette pick ── */
  --navbar-bg:      #ffffff;
  --navbar-border:  #e5e7eb;
  --navbar-brand:   #0C2320;
  --navbar-link:    #0C2320;
  --navbar-mark:    #B73C2C;
}

/* ── Reset ─────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  min-height: 100vh;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Typography ─────────────────────────────────────────────── */

h1 { font-size: 1.75rem; font-weight: 700; line-height: 1.25; }
h2 { font-size: 1.375rem; font-weight: 600; line-height: 1.3; }
h3 { font-size: 1.125rem; font-weight: 600; }
p  { color: var(--text-muted); }

/* ── Layout ─────────────────────────────────────────────────── */

.page-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem 1rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 420px;
}

/* ── Logo ───────────────────────────────────────────────────── */

.logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  margin-bottom: 2rem;
}

.logo-mark {
  width: 36px;
  height: 36px;
  background: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.125rem;
}

/* ── Navbar ─────────────────────────────────────────────────── */

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navbar-bg);
  border-bottom: 1px solid var(--navbar-border);
  padding: 0 1.5rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--navbar-brand);
  text-decoration: none;
}

.navbar-logo .logo-mark {
  background: var(--navbar-mark, var(--navbar-brand));
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.navbar-links a {
  color: var(--navbar-link);
  font-size: .9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: color .15s;
}

.navbar-links a:hover { color: var(--navbar-brand); }

.navbar-links a.btn-primary,
.navbar-links a.btn-primary:hover { color: #ffffff; }

.navbar-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  cursor: pointer;
}

.navbar-avatar-placeholder {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #ffffff;
}

.navbar-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: .25rem;
  color: var(--navbar-brand);
}

@media (max-width: 640px) {
  .navbar {
    height: auto;
    padding: .75rem 1.5rem;
  }
  .navbar-links { display: none; }
  .navbar-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navbar-bg);
    border-bottom: 1px solid var(--navbar-border);
    padding: 1rem 1.5rem;
    gap: 1rem;
  }
  .navbar-hamburger { display: flex; }
}

/* ── Forms ──────────────────────────────────────────────────── */

.form-group {
  display: flex;
  flex-direction: column;
  gap: .375rem;
  margin-bottom: 1.25rem;
}

label {
  font-size: .875rem;
  font-weight: 500;
  color: var(--text);
}

label .hint {
  font-weight: 400;
  color: var(--text-muted);
  font-size: .8125rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="url"],
select,
textarea {
  width: 100%;
  padding: .625rem .75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: .9375rem;
  color: var(--text);
  background: var(--white);
  transition: border-color .15s, box-shadow .15s;
  outline: none;
  appearance: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, .15);
}

input.error,
select.error,
textarea.error {
  border-color: var(--error);
}

textarea {
  resize: vertical;
  min-height: 100px;
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .75rem center;
  padding-right: 2.5rem;
}

/* ── Buttons ────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .625rem 1.25rem;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: .9375rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background .15s, opacity .15s;
  text-decoration: none;
}

.btn:hover { text-decoration: none; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

.btn-primary {
  background: var(--primary);
  color: var(--white);
  width: 100%;
}

.btn-primary:hover:not(:disabled) { background: var(--primary-dark); }

.btn-secondary {
  background: var(--white);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover:not(:disabled) { background: var(--bg); }

.btn-danger {
  background: var(--error);
  color: var(--white);
}

.btn-danger:hover:not(:disabled) { background: #b91c1c; }

/* ── Alerts ─────────────────────────────────────────────────── */

.alert {
  padding: .75rem 1rem;
  border-radius: var(--radius);
  font-size: .875rem;
  margin-bottom: 1.25rem;
  display: none;
}

.alert.show { display: block; }

.alert-error {
  background: var(--error-bg);
  color: var(--error);
  border: 1px solid #fecaca;
}

.alert-success {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid #bbf7d0;
}

/* ── Auth page specifics ────────────────────────────────────── */

.auth-header {
  margin-bottom: 1.75rem;
}

.auth-header h1 {
  font-size: 1.5rem;
  margin-bottom: .375rem;
}

.auth-footer {
  text-align: center;
  margin-top: 1.25rem;
  font-size: .875rem;
  color: var(--text-muted);
}

.auth-footer a { font-weight: 500; }

.forgot-link {
  font-size: .8125rem;
  color: var(--text-muted);
  text-align: right;
  display: block;
  margin-top: -.75rem;
  margin-bottom: 1.25rem;
}

/* ── Tags / Experience chips ────────────────────────────────── */

.tags-grid {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.tag {
  padding: .375rem .75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: .8125rem;
  font-weight: 500;
  cursor: pointer;
  background: var(--white);
  color: var(--text-muted);
  transition: all .15s;
  user-select: none;
}

.tag:hover { border-color: var(--primary); color: var(--primary); }

.tag.selected {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

/* ── Divider ────────────────────────────────────────────────── */

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.5rem 0;
}

/* ── Utility ────────────────────────────────────────────────── */

.mt-1 { margin-top: .25rem; }
.mt-2 { margin-top: .5rem; }
.mt-4 { margin-top: 1rem; }
.text-sm { font-size: .875rem; }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.w-full { width: 100%; }
