/* ==========================================================================
   EASYTALE - ESTILO OFICIAL 2026 | TOTAL GOLD EDITION (VERSÃO FINAL)
   ========================================================================== */

/* ================= RESET & BASE ================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  overflow-x: hidden;
  scrollbar-gutter: stable;
}

body {
  font-family: 'Poppins', sans-serif;
  color: #fff;
  background: #0b0f1a;
  background-image: 
    radial-gradient(circle at 10% 10%, rgba(0, 212, 255, 0.05), transparent 35%),
    radial-gradient(circle at 90% 10%, rgba(255, 215, 0, 0.1), transparent 35%),
    #080b12; 
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

canvas#hytale-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

/* ================= VARIÁVEIS ================= */
:root {
  --primary: #ffea00; 
  --primary-glow: rgba(255, 234, 0, 0.5);
  --secondary: #00e5ff;
  --border: rgba(255, 255, 255, 0.06);
  --radius: 20px;
}

/* ================= SCROLLBAR CUSTOMIZADA (ESTILO PREMIUM) ================= */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #080b12;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #ffea00, #ff8c00);
  border-radius: 10px;
  border: 2px solid #080b12;
}

::-webkit-scrollbar-thumb:hover {
  background: #fff;
  box-shadow: 0 0 10px var(--primary);
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--primary) #080b12;
}

/* ================= HEADER ================= */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  height: 90px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5%;
  background: rgba(11, 15, 26, 0.9);
  backdrop-filter: blur(15px);
  border-bottom: 2px solid rgba(255, 234, 0, 0.2);
  z-index: 1000;
}

