/* ============================================================================
 *  Chrome MySys Games — header + footer COMPARTILHADOS do ecossistema.
 *
 *  Portado de sete-a-zero/resources/js/components/MysysHeader.vue e MysysFooter.vue
 *  (que por sua vez vieram do BangShot). As cores NEUTRAS sao identicas em todos os
 *  jogos de proposito: e isso que faz o jogador reconhecer que esta na mesma casa.
 *  So o accent muda, via --mysys-accent / --mysys-accent-2, que cada jogo define.
 *
 *  NAO recodificar header/footer inline em tela nenhuma — usar estes componentes.
 *
 *  Copiado para o Salao em 2026-08-18 a partir de
 *  suserano/src/client/src/components/mysys-chrome.css. Se mudar la, mudar aqui —
 *  enquanto nao existir um pacote npm do chrome, esta e a copia canonica do arquivo.
 * ========================================================================== */

/* ---------------------------------------------------------------- header */

.landing__header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 68px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  background: rgba(17, 17, 17, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #2a2a2a;
  z-index: 100;
}

.landing__header-content {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.landing__logo {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.25s ease;
}

.landing__logo:hover {
  color: var(--mysys-accent, #ff0040);
  text-shadow: 0 0 10px color-mix(in srgb, var(--mysys-accent, #ff0040) 35%, transparent);
}

.landing__logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  color: #0a160f;
  background: linear-gradient(135deg, var(--mysys-accent, #ff0040) 0%, var(--mysys-accent-2, #dc2626) 100%);
  box-shadow: 0 0 10px color-mix(in srgb, var(--mysys-accent, #ff0040) 30%, transparent);
  transition: all 0.25s ease;
}

.landing__logo:hover .landing__logo-icon {
  box-shadow: 0 0 20px color-mix(in srgb, var(--mysys-accent, #ff0040) 55%, transparent);
  transform: scale(1.05);
}

.btn-login {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  font-family: 'Orbitron', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  transition: all 0.15s ease;
  border: 1px solid transparent;
  cursor: pointer;
  background: none;
}

.btn-primary-outline {
  background: transparent;
  color: var(--mysys-accent, #ff0040);
  border: 1px solid var(--mysys-accent, #ff0040);
}

.btn-primary-outline:hover {
  background: var(--mysys-accent, #ff0040);
  color: #0a160f;
  box-shadow: 0 0 20px color-mix(in srgb, var(--mysys-accent, #ff0040) 45%, transparent);
}

/* MELHORIA sobre o original Vue, que nao trata telas estreitas: a 390px o wordmark
   "MySys Games" e o botao de entrar quase se encostam. Abaixo de 430px fica so o "M",
   que ja carrega a marca e continua linkando pro hub. */
@media (max-width: 430px) {
  .landing__header {
    padding: 0 16px;
  }
  .landing__logo span {
    display: none;
  }
}

/* ---- splash de verificacao + dropdown de usuario: porte FIEL do BangShot ----
   (buckshotcopy Home.tsx + Home.css). Cores neutras identicas; so o accent muda. */

.loading-splash {
  position: fixed; inset: 0; display: flex; align-items: center; justify-content: center;
  background: #0a0a0a; z-index: 9999;
}
.loading-splash__content { display: flex; flex-direction: column; align-items: center; gap: 2rem; }
.loading-splash__title {
  font-family: 'Cinzel', Georgia, serif; font-size: 3rem; font-weight: 900; margin: 0;
  color: var(--mysys-accent, #d4a418); letter-spacing: 0.1em;
  text-shadow: 0 0 30px color-mix(in srgb, var(--mysys-accent, #d4a418) 50%, transparent);
  animation: titlePulse 2s ease-in-out infinite;
}
.loading-splash__spinner {
  width: 40px; height: 40px; border-radius: 50%;
  border: 3px solid color-mix(in srgb, var(--mysys-accent, #d4a418) 20%, transparent);
  border-top-color: var(--mysys-accent, #d4a418);
  animation: spin 0.8s linear infinite;
}
@keyframes titlePulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.7; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes dropdownFadeIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

.user-profile { position: relative; }
.user-profile-trigger {
  display: flex; align-items: center; gap: 8px; padding: 4px 8px;
  background: transparent; border: 1px solid #2a2a2a; border-radius: 8px;
  cursor: pointer; transition: all 0.15s ease;
}
.user-profile-trigger:hover { background: #1a1a1a; border-color: #333; }
.user-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.user-avatar--placeholder {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--mysys-accent, #ff0040) 0%, var(--mysys-accent-2, #dc2626) 100%);
  color: #fff; font-weight: 700; font-size: 0.875rem;
}
.user-name {
  font-size: 0.875rem; font-weight: 500; color: #fff; max-width: 120px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.dropdown-arrow { width: 16px; height: 16px; color: #666; transition: transform 0.15s ease; }
.user-profile.open .dropdown-arrow { transform: rotate(180deg); }
.user-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0; width: 280px;
  background: #141414; border: 1px solid #2a2a2a; border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0,0,0,.8); z-index: 200; animation: dropdownFadeIn .2s ease;
}
.dropdown-header {
  padding: 16px; border-bottom: 1px solid #2a2a2a; display: flex; align-items: center; gap: 12px;
  background: linear-gradient(180deg, #1a1a1a 0%, #141414 100%); border-radius: 12px 12px 0 0;
}
.user-avatar-large {
  width: 48px; height: 48px; border-radius: 50%;
  border: 2px solid var(--mysys-accent, #ff0040);
  box-shadow: 0 0 10px color-mix(in srgb, var(--mysys-accent, #ff0040) 30%, transparent);
}
.user-avatar-large.user-avatar--placeholder { font-size: 1.25rem; }
.dropdown-header-info { flex: 1; min-width: 0; }
.user-name-large { font-family: 'Orbitron', sans-serif; font-weight: 600; font-size: 0.9375rem; margin-bottom: 2px; color: #fff; }
.user-email { font-size: 0.75rem; color: #888; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dropdown-menu { padding: 12px; }
.dropdown-item {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 16px; color: #888; border-radius: 8px; transition: all .15s ease;
  cursor: pointer; border: 1px solid transparent; background: #1a1a1a; width: 100%;
  font-family: 'Orbitron', sans-serif; font-size: 0.8125rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .5px;
}
.dropdown-item:hover { background: #111; color: #fff; }
.dropdown-item svg { width: 16px; height: 16px; }

@media (max-width: 430px) { .user-name { display: none; } }

/* ---------------------------------------------------------------- footer */

.footer {
  background: #111;
  padding: 32px 24px;
  border-top: 1px solid #2a2a2a;
  margin-top: auto;
  overflow: hidden;
}

.footer__content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__logo {
  font-family: 'Orbitron', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer__links {
  display: flex;
  gap: 32px;
}

.footer__link {
  color: #666;
  font-size: 0.875rem;
  text-decoration: none;
  transition: all 0.25s ease;
  position: relative;
}

.footer__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--mysys-accent, #ff0040);
  transition: width 0.25s ease;
}

.footer__link:hover {
  color: var(--mysys-accent, #ff0040);
}

.footer__link:hover::after {
  width: 100%;
}

.footer__copy {
  width: 100%;
  text-align: center;
  font-size: 0.8125rem;
  color: #666;
  margin: 16px 0 0 0;
  padding-top: 16px;
  position: relative;
}

.footer__copy::before {
  content: '';
  position: absolute;
  top: 0;
  left: calc(-50vw + 50%);
  right: calc(-50vw + 50%);
  height: 1px;
  background: #1f1f1f;
}

@media (max-width: 768px) {
  .footer__content {
    flex-direction: column;
    text-align: center;
  }
  .footer__links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }
}
