/* ================================================
   PW Nostalgia — Perfect World / MMORPG Theme
   css/style.css
   ================================================ */

/* ---- Variáveis CSS ---- */
:root {
  /* Fundos escuros */
  --bg:          #0a0805;
  --bg-alt:      #0e0b07;
  --surface:     #12100c;
  --surface-2:   #1a1410;

  /* Paleta de acentos dourado/vermelho */
  --gold:        #c9a84c;
  --gold-light:  #e8c97a;
  --gold-dim:    #7a5e2a;
  --brown:       #6b3a1f;
  --brown-light: #9c5e33;
  --red:         #8b1a1a;
  --red-bright:  #c0392b;
  --green:       #1c6b3a;
  --green-bright:#27ae60;

  /* Aliases mantidos por compatibilidade */
  --blue:        var(--gold);
  --blue-light:  var(--gold-light);
  --blue-dark:   var(--gold-dim);
  --purple:      var(--gold);
  --purple-light:var(--gold-light);
  --purple-dark: var(--gold-dim);
  --cyan:        var(--gold-light);
  --cyan-light:  var(--gold-light);

  --grad-main:   linear-gradient(135deg, #8b1a1a 0%, #c9a84c 50%, #8b1a1a 100%);
  --grad-purple: linear-gradient(135deg, #7a5e2a, #c9a84c);
  --grad-cyan:   linear-gradient(135deg, #5a3a0a, #e8c97a);

  /* Bordas / brilhos */
  --border:        rgba(255,255,255,0.07);
  --border-blue:   rgba(180,130,60,0.35);
  --glow-blue:     0 0 20px rgba(200,160,70,0.35);
  --glow-purple:   0 0 20px rgba(200,160,70,0.4);

  /* Texto */
  --text:        #d8d3c8;
  --text-muted:  #7a7570;
  --text-bright: #f0ebe0;

  /* Diversos */
  --nav-h:       70px;
  --radius-btn:  4px;      /* afiado / levemente arredondado como o original */
  --radius-card: 8px;
  --radius-sm:   4px;
  --tr:          0.3s ease;

  --font-title:  'Cinzel', serif;
  --font-deco:   'Cinzel Decorative', serif;
  --font-body:   'Raleway', sans-serif;
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  overflow-x: hidden;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--gold-dim); border-radius: 3px; }

/* ================================================
   PARTICLES CANVAS
================================================ */
#particles-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}

/* ================================================
   ANIMAÇÃO DROP-IN (scroll / carregamento)
   Cada .drop-in começa invisível acima e cai para o lugar
================================================ */
@keyframes dropIn {
  0%   { opacity: 0; transform: translateY(-40px) scale(0.96); }
  60%  { transform: translateY(6px) scale(1.01); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Elementos do herói — ativados por CSS ao carregar */
.drop-in {
  opacity: 0;
  animation: dropIn 0.7s cubic-bezier(.22,1,.36,1) forwards;
  animation-delay: var(--d, 0s);
}

/* Elementos reveal ao rolar — ativados pelo JS adicionando .is-visible */
.reveal-drop {
  opacity: 0;
  transform: translateY(-35px) scale(0.97);
  transition: opacity 0.65s cubic-bezier(.22,1,.36,1), transform 0.65s cubic-bezier(.22,1,.36,1);
  transition-delay: var(--d, 0s);
}

.reveal-drop.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ================================================
   BARRA LATERAL SOCIAL
================================================ */
.social-sidebar {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 900;
  display: flex;
  flex-direction: column;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  min-width: 40px;
  height: 40px;
  padding: 0;
  background: rgb(220 188 104);
  border: 1px solid var(--border);
  border-left: none;
  color: #111111;
  font-size: 1.1rem;
  text-decoration: none;
  backdrop-filter: blur(8px);
  transition: var(--tr);
}

.social-icon:first-child { border-radius: 0 var(--radius-sm) 0 0; }
.social-icon:last-child  { border-radius: 0 0 var(--radius-sm) 0; }

.social-icon:hover {
  background: var(--gold);
  color: #111111;
  border-color: var(--gold);
  box-shadow: none;
}

.tiktok-icon { width: 18px; height: 18px; }

.social-icon .bi {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(24, 15, 3, 0.1);
  color: #111111;
  font-size: 0.92rem;
}

.social-icon--discord .bi {
  color: #111111;
}

.social-icon--facebook .bi {
  color: #111111;
}

.social-icon--instagram .bi {
  color: #111111;
}

/* ================================================
   BARRA DE NAVEGAÇÃO
================================================ */
.main-navbar {
  height: var(--nav-h);
  background: rgba(8, 8, 12, 0.92) !important;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.4s, box-shadow 0.4s;
  z-index: 1050;
}

.main-navbar.scrolled {
  background: rgba(6, 6, 10, 0.98) !important;
  box-shadow: 0 2px 30px rgba(0,0,0,0.6);
}

.nav-logo-img {
  height: 44px;
  width: auto;
  filter: drop-shadow(0 0 8px rgba(201, 168, 76, 0.6));
  transition: filter var(--tr);
}

.nav-logo-img:hover { filter: drop-shadow(0 0 16px rgba(200,160,70,0.9)); }

/* Links de navegação */
.nav-center-menu .nav-item-link {
  font-family: var(--font-title);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--text-muted) !important;
  padding: 0.5rem 0.9rem !important;
  transition: color var(--tr);
  position: relative;
}

.nav-center-menu .nav-item-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width var(--tr);
}

.nav-center-menu .nav-item-link:hover,
.nav-center-menu .nav-item-link.active {
  color: var(--gold-light) !important;
}

.nav-center-menu .nav-item-link:hover::after,
.nav-center-menu .nav-item-link.active::after { width: 70%; }

/* Menu suspenso */
.dropdown-dark-custom {
  background: rgba(10, 10, 15, 0.97);
  border: 1px solid var(--border-blue);
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
  padding: 6px 0;
  min-width: 180px;
}

.dropdown-dark-custom .dropdown-item {
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  padding: 0.5rem 1.2rem;
  transition: var(--tr);
}

.dropdown-dark-custom .dropdown-item:hover {
  background: rgba(200,160,70,0.12);
  color: var(--gold-light);
}

/* Botão de idioma */
.lang-btn {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 4px 12px;
  font-size: 1rem;
  color: var(--text);
  cursor: pointer;
  transition: var(--tr);
}
.lang-btn::after { display: none; }
.lang-btn:hover { border-color: var(--blue); }

/* ================================================
   BOTÃO DE LOGIN (pílula, gradiente mágico)
================================================ */
.btn-signin {
  font-family: var(--font-title);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #111 !important;
  background: linear-gradient(135deg, #c9a84c 0%, #e8c97a 50%, #c9a84c 100%);
  border: none;
  border-radius: var(--radius-btn);
  padding: 9px 24px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: var(--tr);
  box-shadow: 0 2px 12px rgba(201, 168, 76, 0.45);
}

.btn-signin:hover::before { opacity: 1; }
.btn-signin:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(201, 168, 76, 0.65); }

/* ================================================
   SISTEMA DE BOTÕES — estilo dourado/escuro original
================================================ */
.btn-magic {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-title);
  font-size: 0.80rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--text-bright) !important;
  background: linear-gradient(180deg, rgba(80, 45, 20, 0.65) 0%, rgba(15, 10, 5, 0.9) 100%);
  border: 1px solid rgba(200, 160, 70, 0.35);
  border-radius: var(--radius-btn);
  padding: 12px 28px;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: var(--tr);
  box-shadow: inset 0 1px 0 rgba(200, 160, 70, 0.07), 0 6px 20px rgba(0, 0, 0, 0.4);
}

