/* ══ AUTH ADDITIONS — append to style.css ═══════════════════ */

/* ── Navbar auth buttons ──────────────────────────────────── */
.auth-btns { display: flex; gap: .5rem; align-items: center; }

.btn-login {
  background: none; border: 1px solid var(--bdr2); color: var(--text2);
  font-family: var(--ui); font-size: .82rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  padding: .35rem .9rem; border-radius: var(--r); transition: all .2s;
}
.btn-login:hover { border-color: var(--text2); color: var(--text); }

.btn-register {
  background: var(--red); border: 1px solid var(--red); color: #fff;
  font-family: var(--ui); font-size: .82rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  padding: .35rem .9rem; border-radius: var(--r); transition: all .2s;
}
.btn-register:hover { background: #c42e20; border-color: #c42e20; }

/* ── User menu (logged in) ────────────────────────────────── */
.user-menu { position: relative; }

.user-btn {
  display: flex; align-items: center; gap: .5rem;
  background: var(--surf); border: 1px solid var(--bdr);
  color: var(--text); font-family: var(--ui); font-size: .84rem; font-weight: 600;
  padding: .3rem .7rem .3rem .4rem; border-radius: 20px; transition: all .2s;
}
.user-btn:hover { border-color: var(--bdr2); background: var(--surf2); }

.user-ava {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--red); display: flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 700; overflow: hidden; flex-shrink: 0;
}
.user-ava img { width: 100%; height: 100%; object-fit: cover; }

.user-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--surf2); border: 1px solid var(--bdr2);
  border-radius: var(--r2); min-width: 200px;
  box-shadow: var(--sh); z-index: 600;
  animation: mIn .15s ease;
}
.ud-info { padding: .9rem 1rem; }
.ud-name  { font-family: var(--ui); font-weight: 700; font-size: .95rem; margin-bottom: .15rem; }
.ud-email { font-size: .78rem; color: var(--text2); margin-bottom: .25rem; }
.ud-role  {
  display: inline-block; font-family: var(--ui); font-size: .65rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: .15rem .45rem; border-radius: 2px;
  background: rgba(232,57,42,.15); color: var(--red); border: 1px solid rgba(232,57,42,.3);
}
.ud-role.admin { background: rgba(245,200,66,.15); color: var(--gold); border-color: rgba(245,200,66,.3); }
.ud-divider { height: 1px; background: var(--bdr); }
.ud-item {
  display: block; width: 100%; text-align: left;
  background: none; border: none; color: var(--text2);
  font-family: var(--ui); font-size: .86rem; font-weight: 600;
  padding: .7rem 1rem; transition: all .15s;
}
.ud-item:hover { background: var(--bdr); color: var(--text); }

/* ── Auth modals ──────────────────────────────────────────── */
.modal-auth { max-width: 420px; }

.auth-modal-header { text-align: center; margin-bottom: 1.5rem; }
.auth-logo {
  font-family: var(--disp); font-size: 1.4rem; letter-spacing: .04em;
  color: var(--red); margin-bottom: .6rem;
}
.auth-logo span { color: var(--text); }
.auth-title { font-family: var(--disp); font-size: 1.8rem; margin-bottom: .3rem; }
.auth-sub   { font-size: .88rem; color: var(--text2); }

.btn-google {
  display: flex; align-items: center; justify-content: center; gap: .7rem;
  width: 100%; background: #fff; color: #3c3c3c; border: 1px solid #ddd;
  font-family: var(--body); font-size: .92rem; font-weight: 500;
  padding: .7rem 1rem; border-radius: var(--r); transition: all .2s;
  margin-bottom: 1.2rem;
}
.btn-google:hover { background: #f8f8f8; box-shadow: 0 2px 8px rgba(0,0,0,.15); }

.auth-divider {
  display: flex; align-items: center; gap: .75rem;
  margin-bottom: 1.2rem; color: var(--text3);
  font-family: var(--ui); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--bdr);
}

.auth-error {
  background: rgba(232,57,42,.08); border: 1px solid rgba(232,57,42,.3);
  color: var(--red); font-size: .84rem; padding: .6rem .8rem;
  border-radius: var(--r); margin-bottom: .8rem; line-height: 1.4;
}

.btn-full { width: 100%; justify-content: center; padding: .75rem; font-size: .95rem; }

.auth-switch {
  text-align: center; margin-top: 1.1rem;
  font-size: .84rem; color: var(--text2);
}
