/**
 * assets/css/hub-ignis-cleanup.css - Remove resquícios do visual IGNIS (neo-brutalist) das páginas do Hub (KAN-190).
 *
 * Carregado somente em páginas do Hub (gf-public-shell, nunca no IGNIS). Páginas auditadas:
 * register, my_orders (order-card/ticket-card), profile / profile_edit, leadership_form.
 * Regras do IGNIS em assets/style.css e nos <style> inline permanecem intactas para as páginas do evento.
 * Usa os tokens de tema (--hub-*) com fallback Premium Dark.
 */

/* ---------- Cadastro (register.php) ---------- */
html body.gf-public-shell .ignis-register-card {
  background: var(--hub-surface-0, #0c0c0e);
  color: var(--hub-text, #fff);
  border: 1px solid rgba(var(--hub-fg-rgb, 255, 255, 255), 0.1);
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

html body.gf-public-shell .ignis-register-card h1,
html body.gf-public-shell .ignis-register-card .ignis-address-title {
  color: var(--hub-text, #fff);
  font-family: inherit;
  letter-spacing: -0.01em;
}

html body.gf-public-shell .ignis-subtitle,
html body.gf-public-shell .ignis-register-card .ignis-label,
html body.gf-public-shell .ignis-register-card .hint {
  color: var(--hub-text-muted, #9999a0);
  font-family: inherit;
}

html body.gf-public-shell .ignis-register-card .ignis-input,
html body.gf-public-shell .ignis-register-card #phone_country {
  background: var(--hub-field-bg, #141417) !important;
  color: var(--hub-field-text, #fff) !important;
  border: 1px solid rgba(var(--hub-fg-rgb, 255, 255, 255), 0.14) !important;
  border-radius: 12px !important;
  font-family: inherit !important;
}

html body.gf-public-shell .ignis-register-card .ignis-input:focus {
  background: var(--hub-field-bg, #141417) !important;
  border-color: var(--hub-orange, #F36A27) !important;
  box-shadow: 0 0 0 3px rgba(243, 106, 39, 0.2) !important;
  outline: none;
}

html body.gf-public-shell .ignis-register-card .ignis-input::placeholder {
  color: var(--hub-text-dim, #77777f) !important;
}

html body.gf-public-shell .ignis-register-card .ignis-address-section,
html body.gf-public-shell .ignis-register-card .ignis-check-wrap {
  background: var(--hub-surface-1, #121214);
  border: 1px solid rgba(var(--hub-fg-rgb, 255, 255, 255), 0.1);
  border-radius: 16px;
  box-shadow: none;
}

html body.gf-public-shell .ignis-register-card .ignis-check-title {
  background: transparent;
  color: var(--hub-text, #fff);
  font-family: inherit;
  text-transform: none;
  letter-spacing: 0;
  border: 0;
}

html body.gf-public-shell .ignis-register-card .ignis-check-item {
  background: var(--hub-surface-2, #16161a);
  color: var(--hub-text, #fff);
  border: 1px solid rgba(var(--hub-fg-rgb, 255, 255, 255), 0.12);
  border-radius: 999px;
  font-family: inherit;
  font-weight: 600;
  box-shadow: none;
}

html body.gf-public-shell .ignis-register-card .ignis-btn-inside {
  background: var(--hub-orange, #F36A27);
  color: #fff;
  border: 0;
  border-radius: 999px;
  font-family: inherit;
}

html body.gf-public-shell .ignis-register-card .ignis-btn-submit {
  background: var(--hub-orange, #F36A27);
  color: #fff;
  border: 0;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(243, 106, 39, 0.3);
  font-family: inherit;
  text-transform: none;
  letter-spacing: 0;
}
html body.gf-public-shell .ignis-register-card .ignis-btn-submit:hover {
  background: #d9581c;
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(243, 106, 39, 0.4);
}
html body.gf-public-shell .ignis-register-card .ignis-btn-submit:active {
  transform: translateY(1px);
  box-shadow: none;
}

html body.gf-public-shell .ignis-register-card .ignis-link {
  color: var(--hub-orange, #F36A27);
  font-family: inherit;
}

/* seletor de país e calendário */
html body.gf-public-shell .country-picker-button,
html body.gf-public-shell .country-picker-list,
html body.gf-public-shell .cal-popover {
  background: var(--hub-surface-1, #121214);
  color: var(--hub-text, #fff);
  border: 1px solid rgba(var(--hub-fg-rgb, 255, 255, 255), 0.16);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  font-family: inherit;
}
html body.gf-public-shell .country-picker-button:after {
  border-color: var(--hub-text-muted, #9999a0);
}
html body.gf-public-shell .country-picker-option:hover,
html body.gf-public-shell .country-picker-option.is-selected {
  background: rgba(243, 106, 39, 0.16);
  border: 0;
  border-radius: 8px;
}
html body.gf-public-shell .cal-title select,
html body.gf-public-shell .cal-actions .cancel {
  background: var(--hub-field-bg, #141417);
  color: var(--hub-text, #fff);
  border: 1px solid rgba(var(--hub-fg-rgb, 255, 255, 255), 0.16);
  border-radius: 8px;
  font-family: inherit;
}
html body.gf-public-shell .cal-nav {
  background: var(--hub-orange, #F36A27);
  color: #fff;
  border: 0;
  border-radius: 50%;
}
html body.gf-public-shell .cal-weekday {
  color: var(--hub-text-muted, #9999a0);
  border-bottom: 1px solid rgba(var(--hub-fg-rgb, 255, 255, 255), 0.12);
}
html body.gf-public-shell .cal-day {
  border-radius: 8px;
  color: var(--hub-text, #fff);
}
html body.gf-public-shell .cal-day:hover {
  background: rgba(var(--hub-fg-rgb, 255, 255, 255), 0.08);
  border-color: transparent;
}
html body.gf-public-shell .cal-day.is-today {
  border-bottom: 2px solid var(--hub-orange, #F36A27);
}
html body.gf-public-shell .cal-day.is-selected {
  background: var(--hub-orange, #F36A27);
  color: #fff;
  border-color: transparent;
}

/* ---------- Meus Pedidos (my_orders.php) ---------- */
html body.gf-public-shell .order-card,
html body.gf-public-shell .order-card h3,
html body.gf-public-shell .order-card p,
html body.gf-public-shell .order-card b,
html body.gf-public-shell .order-card strong,
html body.gf-public-shell .order-card .muted,
html body.gf-public-shell .order-card a:not(.btn) {
  color: var(--hub-text, #fff) !important;
  font-family: inherit !important;
}
html body.gf-public-shell .order-card .muted {
  color: var(--hub-text-muted, #9999a0) !important;
}
html body.gf-public-shell .order-card {
  background: var(--hub-surface-0, #0c0c0e) !important;
  border: 1px solid rgba(var(--hub-fg-rgb, 255, 255, 255), 0.1) !important;
  border-radius: 18px !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3) !important;
}
html body.gf-public-shell .order-card h3 {
  text-transform: none !important;
  font-weight: 800 !important;
  font-size: 1.25rem !important;
  border-bottom: 1px solid rgba(var(--hub-fg-rgb, 255, 255, 255), 0.12) !important;
}
html body.gf-public-shell .ticket-card {
  background: var(--hub-surface-1, #121214) !important;
  border: 1px solid rgba(var(--hub-fg-rgb, 255, 255, 255), 0.12) !important;
  border-radius: 16px !important;
  box-shadow: none !important;
}
html body.gf-public-shell .ticket-card .qrcode {
  background: #ffffff !important; /* QR Code precisa de fundo claro para leitura */
  border: 0 !important;
  border-radius: 10px !important;
}

/* ---------- Botões e avisos genéricos nas páginas do Hub ---------- */
html body.gf-public-shell .btn {
  background: var(--hub-orange, #F36A27);
  color: #fff;
  border-radius: 999px;
}
html body.gf-public-shell .btn:hover {
  background: #d9581c;
}
html body.gf-public-shell .btn.secondary {
  background: transparent;
  color: var(--hub-text, #fff);
  border: 1px solid rgba(var(--hub-fg-rgb, 255, 255, 255), 0.22);
}
html body.gf-public-shell .btn.secondary:hover {
  border-color: var(--hub-orange, #F36A27);
  color: var(--hub-orange, #F36A27);
}

/* ---------- Perfil (profile.php): classes sem estilo próprio caíam no padrão do navegador ---------- */
html body.gf-public-shell .auth-wrap {
  max-width: 880px;
  margin: 32px auto 70px;
  padding: 0 20px;
}
html body.gf-public-shell .auth-card {
  background: var(--hub-surface-0, #0c0c0e);
  color: var(--hub-text, #fff);
  border: 1px solid rgba(var(--hub-fg-rgb, 255, 255, 255), 0.1);
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
  padding: 28px;
}
html body.gf-public-shell .auth-card .subtitle,
html body.gf-public-shell .auth-card .help,
html body.gf-public-shell .auth-card .muted {
  color: var(--hub-text-muted, #9999a0);
}
html body.gf-public-shell .underline-input,
html body.gf-public-shell .contact-input {
  width: 100%;
  box-sizing: border-box;
  background: var(--hub-field-bg, #141417);
  color: var(--hub-field-text, #fff);
  border: 1px solid rgba(var(--hub-fg-rgb, 255, 255, 255), 0.14);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
}
html body.gf-public-shell .underline-input:focus,
html body.gf-public-shell .contact-input:focus {
  outline: none;
  border-color: var(--hub-orange, #F36A27);
  box-shadow: 0 0 0 3px rgba(243, 106, 39, 0.2);
}
html body.gf-public-shell .toggle-pass {
  background: transparent;
  color: var(--hub-text-muted, #9999a0);
  border: 0;
  cursor: pointer;
}
html body.gf-public-shell .flash.success {
  background: rgba(34, 197, 94, 0.14);
  color: var(--hub-text, #fff);
  border: 1px solid rgba(34, 197, 94, 0.4);
  box-shadow: none;
}
html body.gf-public-shell .flash.danger {
  background: rgba(239, 68, 68, 0.14);
  color: var(--hub-text, #fff);
  border: 1px solid rgba(239, 68, 68, 0.4);
  box-shadow: none;
}