.btn-magic::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(201, 168, 76, 0.1);
  opacity: 0;
  transition: opacity var(--tr);
}

.btn-magic:hover {
  border-color: rgba(220, 180, 80, 0.9);
  box-shadow: 0 0 0 1px rgba(200, 160, 70, 0.35), 0 0 24px rgba(200, 160, 70, 0.2), inset 0 1px 0 rgba(255,255,255,0.1);
  transform: translateY(-2px);
}
.btn-magic:hover::before { opacity: 1; }
.btn-magic > * { position: relative; z-index: 1; }

.btn-sm-magic { font-size: 0.65rem; padding: 8px 18px; }

.btn-discord {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-title);
  font-size: 0.80rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #ffffff !important;
  background: linear-gradient(180deg, rgb(88 101 242) 0%, rgb(33 166 218 / 90%) 100%);
  border: 1px solid rgba(88, 101, 242, 0.45);
  border-radius: var(--radius-btn);
  padding: 12px 28px;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: var(--tr);
  box-shadow: 0 6px 20px rgba(33, 166, 218, 0.28);
}

.btn-discord::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.08);
  opacity: 0;
  transition: opacity var(--tr);
}

.btn-discord:hover {
  border-color: rgba(127, 182, 255, 0.95);
  box-shadow: 0 0 0 1px rgba(88, 101, 242, 0.35), 0 0 24px rgba(33, 166, 218, 0.25);
  transform: translateY(-2px);
}