.logo-container {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.logo {
  height: 100px;
  filter: drop-shadow(0 0 15px rgba(255, 234, 0, 0.6));
  transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.logo-container:hover .logo {
  transform: scale(1.1) rotate(-2deg);
  filter: drop-shadow(0 0 30px rgba(255, 234, 0, 0.9));
}

.menu {
  display: flex;
  align-items: center;
  gap: 15px;
}

.menu a {
  background: linear-gradient(135deg, #fff 0%, #ffea00 50%, #ffaa00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 4px rgba(255, 234, 0, 0.7));
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  padding: 10px 18px;
  transition: all 0.4s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.menu a:hover {
  filter: drop-shadow(0 0 12px rgba(255, 234, 0, 1));
  transform: translateY(-3px);
  -webkit-text-fill-color: #fff;
}

/* ================= MAIN & CONTAINER CENTRALIZADO ================= */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 140px; 
  padding-bottom: 80px;
}

.container {
  width: 100%;
  max-width: 1100px;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 80px;
}

/* ================= HERO ================= */
.hero-title {
  font-size: clamp(38px, 8vw, 72px);
  font-weight: 900;
  background: linear-gradient(135deg, #fff 20%, #ffea00 60%, #ffaa00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 10px 30px rgba(255, 234, 0, 0.3));
  line-height: 1.1;
  max-width: 900px;
}

/* ================= BOTÃO IP DOURADO ================= */
.btn.main-btn {
  font-size: 22px;
  padding: 25px 70px;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff 0%, #ffea00 40%, #ff8c00 100%);
  color: #000;
  font-weight: 900;
  box-shadow: 0 0 40px rgba(255, 215, 0, 0.5);
  border: 2px solid #fff;
  cursor: pointer;
  transition: 0.4s;
  text-transform: uppercase;
  letter-spacing: 2px;
  display: inline-block;
}

.btn.main-btn:hover {
  transform: scale(1.05) translateY(-5px);
  box-shadow: 0 0 60px rgba(255, 215, 0, 0.8);
}

/* ================= VOTE BOX (LADO A LADO) ================= */
.vote-box {
  width: 100%;
  background: rgba(15, 19, 30, 0.8);
  border: 2px solid var(--primary);
  box-shadow: 0 0 30px rgba(255, 234, 0, 0.2);
  padding: 50px;
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
}

.vote-box h2 {
  font-weight: 900;
  margin-bottom: 40px;
  font-size: 28px;
  filter: drop-shadow(0 0 10px var(--primary));
  text-transform: uppercase;
}

.vote-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.vote-section {
  background: rgba(0, 0, 0, 0.3);
  padding: 30px;
  border-radius: 15px;
  border: 1px solid rgba(255, 234, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: 0.3s;
}

.vote-section:hover {
  border-color: var(--primary);
  background: rgba(255, 234, 0, 0.03);
}

.vote-section h3 {
  font-size: 18px;
  margin-bottom: 20px;
  color: var(--primary);
  filter: drop-shadow(0 0 5px var(--primary));
  border-bottom: 2px solid var(--primary);
  padding-bottom: 10px;
  width: fit-content;
}

.vote-section a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 12px;
  transition: 0.3s;
}

.vote-section a:hover {
  color: var(--primary);
  filter: drop-shadow(0 0 8px var(--primary));
  transform: scale(1.1);
}

/* ================= MODAIS (SCROLL E CENTRALIZAÇÃO) ================= */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.96);
  z-index: 2000;
  backdrop-filter: blur(20px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-content {
  position: relative;
  width: 100%;
  max-width: 800px;
  max-height: 80vh;
  background: #0b0f1a;
  border: 2px solid var(--primary);
  box-shadow: 0 0 60px rgba(255, 234, 0, 0.3);
  border-radius: var(--radius);
  padding: 50px;
  overflow-y: auto;
  scrollbar-gutter: stable;
  text-align: center;
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 30px;
  cursor: pointer;
  color: var(--primary);
  transition: 0.3s;
  z-index: 2100;
}

.close-btn:hover {
  transform: rotate(90deg) scale(1.2);
}

/* ================= CARDS DINÂMICOS ================= */
/* ================= CARDS DINÂMICOS ================= */
.card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 234, 0, 0.15);
  border-radius: 15px;
  padding: 30px;
  margin-bottom: 30px;
  width: 100%;
  transition: all 0.3s ease;

  /* 🔥 CORREÇÃO PRINCIPAL */
  display: flex;
  flex-direction: column;
  align-items: stretch; /* NÃO usar center */

  /* 🔥 MELHORIA */
  gap: 8px;
}

/* ================= HOVER ================= */
.card:hover {
  border-color: var(--primary);
  box-shadow: 0 0 30px rgba(255, 234, 0, 0.25);
  transform: translateY(-3px);
}

/* ================= TÍTULO ================= */
.card h2 {
  width: 100%;
  text-align: center;
  font-weight: 800;

  filter: drop-shadow(0 0 8px var(--primary));
  border-bottom: 2px solid rgba(255, 234, 0, 0.2);

  padding-bottom: 12px;
  margin-bottom: 15px;
}

/* ================= TEXTO ================= */
.card p {
  line-height: 1.8;
  color: #eee;
  font-size: 15px;

  /* 🔥 CORREÇÃO FINAL */
  white-space: normal;

  /* 🔥 MELHORIA */
  text-align: left;
  word-break: break-word;
}

/* ================= ESPAÇAMENTO EXTRA ================= */
.card p + p {
  margin-top: 4px;
}

/* ================= SCROLL SUAVE (MODAL) ================= */
.modal-content {
  scroll-behavior: smooth;
}

/* ================= TOAST IP ================= */
#toast {
  display: none;
  position: fixed;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #fff 0%, #ffea00 50%, #ff8c00 100%);
  color: #000;
  padding: 15px 40px;
  border-radius: 50px;
  font-weight: 900;
  z-index: 9999;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(255, 234, 0, 0.6);
  border: 2px solid #fff;
  text-transform: uppercase;
}

/* ================= FOOTER ================= */
footer {
  padding: 40px;
  text-align: center;
  color: rgba(255, 234, 0, 0.4);
  border-top: 1px solid var(--border);
}

/* ================= RESPONSIVIDADE ================= */
@media (max-width: 768px) {
  .header { height: 75px; }
  .logo { height: 70px; }
  .menu { gap: 8px; }
  .menu a { font-size: 10px; padding: 5px; }
  .hero-title { font-size: 32px; }
  .vote-wrapper { grid-template-columns: 1fr; }
  .vote-box { padding: 30px; }
  .modal-content { padding: 30px; }
}

/* ================= HERO UPGRADE (GOLD AAA) ================= */

.hero {
  position: relative;
  text-align: center;
  padding: 80px 20px 40px;
  max-width: 900px;
}

/* Linha principal abaixo do título */
.hero-title span {
  display: block;
  font-size: clamp(16px, 2vw, 22px);
  margin-top: 15px;
  color: #cbd5e1;
  font-weight: 500;
}

/* Destaque TOP 20 */
.hero-title span:last-child {
  font-weight: 800;

  background: linear-gradient(90deg, #ffea00, #ff8c00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  filter: drop-shadow(0 0 10px rgba(255, 234, 0, 0.4));
}

/* SUB TEXTO */
.hero-sub {
  margin-top: 25px;
  font-size: 18px;
  color: #e2e8f0;
  opacity: 0.9;
}

/* DESCRIÇÃO */
.hero-desc {
  margin-top: 10px;
  font-size: 15px;
  color: #94a3b8;
}

/* TAGS */
.hero-tags {
  margin-top: 35px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

/* TAG INDIVIDUAL */
.hero-tags span {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;

  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 234, 0, 0.2);

  transition: 0.3s;
}

/* HOVER */
.hero-tags span:hover {
  background: rgba(255, 234, 0, 0.08);
  border-color: var(--primary);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 0 15px rgba(255, 234, 0, 0.2);
}

/* ================= ANIMAÇÃO DE ENTRADA ================= */

.hero {
  animation: fadeUp 1s ease forwards;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}