/*
 * Pro Station — forms.css
 * Estilos dos formulários de autenticação (login / register)
 * e componentes do Dashboard (profile.html).
 *
 * Regra: skill.md §2 — PROIBIDO <style> inline no HTML.
 * Regra: estilo_visual.md §1 — Dark Mode obrigatório.
 * Regra: estilo_visual.md §3 — Hover e interação em todo clicável.
 */

/* ── Card de Formulário ───────────────────────────────────── */
.form-card {
  background: #18181b;          /* zinc-900 */
  border: 1px solid #27272a;   /* zinc-800 */
  border-radius: 1rem;
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}

/* ── Grupos de Campo ──────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.form-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #a1a1aa;              /* zinc-400 */
}

/* ── Inputs ───────────────────────────────────────────────── */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: #09090b;         /* zinc-950 */
  border: 1px solid #3f3f46;  /* zinc-700 */
  border-radius: 0.5rem;
  color: #f4f4f5;              /* gray-100 */
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.form-input::placeholder {
  color: #52525b;              /* zinc-600 */
}

.form-input:focus {
  border-color: #6366f1;       /* indigo-500 */
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.form-input:hover:not(:focus) {
  border-color: #52525b;
}

/* ── Mensagem de Erro ─────────────────────────────────────── */
.form-error {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 0.5rem;
  color: #f87171;              /* red-400 */
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
}

/* ── Flash Messages ───────────────────────────────────────── */
.flash-success {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 0.5rem;
  color: #34d399;              /* emerald-400 */
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
}

.flash-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 0.5rem;
  color: #a5b4fc;              /* indigo-300 */
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
}

/* ── Botão Submit ─────────────────────────────────────────── */
.btn-submit {
  width: 100%;
  padding: 0.875rem;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  border: 1px solid rgba(99, 102, 241, 0.5);
  border-radius: 0.5rem;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition:
    background 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.15s ease;
}

.btn-submit:hover {
  background: linear-gradient(135deg, #818cf8 0%, #6366f1 100%);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.35);
  transform: translateY(-1px);
}

.btn-submit:active {
  transform: translateY(0);
}

/* ── Divisor de Texto ─────────────────────────────────────── */
.form-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.5rem 0;
  color: #52525b;
  font-size: 0.8rem;
}

.form-divider::before,
.form-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #27272a;
}

/* ══════════════════════════════════════════════════════════
   DASHBOARD / PROFILE
   ══════════════════════════════════════════════════════════ */

/* ── Layout geral do dashboard ───────────────────────────── */
.dashboard-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 768px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Sidebar do Perfil ────────────────────────────────────── */
.profile-sidebar {
  background: #18181b;
  border: 1px solid #27272a;
  border-radius: 1rem;
  padding: 1.75rem;
  position: sticky;
  top: 80px;
}

/* ── Avatar Placeholder ───────────────────────────────────── */
.avatar-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3730a3 0%, #1e1b4b 100%);
  border: 2px solid #4338ca;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1rem auto;
}

/* ── Pro Score Panel ──────────────────────────────────────── */
.pro-score-panel {
  background: linear-gradient(135deg, rgba(99,102,241,0.12) 0%, rgba(79,70,229,0.06) 100%);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 0.75rem;
  padding: 1.25rem;
  text-align: center;
  margin-top: 1.25rem;
}

.pro-score-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 2.25rem;
  font-weight: 600;
  color: #a5b4fc;              /* indigo-300 */
  letter-spacing: -0.02em;
  line-height: 1;
}

.pro-score-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6366f1;
  margin-top: 0.35rem;
}

/* ── Seção de Conteúdo Principal ──────────────────────────── */
.dashboard-main {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* ── Panel / Widget genérico ──────────────────────────────── */
.panel {
  background: #18181b;
  border: 1px solid #27272a;
  border-radius: 1rem;
  overflow: hidden;
}

.panel-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #27272a;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.panel-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #71717a;              /* zinc-500 */
}

.panel-body {
  padding: 1.25rem 1.5rem;
}

/* ── Botões de Plataforma (Vinculação) ────────────────────── */
.platform-btn {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  width: 100%;
  padding: 0.875rem 1rem;
  background: #09090b;
  border: 1px solid #3f3f46;
  border-radius: 0.625rem;
  color: #a1a1aa;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: not-allowed;         /* inativo no MVP */
  transition:
    border-color 0.2s ease,
    color 0.2s ease,
    background 0.2s ease;
  margin-bottom: 0.625rem;
  text-align: left;
  opacity: 0.6;
}

.platform-btn.ready {
  cursor: pointer;
  opacity: 1;
}

.platform-btn.ready:hover {
  border-color: #6366f1;
  background: rgba(99, 102, 241, 0.06);
  color: #e4e4e7;
}

.platform-btn .platform-icon {
  width: 28px;
  height: 28px;
  border-radius: 0.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.platform-badge-soon {
  margin-left: auto;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #52525b;
  background: #27272a;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
}

/* ── Feed de Conquistas (vazio state) ─────────────────────── */
.empty-feed {
  text-align: center;
  padding: 3rem 1rem;
  color: #52525b;
}

.empty-feed-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  opacity: 0.4;
}

/* ── Conquista Item ───────────────────────────────────────── */
.achievement-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 0;
  border-bottom: 1px solid #27272a;
}

.achievement-item:last-child {
  border-bottom: none;
}

.achievement-icon {
  width: 40px;
  height: 40px;
  border-radius: 0.5rem;
  background: rgba(234, 179, 8, 0.08);
  border: 1px solid rgba(234, 179, 8, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.2rem;
}

/* ── Página de Auth (centralização) ───────────────────────── */
.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}