.btn-discord:hover::before { opacity: 1; }
.btn-discord > * { position: relative; z-index: 1; }

.btn-magic.btn-purple  {border-color: rgb(180 121 20 / 50%);}
.btn-magic.btn-cyan    { border-color: rgba(180, 130, 50, 0.4); }

.btn-magic.btn-outline-magic {
  background: transparent;
  border: 1px solid rgba(200, 160, 70, 0.5);
  box-shadow: none;
}
.btn-magic.btn-outline-magic:hover {
  border-color: rgba(220, 180, 80, 0.9);
  background: rgba(200, 160, 70, 0.1);
}

.btn-ghost-magic {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-title);
  font-size: 0.9em;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: #ffffff !important;
  background: transparent;
  border: 1px solid rgba(200, 160, 70, 0.35);
  border-radius: var(--radius-btn);
  padding: 12px 24px;
  text-decoration: none;
  transition: var(--tr);
}

.btn-ghost-magic:hover {
  border-color: rgba(220, 180, 80, 0.9);
  color: rgba(255, 255, 255, 0.9) !important;
  transform: translateY(-2px);
}

body.modal-open {
  overflow: hidden;
}

.download-modal-pure {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(10, 10, 18, 0.72);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.download-modal-pure.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.download-modal-pure__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 18, 0.68);
}

.download-modal-pure__container {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: min(92vh, 760px);
  overflow: hidden;
  background: rgba(18, 18, 28, 0.96);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 28px;
  box-shadow: 0 28px 90px rgba(0,0,0,0.42);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transform: translateY(-14px) scale(0.96);
  transition: transform 0.25s ease;
}

.download-modal-pure.active .download-modal-pure__container {
  transform: translateY(0) scale(1);
}

.download-modal-pure__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: #ffffff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.download-modal-pure__close:hover {
  background: rgba(255,255,255,0.14);
  transform: scale(1.05);
}

.download-modal-pure__header {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.download-modal-pure__subtitle {
  font-size: 0.75rem;
  letter-spacing: 0.32em;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
}

.download-modal-pure__title {
  font-family: var(--font-title);
  font-size: clamp(2rem, 2.8vw, 2.6rem);
  line-height: 1.05;
  color: #ffffff;
}

.download-modal-pure__cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.download-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 22px;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.download-card__title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #ffffff;
  text-transform: uppercase;
}

.download-card__text {
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
}

