@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ============================================================
  shared.css — estilos comuns a todas as páginas do WC2026
   ============================================================ */

/* reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  min-height: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* base do body */
body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* vinheta leve */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(
    circle at center,
    rgba(255, 190, 70, 0.05) 0%,
    rgba(0, 0, 0, 0) 34%,
    rgba(0, 0, 0, 0.26) 72%,
    rgba(0, 0, 0, 0.54) 100%
  );
}


/* partículas */
#particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* botão de idioma */
#btnLang {
  position: fixed;
  top: 20px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 18px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #F4C542, #D4A017);
  color: #0A1F44;
  font-size: 13px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow:
    0 4px 14px rgba(244, 197, 66, 0.35),
    0 0 18px rgba(244, 197, 66, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  z-index: 1000;
}

#btnLang::before {
  content: "";
  display: inline-block;
  width: 15px;
  height: 15px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A1F44' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='2' y1='12' x2='22' y2='12'/%3E%3Cpath d='M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
}

#btnLang:hover {
  transform: translateY(-2px);
  box-shadow:
    0 6px 20px rgba(244, 197, 66, 0.50),
    0 0 24px rgba(244, 197, 66, 0.22);
  filter: brightness(1.08);
}

#btnLang:active {
  transform: scale(0.94);
  box-shadow: 0 2px 8px rgba(244, 197, 66, 0.25);
}

@keyframes langPop {
  0%   { transform: scale(1); }
  40%  { transform: scale(0.88) rotate(-4deg); }
  70%  { transform: scale(1.12) rotate(2deg); }
  100% { transform: scale(1) rotate(0deg); }
}

#btnLang.pop {
  animation: langPop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* botão principal dourado */
.custom-button {
  position: relative;
  padding: 14px 32px;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  overflow: hidden;
  font-family: "Inter", sans-serif;
  isolation: isolate;
  box-shadow:
    0 10px 24px rgba(244, 197, 66, 0.22),
    0 6px 14px rgba(0, 0, 0, 0.20);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.button-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  color: #0A1F44;
  transition: transform 0.2s ease;
}

.button-background {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #F4C542 0%, #E0B126 55%, #C9920F 100%);
  transition: all 0.3s ease;
}

.button-icon {
  display: inline-flex;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.custom-button:hover {
  transform: translateY(-2px);
  box-shadow:
    0 16px 36px rgba(244, 197, 66, 0.28),
    0 8px 18px rgba(0, 0, 0, 0.26);
}

.custom-button:hover .button-content { transform: translateY(-1px); }
.custom-button:hover .button-icon    { transform: translateX(4px); }

.custom-button:hover .button-background {
  transform: scale(1.05);
  filter: brightness(1.08);
}

.custom-button:active { transform: translateY(0); }
.custom-button:active .button-content   { transform: translateY(1px); }
.custom-button:active .button-background {
  transform: scale(0.98);
  filter: brightness(0.95);
}

.custom-button:focus-visible {
  outline: 2px solid #F4C542;
  outline-offset: 3px;
}

@keyframes shine {
  from { transform: translateX(-100%) rotate(45deg); }
  to   { transform: translateX(220%) rotate(45deg); }
}

.custom-button::after {
  content: "";
  position: absolute;
  top: 0;
  left: -20%;
  width: 40%;
  height: 100%;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255, 255, 255, 0.16),
    transparent
  );
  transform: translateX(-100%) rotate(25deg);
  z-index: 1;
}

.custom-button:hover::after {
  animation: shine 0.9s ease;
}

/* loader de página */
#pageLoader {
  position: fixed;
  inset: 0;
  background: radial-gradient(
    circle at center,
    rgba(5, 10, 26, 0.85),
    rgba(0, 0, 0, 0.95)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease;
  z-index: 9999;
}

#pageLoader.active {
  opacity: 1;
  visibility: visible;
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.loader-logo {
  width: 90px;
  filter: drop-shadow(0 0 25px rgba(255, 200, 80, 0.5));
  animation: logoPulse 2s infinite ease-in-out;
}

.loader-content p {
  color: #FFFFFF;
  font-size: 14px;
  letter-spacing: 0.5px;
}

@keyframes logoPulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.08); }
}

/* =========================
  RESPONSIVO COMPARTILHADO
========================= */

@media (max-width: 992px) {
  body {
    padding: 1.8rem 0;
  }

  #btnLang {
    top: 16px;
    right: 16px;
    padding: 8px 14px;
    font-size: 12px;
  }

  .button-content {
    font-size: 15px;
  }
}

@media (max-width: 768px) {
  body {
    padding: 1.4rem 0;
  }

  #btnLang {
    top: 14px;
    right: 14px;
    padding: 7px 13px;
    font-size: 12px;
  }

  .button-content {
    font-size: 14px;
  }

  .loader-logo {
    width: 76px;
  }

  .loader-content p {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  body {
    padding: 1rem 0;
  }

  #btnLang {
    top: 12px;
    right: 12px;
    padding: 6px 12px;
    font-size: 11px;
  }

  .button-content {
    font-size: 13.5px;
    gap: 6px;
  }

  .loader-logo {
    width: 68px;
  }

  .loader-content p {
    font-size: 0.84rem;
  }
}
