/* ================== BASE ================== */
html,
body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  background-color: #000;
}

/* ======= VÍDEO DE FUNDO ======= */
video {
  position: fixed;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: 0; /* vídeo fica no fundo */
  transform: translate(-50%, -50%);
  object-fit: cover;
}

/* Overlay suave para legibilidade do conteúdo sobre o vídeo */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(
    circle at 50% 45%,
    rgba(0, 0, 0, 0.35) 0%,
    rgba(0, 0, 0, 0.55) 60%,
    rgba(0, 0, 0, 0.85) 100%
  );
  mix-blend-mode: multiply;
}

/* ================== NAVBAR ================== */
.navbar {
  z-index: 3; /* acima do overlay e do conteúdo */
  background: rgba(0, 0, 0, 0.5) !important;
  backdrop-filter: blur(8px);
}

.navbar-brand img {
  height: 40px;
}

.navbar-nav .nav-link {
  color: #fff !important;
  transition: color 0.2s;
}

.navbar-nav .nav-link:hover {
  color: #0d6efd !important;
}

.social-icons a {
  color: #fff;
  font-size: 1.4rem;
  margin-left: 0.75rem;
  transition: color 0.3s;
}

.social-icons a:hover {
  color: #0d6efd;
}

.navbar img:hover {
  filter: brightness(1.3);
  transform: scale(1.1);
  transition: all 0.2s ease;
}

/* ============ CONTEÚDO CENTRAL ============ */
.content {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: 56px;
  padding-bottom: 56px;
  box-sizing: border-box;
  transition: opacity 0.3s ease;
}

.content-dimmed {
  opacity: 0;
  pointer-events: none;
}

/* Card com mais contraste e profundidade */
.card {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.45));
  backdrop-filter: blur(10px) saturate(1.1);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
  color: #fff;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  padding: 2.5rem !important;
}

/* Efeito de entrada suave do card */
.content .card {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease-out forwards;
}
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============ BOTÃO “BAIXAR NA STEAM” ============ */
.steam-btn {
  background: radial-gradient(circle at 30% 20%, #2a475e 0%, #1b2838 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 0.85rem 1.6rem;
  font-weight: 600;
  gap: 0.6rem !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
  text-decoration: none;
  color: #e6eef8;
}

.steam-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 0 25px rgba(59, 130, 246, 0.4),
    0 0 10px rgba(255, 255, 255, 0.1);
}

.steam-btn:focus-visible {
  outline: 2px solid rgba(59, 130, 246, 0.8);
  outline-offset: 3px;
}

.steam-btn img {
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.15));
  transition: transform 0.2s ease;
}

.steam-btn:hover img {
  transform: scale(1.08);
}

/* ================== RODAPÉ ================== */
footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  z-index: 3;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  text-align: center;
  padding: 0.5rem;
  font-size: 0.9rem;
  backdrop-filter: blur(6px);
}

footer span {
  color: #ffffff;
  font-weight: 600;
}

/* ============ RESPONSIVO ============ */
@media (max-width: 768px) {
  .content .card {
    padding: 1.5rem !important;
  }
  .content .card img {
    max-width: 85%;
  }
  .steam-btn span {
    font-size: 1rem;
  }
  .steam-btn {
    padding: 0.7rem 1.1rem;
  }
  .steam-btn img {
    width: 32px;
    height: 32px;
  }
}

/* ============ ACESSIBILIDADE: REDUZ ANIMAÇÕES ============ */
@media (prefers-reduced-motion: reduce) {
  .steam-btn,
  .steam-btn img,
  .content .card {
    transition: none;
    animation: none;
  }
}

/* ======= LOADING SCREEN ======= */
#video-loader {
  position: fixed;
  inset: 0;
  background-color: #000;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#video-loader.fade-out {
  opacity: 0;
  visibility: hidden;
}

#video-loader .spinner {
  width: 64px;
  height: 64px;
  border: 5px solid rgba(255, 255, 255, 0.2);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Agrupamento da parte direita */
.header-right {
  gap: 0.25rem;
}

/* Botão CTA de Contato (pill translúcido) */
.btn-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 0.95rem;
  border-radius: 999px;
  color: #e9eef8;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(13, 17, 23, 0.45);
  backdrop-filter: blur(8px);
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.25s ease,
    color 0.25s ease;
}

.btn-contact:hover {
  background: rgba(32, 40, 54, 0.65);
  box-shadow: 0 0 18px rgba(59, 130, 246, 0.35);
  transform: translateY(-1px);
  color: #fff;
}

.btn-contact:focus-visible {
  outline: 2px solid rgba(59, 130, 246, 0.85);
  outline-offset: 3px;
}

/* ====== BANDEIRAS (glass pills) ====== */
.lang-flags {
  gap: 0.5rem;
}

.lang-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(13, 17, 23, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  transition: transform 0.18s ease, box-shadow 0.25s ease, background 0.25s ease,
    filter 0.25s ease;
  text-decoration: none;
}
.lang-flag img {
  display: block;
  width: 24px;
  height: 16px;
  border-radius: 3px;
  filter: saturate(0.85) contrast(0.95) brightness(0.95) grayscale(0.25);
  transition: filter 0.2s ease, transform 0.2s ease;
}

/* hover/active */
.lang-flag:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 14px rgba(59, 130, 246, 0.35);
  background: rgba(32, 40, 54, 0.65);
}
.lang-flag:hover img {
  filter: none;
  transform: scale(1.05);
}

/* idioma selecionado */
.lang-flag.active {
  outline: 2px solid rgba(59, 130, 246, 0.85);
  outline-offset: 2px;
}

/* Versão "wide" da lang-flag para presskit */
.lang-flag.lang-flag-wide {
  width: auto;
  height: 40px;
  padding: 0 0.9rem;
  color: #e9eef8;
  font-weight: 600;
  gap: 0.35rem;
}
.lang-flag.lang-flag-wide i {
  font-size: 1.1rem;
}
.lang-flag.lang-flag-wide span {
  line-height: 1;
}

/* Transição suave quando o conteúdo é escondido */
.content {
  transition: opacity 0.3s ease;
}

.inline-icon {
  height: 1em; /* mesmo tamanho da altura do texto */
  vertical-align: middle; /* alinha verticalmente com o texto */
  margin-left: 0.3em; /* pequeno espaço entre o texto e a imagem */
  transform: translateY(-1px); /* ajusta o leve desalinhamento visual */
}

/* container do modal (segue o “glass” do site) */
.presskit-card {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* linha de pills reaproveitando lang-flag */
.pill-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.lang-flag.lang-flag-wide i {
  font-size: 1.1rem;
}