.download-card__actions {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.download-card__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.download-card__button:hover {
  transform: translateY(-1px);
}

.download-card__button--danger {
  background: linear-gradient(135deg, #e53e3e, #f97316);
  box-shadow: 0 12px 30px rgba(245, 101, 70, 0.28);
}

.download-card__button--success {
  background: linear-gradient(135deg, #16a34a, #22c55e);
  box-shadow: 0 12px 30px rgba(34, 197, 94, 0.22);
}

.download-card__button--secondary {
  background: linear-gradient(135deg, rgba(107,114,128,0.15), rgba(75,85,99,0.22));
  color: #f8fafc;
  box-shadow: 0 12px 30px rgba(100,116,139,0.16);
}

.download-card__button--gold {
  background: linear-gradient(135deg, #d6a74b, #f8e16c);
  color: #111827;
  box-shadow: 0 12px 30px rgba(216,167,75,0.24);
}

@media (max-width: 880px) {
  .download-modal-pure__container {
    padding: 1.35rem;
  }
  .download-modal-pure__cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .download-modal-pure__container {
    max-height: 100vh;
    padding: 1.25rem;
  }
}


.account-modal-dialog,
.download-modal-dialog {
  max-width: 460px;
  margin: 0.9rem auto;
}

.account-modal-content,
.download-modal-content {
  background: rgba(10, 10, 16, 0.96);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  backdrop-filter: blur(16px);
  box-shadow: 0 30px 80px rgba(0,0,0,0.45);
  color: var(--text-bright);
}

.account-modal-header,
.download-modal-header {
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 1.5rem 1.75rem 1rem;
}

.account-modal-header .modal-title,
.download-modal-header .modal-title {
  font-family: var(--font-title);
  font-size: 2rem;
  color: var(--gold-light);
  margin-top: -10px;
  margin-left: -3px;
  font-weight: 600;
}

.account-modal-header p,
.download-modal-header p,
.account-modal-header .text-muted,
.download-modal-header .text-muted {
  color: #ffffff !important;
  margin: 0.35rem 0 0;
}

.account-modal-body,
.download-modal-body {
  padding: 0.85rem 1.2rem 1.1rem;
  margin-top: -10px;
}

.account-modal-form {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.account-modal-body .form-label,
.download-modal-body .form-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.72);
}

.account-modal-body .form-control,
.download-modal-body .form-control {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 14px;
  color: #f7f5f0;
  padding: 10px 12px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.account-modal-body .form-control::placeholder,
.download-modal-body .form-control::placeholder {
  color: rgba(255,255,255,0.82);
  opacity: 1;
}

.account-modal-body .form-control:focus,
.download-modal-body .form-control:focus {
  border-color: rgba(200, 160, 70, 0.9);
  box-shadow: 0 0 0 6px rgba(200, 160, 70, 0.12);
  background: rgba(255,255,255,0.1);
  color: #ffffff;
}

.account-modal-body p,
.download-modal-body p {
  color: rgba(255,255,255,0.82);
}

.account-modal-body p.text-muted,
.download-modal-body p.text-muted {
  color: #ffffff !important;
}

.account-modal-body .text-center,
.download-modal-body .text-center {
  margin-top: 0.75rem;
}

.account-download-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 1.5rem;
}

.account-download-card h6 {
  margin-bottom: 0.75rem;
}

.account-download-card p {
  color: rgba(255,255,255,0.72);
}

.account-modal-submit,
.account-download-primary {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 8px 28px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #c9a84c 0%, #e8c97a 100%);
  color: #111;
  font-weight: 900;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
  text-transform: uppercase;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.account-modal-submit:hover,
.account-download-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 35px rgba(200, 160, 70, 0.22);
}

.account-modal-secondary,
.account-download-secondary {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 8px 14px;
  border: 1px solid rgba(200, 160, 70, 0.5);
  border-radius: 14px;
  background: rgba(107, 58, 31, 0.25);
  color: var(--text-bright);
  text-transform: uppercase;
  font-weight: 600;
  font-size: 0.85rem;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.account-modal-secondary:hover,
.account-download-secondary:hover {
  border-color: rgba(200, 160, 70, 0.9);
  background: rgba(200, 160, 70, 0.1);
  transform: translateY(-1px);
}
.modal .btn-close-white {
  filter: invert(1);
  opacity: 0.7;
}
.modal .btn-close-white:hover {
  opacity: 1;
}


/* ================================================
   SEÇÃO HERO
================================================ */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: url('../img/background.jpeg') center/cover no-repeat;
  z-index: 1;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.12) 1px, transparent 1px);
  background-size: 54px 54px, 54px 54px;
  opacity: 0.4;
  pointer-events: none;
  z-index: 2;
}

/* Overlay escuro + colorido */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgb(46 32 3 / 90%) 0%, rgba(7, 7, 15, 0.5) 50%, rgb(19 1 1 / 75%) 100%), linear-gradient(to top, rgb(24 9 9 / 95%) 0%, transparent 60%);
  z-index: 1;
}

