/* ── Auth UI ─────────────────────────────────────────────────── */

/* Botão de login na nav */
.auth-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px; border-radius: 999px;
  font-size: 13px; font-weight: 800;
  cursor: pointer; text-decoration: none;
  transition: all 0.2s; border: none;
  background: linear-gradient(135deg, #00d4c8, #9b6dff);
  color: #fff;
  box-shadow: 0 0 18px rgba(0,212,200,0.2);
}
.auth-btn:hover { transform: translateY(-1px); box-shadow: 0 0 28px rgba(0,212,200,0.4); filter: none; }
.auth-btn svg { width: 16px; height: 16px; flex-shrink: 0; }

/* Avatar + dropdown quando logado */
.auth-user {
  display: flex; align-items: center; gap: 8px;
  position: relative; cursor: pointer;
}
.auth-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  border: 2px solid rgba(0,212,200,0.4);
  object-fit: cover;
  background: linear-gradient(135deg, #00d4c8, #9b6dff);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 900; color: #fff;
  overflow: hidden;
}
.auth-avatar img { width: 100%; height: 100%; object-fit: cover; }
.auth-name {
  font-size: 13px; font-weight: 800; color: var(--text);
  max-width: 120px; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
}

/* Dropdown menu */
.auth-dropdown {
  position: absolute; top: calc(100% + 10px); right: 0;
  background: rgba(6,6,18,0.98);
  border: 1px solid rgba(0,212,200,0.2);
  border-radius: 16px; padding: 8px;
  min-width: 200px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  backdrop-filter: blur(20px);
  z-index: 300;
  display: none;
}
.auth-dropdown.open { display: block; animation: dropIn 0.15s ease; }
@keyframes dropIn { from{opacity:0;transform:translateY(-6px)} to{opacity:1;transform:translateY(0)} }

.auth-dropdown-user {
  padding: 10px 12px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 6px;
}
.auth-dropdown-name { font-size: 14px; font-weight: 900; color: var(--text); }
.auth-dropdown-email { font-size: 12px; color: var(--muted); margin-top: 2px; }

.auth-dropdown-item {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 12px; border-radius: 10px;
  font-size: 13px; font-weight: 700; color: var(--text);
  cursor: pointer; width: 100%; text-align: left;
  border: none; background: transparent;
  transition: background 0.15s;
}
.auth-dropdown-item:hover { background: rgba(255,255,255,0.05); filter: none; }
.auth-dropdown-item.danger { color: #fb7185; }
.auth-dropdown-item.danger:hover { background: rgba(251,113,133,0.08); }

/* Badge Pro/Free na nav */
.auth-tier {
  font-size: 10px; font-weight: 900; letter-spacing: 0.5px;
  padding: 2px 8px; border-radius: 999px;
  text-transform: uppercase;
}
.auth-tier.free { background: rgba(255,255,255,0.06); color: var(--muted); border: 1px solid rgba(255,255,255,0.1); }
.auth-tier.pro  { background: linear-gradient(135deg, rgba(0,212,200,0.2), rgba(155,109,255,0.2)); color: #00d4c8; border: 1px solid rgba(0,212,200,0.3); }

/* Pontos do usuário */
.auth-points {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 900; color: #facc15;
}
.auth-points::before { content: '⭐'; font-size: 11px; }

/* Modal de login (alternativa ao redirect direto) */
.auth-modal-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  animation: fadeIn 0.2s ease;
}
@keyframes fadeIn { from{opacity:0} to{opacity:1} }
.auth-modal-overlay.hidden { display: none; }

.auth-modal {
  background: #0d0d1e;
  border: 1px solid rgba(0,212,200,0.2);
  border-radius: 24px; padding: 40px 36px;
  width: min(420px, calc(100vw - 32px));
  text-align: center;
  box-shadow: 0 40px 100px rgba(0,0,0,0.6);
  position: relative;
}
.auth-modal-fish {
  width: 80px; margin: 0 auto 20px;
  animation: fishFloat 3s ease-in-out infinite;
  filter: drop-shadow(0 0 20px rgba(0,212,200,0.4));
}
@keyframes fishFloat { 0%,100%{transform:translateY(0) rotate(-2deg)} 50%{transform:translateY(-8px) rotate(2deg)} }

.auth-modal h2 { font-size: 22px; font-weight: 900; margin: 0 0 8px; }
.auth-modal p  { font-size: 14px; color: var(--muted); margin: 0 0 28px; line-height: 1.6; }

.auth-google-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 14px 24px; border-radius: 14px;
  font-size: 15px; font-weight: 800; cursor: pointer;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  color: var(--text);
  transition: all 0.2s;
}
.auth-google-btn:hover { background: rgba(255,255,255,0.1); border-color: rgba(0,212,200,0.3); filter: none; }
.auth-google-btn img { width: 20px; height: 20px; }

.auth-modal-note { font-size: 12px; color: var(--muted); margin-top: 16px; line-height: 1.5; }
.auth-modal-close {
  position: absolute; top: 14px; right: 16px;
  background: transparent; border: none; color: var(--muted);
  font-size: 20px; cursor: pointer; padding: 4px 8px;
  border-radius: 8px;
}
.auth-modal-close:hover { color: var(--text); background: rgba(255,255,255,0.06); filter: none; }

/* Pontos/progresso no perfil */
.auth-progress-bar {
  height: 4px; border-radius: 99px;
  background: rgba(255,255,255,0.06);
  overflow: hidden; margin-top: 6px;
}
.auth-progress-fill {
  height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, #00d4c8, #9b6dff);
  transition: width 0.4s ease;
}

@media (max-width: 700px) {
  .auth-name { display: none; }
  .auth-tier { display: none; }
}