/* Orbes cintilantes */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 2;
}

.orb-1 {
  width: 500px; height: 500px;
  background: rgba(139,92,20,0.12);
  top: -100px; left: -100px;
  animation: orbFloat 8s ease-in-out infinite;
}

.orb-2 {
  width: 400px; height: 400px;
  background: rgba(120,50,20,0.13);
  bottom: -80px; right: 10%;
  animation: orbFloat 10s ease-in-out infinite 2s;
}

.orb-3 {
  width: 300px; height: 300px;
  background: rgba(180,120,30,0.08);
  top: 40%; left: 50%;
  transform: translateX(-50%);
  animation: orbFloat 6s ease-in-out infinite 1s;
}

@keyframes orbFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-30px) scale(1.05); }
}

/* Conteúdo do herói */
.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding-top: var(--nav-h);
}

.hero-logo-wrap { margin-bottom: 8px; }

.hero-logo-img {
  height: clamp(260px, 35vw, 500px);
  width: auto;
  filter:
    drop-shadow(0 0 20px rgb(255 255 255 / 50%))
    drop-shadow(0 0 60px rgb(144 42 255 / 25%));
  animation: logoPulse 4s ease-in-out infinite;
}

@keyframes logoPulse {
  0%,100% { filter: drop-shadow(0 0 20px rgba(201, 168, 76, 0.5)) drop-shadow(0 0 60px rgba(139, 26, 26, 0.3)); }
  50%     { filter: drop-shadow(0 0 35px rgba(232, 201, 122, 0.8)) drop-shadow(0 0 90px rgba(200, 160, 70, 0.5)); }
}

/* Linha decorativa */
.deco-line {
  width: 280px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-dim), var(--gold-light), transparent);
  position: relative;
  margin: 6px 0;
}

.deco-line::before {
  content: '✦';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  color: var(--gold);
  font-size: 0.65rem;
  text-shadow: 0 0 10px var(--gold);
}

/* Subtítulo do herói */
.hero-subtitle {
  font-family: var(--font-title);
  font-size: clamp(0.8rem, 2vw, 1rem);
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--text-bright);
  text-shadow: 0 2px 8px rgba(0,0,0,0.7);
}

/* Linha de botões do herói */
.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

/* Estrelas do herói */
.hero-stars { display: flex; gap: 70px; margin-top: 14px; }

.hstar {
  color: var(--gold-light);
  font-size: 0.65rem;
  opacity: 0.6;
  animation: starPulse 2.5s ease-in-out infinite;
}
.hstar.s2 { animation-delay: 0.8s; color: var(--gold); }
.hstar.s3 { animation-delay: 1.6s; color: var(--gold-dim); }

@keyframes starPulse {
  0%,100% { opacity: 0.2; transform: scale(1); }
  50%     { opacity: 1; transform: scale(1.4); }
}

/* ================================================
   PAINEL DE SERVIDORES
================================================ */
.server-panel {
  position: absolute;
  right: 20px; top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.server-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(10,10,14,0.82);
  border: 1px solid var(--border);
  border-left: 2px solid #b790e0;
  padding: 10px 14px;
  min-width: 255px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  backdrop-filter: blur(10px);
  transition: var(--tr);
  cursor: pointer;
}

.server-card:hover {
  border-left-color: var(--gold);
  background: rgba(18,16,12,0.95);
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  transform: translateX(-3px);
}

.server-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 0.95rem;
  flex-shrink: 0;
}

.fire-icon { color: #e67e22; border-color: rgb(255 255 255 / 30%); background: rgba(230,126,34,0.06); }
.eye-icon  { color: #8e44ad; border-color: rgba(142,68,173,0.3); background: rgba(142,68,173,0.06); }

.server-info { display: flex; flex-direction: column; flex: 1; }

.server-name {
  font-family: var(--font-title);
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-bright);
}

.server-rate { color: var(--gold-light); }
.server-status-text { font-size: 0.6rem; color: var(--text-muted); letter-spacing: 0.07em; margin-top: 2px; }

/* Server badges */
.server-badge {
  font-family: var(--font-title);
  font-size: 0.58rem; font-weight: 700;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 3px;
  flex-shrink: 0;
}

.badge-soon { background: var(--red); color: #fff; }
.badge-new  { background: var(--green); color: #fff; }
.badge-old  { background: #5a4a1a; color: var(--gold-light); }

/* ================================================
   GALERIA / SEÇÃO DE IMAGENS
================================================ */
.gallery-section {
  background: var(--bg-alt);
  padding: 80px 0;
  position: relative;
  z-index: 1;
}

.gallery-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-dim), var(--gold), transparent);
}

/* Cabeçalho da seção */
.section-header {
  display: flex; align-items: center; justify-content: center;
  gap: 20px;
  margin-bottom: 60px;
  padding: 0 20px;
}

.sh-line {
  flex: 1;
  max-width: 220px;
  height: 1px;
  background: linear-gradient(to right, transparent, #ffffff);
}

.section-header .sh-line:last-child {
  background: linear-gradient(to left, transparent, #ffffff);
}

.section-title {
  font-family: var(--font-title);
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--text-bright);
  white-space: nowrap;
}

/* Layout do bloco da galeria */
.gblock {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--surface);
  margin-bottom: 28px;
}

.gblock-rev { grid-template-columns: 1.5fr 1fr; }
.gblock-rev .gblock-info { order: 2; }
.gblock-rev .gblock-carousel { order: 1; }

/* Lado de informações */
.gblock-info {
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  background: linear-gradient(135deg, rgba(14,12,10,0.95), rgba(20,17,12,0.85));
}

.gblock-tag {
  font-family: var(--font-title);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--gold-light);
  background: rgba(107, 58, 31, 0.2);
  border: 1px solid rgba(200, 160, 70, 0.3);
  border-radius: 3px;
  padding: 5px 14px;
  display: inline-block;
  align-self: flex-start;
}

.gblock-tag.tag-purple {
  color: #ffffff;
  background: rgb(153 84 49 / 15%);
  border-color: rgb(164 111 20 / 40%);
}

.gblock-tag.tag-cyan {
  color: var(--gold-light);
  background: rgba(180,140,50,0.1);
  border-color: rgba(200,160,60,0.3);
}

.gblock-title {
  font-family: var(--font-title);
  font-size: clamp(1.3rem, 2.5vw, 1.9rem);
  font-weight: 700;
  color: var(--text-bright);
  line-height: 1.2;
}

.gblock-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.gblock-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gblock-meta-item {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.gblock-meta-item i {color: #f6f6f6;font-size: 0.8rem;}

/* Lado do carrossel */
.gblock-carousel {
  position: relative;
  min-height: 340px;
}

.gslide-img {
  width: 100%; height: 340px;
  object-fit: cover;
  filter: brightness(0.75) saturate(0.9);
  transition: filter 0.5s ease;
}

.gblock:hover .gslide-img { filter: brightness(0.9) saturate(1.1); }

.discord-community-block .gblock-info {
  gap: 16px;
}

.discord-widget-wrap {
  padding: 14px;
  background: linear-gradient(135deg, rgba(16, 12, 9, 0.95), rgba(20, 16, 10, 0.86));
}

.discord-widget-row {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 12px;
  min-height: 340px;
}

.discord-widget-frame {
  width: 100%;
  min-height: 340px;
  border: 1px solid rgba(200, 160, 70, 0.28);
  border-radius: 10px;
  background: #13100c;
}

.discord-side-art {
  border: 1px solid rgba(200, 160, 70, 0.22);
  border-radius: 10px;
  overflow: hidden;
  background: #120d07;
}

.discord-side-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.88) contrast(1.03);
}

/* Legenda do slide */
.gslide-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 12px 18px;
  background: linear-gradient(to top, rgba(5,5,8,0.92) 0%, transparent 100%);
  font-size: 0.78rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}

.gcap-tag {
  font-family: var(--font-title);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  background: var(--gold-dim);
  color: var(--bg);
  padding: 3px 10px;
  border-radius: 3px;
  white-space: nowrap;
  flex-shrink: 0;
}

.gcap-tag.tag-purple {background: var(--red-bright); color: #ffffff;}
.gcap-tag.tag-cyan   {background: var(--gold);       color: #000000;}

/* Controles do carrossel */
.gcbtn {
  width: 40px; height: 40px;
  background: rgba(10,10,12,0.75) !important;
  border: 1px solid rgba(200,160,70,0.35) !important;
  border-radius: 50% !important;
  opacity: 1 !important;
  top: 50%; transform: translateY(-50%);
  position: absolute;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-light);
  font-size: 0.9rem;
  transition: var(--tr);
  z-index: 5;
  cursor: pointer;
}

.gcbtn.carousel-control-prev { left: 12px; }
.gcbtn.carousel-control-next { right: 12px; }

.gcbtn:hover {
  background: rgba(200,160,70,0.2) !important;
  border-color: var(--gold) !important;
  box-shadow: 0 0 16px rgba(200,160,70,0.3);
}

.gcbtn .carousel-control-prev-icon,
.gcbtn .carousel-control-next-icon { display: none; }

/* Pontos do carrossel */
.gcdots {
  bottom: 46px;
  position: absolute;
  display: flex; gap: 6px;
  justify-content: flex-end;
  right: 12px; left: auto;
  margin: 0;
}

.gcdots button {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15) !important;
  border: 1px solid rgba(200,160,70,0.25);
  transition: var(--tr);
  opacity: 1 !important;
}

.gcdots button.active {
  background: var(--gold) !important;
  box-shadow: 0 0 8px rgba(201, 168, 76, 0.7);
  width: 20px;
  border-radius: 4px;
  border-color: var(--gold);
}

/* ================================================
   SEÇÃO DE NOTÍCIAS
================================================ */
.news-section {
  background: #180f03;
  padding: 90px 0;
  position: relative;
  z-index: 1;
}

.news-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-dim), transparent);
}

/* Cartão de notícias */
.news-card {
  background: #1a160b;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: var(--tr);
  position: relative;
}

.news-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(to right, var(--gold-dim), var(--gold), var(--gold-dim));
  opacity: 0;
  transition: opacity var(--tr);
  border-radius: var(--radius-card) var(--radius-card) 0 0;
}

.news-card:hover {
  border-color: var(--border-blue);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5), 0 0 0 1px rgba(200,160,70,0.15);
  transform: translateY(-6px);
}

.news-card:hover::before { opacity: 1; }

.news-card-img-wrap {
  position: relative;
  overflow: hidden;
  height: 200px;
  background: #e98e51;
}

.news-card-img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.8) saturate(0.7);
  transition: transform 0.5s ease, filter 0.5s ease;
}

.news-card:hover .news-card-img {
  transform: scale(1.07);
  filter: brightness(0.95) saturate(1.1);
}

.news-badge {
  position: absolute;
  bottom: 12px; right: 12px;
  font-family: var(--font-title);
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.1em;
  background: var(--gold);
  color: var(--bg);
  padding: 4px 12px;
  border-radius: 3px;
}

.news-card-body {
  padding: 20px;
  display: flex; flex-direction: column; flex: 1; gap: 8px;
}

.news-cat {
  font-family: var(--font-title);
  font-size: 0.58rem; font-weight: 700; letter-spacing: 0.18em;
  color: var(--gold-dim);
}

.news-card-title {
  font-family: var(--font-title);
  font-size: 0.92rem; font-weight: 600;
  color: var(--text-bright);
  line-height: 1.4;
  margin: 0;
}

.news-card-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}

/* ================================================
   FAIXA DE ESTATÍSTICAS
================================================ */
.server-strip {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 56px 0;
  position: relative;
  z-index: 1;
}

.strip-stat { display: flex; flex-direction: column; align-items: center; gap: 6px; }

.strip-icon {
  font-size: 1.8rem;
  color: var(--gold-dim);
  margin-bottom: 4px;
}

.strip-number {
  font-family: var(--font-title);
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
}

.strip-label {
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* ================================================
   RODAPÉ
================================================ */
.main-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 60px 0 28px;
  position: relative;
  z-index: 1;
}

.footer-logo-img { height: 50px; width: auto; filter: drop-shadow(0 0 10px rgba(200,160,70,0.35)); }
.footer-desc { font-size: 0.82rem; color: var(--text-muted); line-height: 1.7; max-width: 280px; margin-bottom: 18px; }
.footer-top { padding-bottom: 40px; }

.footer-socials { display: flex; gap: 10px; }

.footer-social-link {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 1rem;
  text-decoration: none;
  transition: var(--tr);
}

.footer-social-link:hover {
  background: rgba(200,160,70,0.1);
  border-color: var(--gold-dim);
  color: var(--gold-light);
}

.footer-heading {
  font-family: var(--font-title);
  font-size: 0.67rem; font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--gold-dim);
  margin-bottom: 16px;
}

.footer-links { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; }

.footer-links a {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--tr);
  display: flex; align-items: center; gap: 6px;
}

.footer-links a::before { content: '›'; color: var(--gold-dim); }
.footer-links a:hover { color: var(--gold-light); }

.footer-servers { display: flex; flex-direction: column; gap: 8px; }

.footer-server-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 8px 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: var(--tr);
}

.footer-server-item:hover { border-color: var(--border-blue); }

.status-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dot-online { background: var(--green-bright); box-shadow: 0 0 8px var(--green-bright); animation: blink 2s ease-in-out infinite; }
.dot-soon   { background: var(--gold-dim); }

@keyframes blink {
  0%,100% { opacity: 1; } 50% { opacity: 0.3; }
}

.footer-server-badge {
  font-family: var(--font-title);
  font-size: 0.56rem; font-weight: 700;
  letter-spacing: 0.1em;
  background: var(--red);
  color: #fff;
  padding: 2px 10px;
  border-radius: 3px;
}

.footer-server-badge.badge-green {
  background: var(--green);
  color: #8affc1;
}

.footer-divider { border-color: var(--border); margin: 0 0 22px; }
.footer-bottom { text-align: center; font-size: 0.73rem; color: var(--text-muted); }

/* ================================================
   RESPONSIVO
================================================ */
@media (max-width: 991.98px) {
  .nav-center-menu { padding: 12px 0; }
  .nav-center-menu .nav-item-link { font-size: 0.78rem; padding: 0.6rem 0 !important; }
  .nav-right-controls { padding: 12px 0; border-top: 1px solid var(--border); }

  .server-panel {
    position: static; transform: none;
    flex-direction: row; flex-wrap: wrap; justify-content: center;
    padding: 14px; gap: 8px;
    margin-top: auto; padding-bottom: 50px;
  }
  .server-card { min-width: 200px; flex: 1; }

  .hero-section { flex-direction: column; align-items: center; justify-content: flex-end; }
  .hero-content { padding-top: calc(var(--nav-h) + 30px); margin-bottom: 20px; }

  .gblock, .gblock-rev {
    grid-template-columns: 1fr;
    border-radius: 14px;
  }

  .gblock-rev .gblock-info { order: 1; }
  .gblock-rev .gblock-carousel { order: 2; }

  .gblock-info { padding: 28px 24px; }
  .gslide-img { height: 260px; }

  .discord-widget-row {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .discord-widget-frame {
    min-height: 300px;
  }

  .discord-side-art {
    max-height: 240px;
  }
}

@media (max-width: 767.98px) {
  .social-sidebar { display: none; }
  .hero-logo-img { height: 200px; }
  .hero-btns { flex-direction: column; align-items: center; }
  .section-header { flex-direction: column; gap: 8px; }
  .sh-line { max-width: 80px; }
}

@media (max-width: 575.98px) {
  .hero-logo-img { height: 160px; }
  .btn-magic { padding: 11px 22px; font-size: 0.7rem; }
  .hero-stars { gap: 40px; }
  .gblock-info { padding: 20px 18px; }
}