@import url("https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap");

@import './components/_variables.css';

@import './core.css';

@import './widgets/event-countdown.css';

/* Import component CSS modules */
@import './components/header.css';
@import './components/layout.css';
@import './components/forms.css';
@import './components/cards.css';
@import './components/widgets.css';
@import './components/tables.css';
@import './components/navigation.css';
@import './components/pages.css';

/* Boxed page styles 
.content-box {
  background: linear-gradient(135deg, rgba(46, 26, 20, 0.95), rgba(62, 39, 35, 0.85));
  backdrop-filter: blur(10px);
  border: 1px solid rgba(141, 110, 99, 0.3);
  transition: all 0.3s ease;
}
*/

/*
.content-box:hover {
  border-color: rgba(141, 110, 99, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(141, 110, 99, 0.2);
}
*/

/* === FONTES === */
.font-medieval {
  font-family: "Cinzel", serif;
}

.font-modern {
  font-family: "Inter", sans-serif;
}

/* === EFEITOS DE TEXTO === */
.glow-text {
  text-shadow: 0 0 5px rgba(255, 171, 64, 0.4), 0 0 20px rgba(255, 171, 64, 0.4),
    0 0 30px rgba(255, 171, 64, 0.2), 2px 2px 4px rgba(0, 0, 0, 0.8);
  color: var(--neon-brown);
}

/* === HOVER EFFECTS === */
.hover-glow:hover {
  box-shadow: 0 0 30px rgba(141, 110, 99, 0.5);
  transform: translateY(-2px);
}

.scale-on-hover {
  transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
}

.scale-on-hover:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 40px rgba(141, 110, 99, 0.2);
}

/* === BACKGROUNDS DE SEÇÕES === */
.hero-bg {
  background-image: url("../images/chars/dl_9.png"),
    linear-gradient(135deg, rgba(62, 39, 35, 0.8), rgba(46, 26, 20, 0.9));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(28, 14, 10, 0.3);
  pointer-events: none;
}

.magic-portal-bg {
  background-image: url("../images/sections/c_1.png"),
    linear-gradient(135deg, rgba(62, 39, 35, 0.8), rgba(46, 26, 20, 0.9));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.character-showcase-bg {
  background-image: url("../images/sections/c_2.png"),
    linear-gradient(135deg, rgba(62, 39, 35, 0.7), rgba(46, 26, 20, 0.8));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  will-change: transform;
  padding: 2rem 0;
}

.section-green-valley {
  background-image: url("../images/sections/c_6.png"), linear-gradient(135deg, rgba(62, 39, 35, 0.7), rgba(46, 26, 20, 0.8));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  will-change: transform;
  padding: 2rem 0;
}

.section-dark-1 {
  background-image: url("../images/sections/c_4.png"), linear-gradient(135deg, rgba(62, 39, 35, 0.7), rgba(28, 14, 10, 0.8));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-blend-mode: multiply;
  will-change: transform;
  padding: 2rem 0;
}

.section-dark-2 {
  background-image: url("../images/sections/c_3.png"), linear-gradient(135deg, rgba(62, 39, 35, 0.7), rgba(28, 14, 10, 0.8));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-blend-mode: multiply;
  will-change: transform;
  padding: 2rem 0;
}

.section-dark-3 {
  background-image: url("../images/sections/c_2.png"), linear-gradient(135deg, rgba(62, 39, 35, 0.7), rgba(28, 14, 10, 0.8));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-blend-mode: multiply;
  will-change: transform;
  padding: 2rem 0;
}

.section-dark-magic-portal {
  background-image: url("../images/sections/c_1.png"), linear-gradient(135deg, rgba(62, 39, 35, 0.7), rgba(28, 14, 10, 0.8));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-blend-mode: multiply;
  will-change: transform;
  padding: 2rem 0;
}

/* === COUNTDOWN TIMER === */
.countdown-timer {
  background: linear-gradient(135deg,
      rgba(62, 39, 35, 0.95),
      rgba(93, 64, 55, 0.85));
  border: 2px solid rgba(141, 110, 99, 0.6);
  box-shadow: 0 0 30px rgba(141, 110, 99, 0.3);
}

@media (max-width: 375px) {
  .countdown-timer {
    padding: 6px !important;
    min-width: 45px !important;
  }

  .countdown-timer .font-medieval {
    font-size: 1rem !important;
    line-height: 1 !important;
  }

  .countdown-timer+div {
    font-size: 9px !important;
    margin-top: 4px !important;
  }
}

@media (min-width: 376px) and (max-width: 480px) {
  .countdown-timer {
    border-width: 1.5px;
  }
}

@media (min-width: 1024px) {
  .countdown-timer:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(141, 110, 99, 0.5);
  }
}

/* === BOTÕES === */
.btn-primary {
  background: linear-gradient(135deg, var(--dark-brown), var(--forest-brown));
  border: 2px solid var(--forest-brown);
  box-shadow: 0 0 10px rgba(141, 110, 99, 0.3);
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.8);
  color: var(--base-color-button-text);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--forest-brown), var(--accent-brown));
  border: 2px solid var(--accent-brown);
  box-shadow: 0 0 15px rgba(141, 110, 99, 0.4);
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.8);
  color: var(--base-color-button-text-hover);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--gold), var(--dark-gold));
  border: 2px solid var(--gold);
  box-shadow: 0 0 20px rgba(255, 171, 64, 0.3);
  color: var(--shadow-brown);
  text-shadow: none;
}

/* === SEÇÕES === */
section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
}

/* === PARALLAX === */
.parallax-container {
  height: 100vh;
  overflow: hidden;
  position: relative;
}

.parallax-element {
  transition: transform 0.1s ease-out;
  background-size: cover;
  background-position: center;
  will-change: transform;
}

/* === ANIMAÇÕES === */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s ease-out;
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.8s ease-out;
}

.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* === BRILHO ANIMADO === */
.animated-glow {
  position: relative;
  overflow: hidden;
}

.animated-glow::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg,
      var(--neon-brown),
      var(--warm-brown),
      var(--accent-brown),
      var(--neon-brown));
  background-size: 400% 400%;
  z-index: -1;
  border-radius: inherit;
  animation: glowMove 3s ease-in-out infinite;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.animated-glow:hover::before {
  opacity: 0.7;
}

@keyframes glowMove {
  0%, 100% {
    background-position: 0% 50%;
  }
  25% {
    background-position: 100% 50%;
  }
  50% {
    background-position: 100% 100%;
  }
  75% {
    background-position: 0% 100%;
  }
}

/* === CHARACTER SELECTOR === */
#selector-viewport {
  overflow-x: scroll;
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

#selector-viewport::-webkit-scrollbar {
  display: none;
}

#selector-viewport.active-drag {
  cursor: grabbing;
}

.character-icon {
  width: 3rem;
  height: 3rem;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  border-radius: 0.375rem;
  border: 2px solid transparent;
  transition: all 0.3s ease-in-out;
  cursor: pointer;
}

/* Responsividade para character-icon */
@media (min-width: 480px) {
  .character-icon {
    width: 3.5rem;
    height: 3.5rem;
  }
}

@media (min-width: 768px) {
  .character-icon {
    width: 4rem;
    height: 4rem;
  }
}

@media (min-width: 1024px) {
  .character-icon {
    width: 4.5rem;
    height: 4.5rem;
  }
}

.character-icon:hover {
  border-color: var(--accent-brown);
  transform: scale(1.05);
}

.character-icon.active {
  border-color: var(--accent-brown);
  transform: scale(1.1);
  box-shadow: 0 10px 15px -3px rgba(141, 110, 99, 0.3),
    0 4px 6px -2px rgba(141, 110, 99, 0.2);
}

/* Estilo responsivo para o container do seletor */
#selector-viewport>div {
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  padding: 0.75rem !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
}

@media (min-width: 480px) {
  #selector-viewport>div {
    gap: 0.75rem !important;
    padding: 1rem !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
  }
}

@media (min-width: 768px) {
  #selector-viewport>div {
    gap: 1rem !important;
    justify-content: center !important;
  }
}

@media (min-width: 1024px) {
  #selector-viewport>div {
    justify-content: flex-start !important;
  }
}

/* === CAROUSEL === */
#carousel-track.grabbing {
  cursor: grabbing;
}

/* === RANKING STYLES === */
.rank-tab {
  background-color: rgba(28, 14, 10, 0.4);
  border: 2px solid rgba(215, 204, 200, 0.3);
  color: var(--base-color-text);
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: bold;
  text-transform: uppercase;
  transition: all 0.3s ease;
  cursor: pointer;
}

.rank-tab:hover {
  background-color: rgba(62, 39, 35, 0.3);
  border-color: var(--accent-brown);
  color: var(--warm-brown);
}

.rank-tab.active {
  background-color: var(--dark-brown);
  border-color: var(--accent-brown);
  color: var(--base-color-text);
  box-shadow: 0 3px 10px rgba(141, 110, 99, 0.4);
}

#ranking-table-body {
  scrollbar-width: thin;
  scrollbar-color: var(--dark-brown) rgba(28, 14, 10, 0.3);
}

#ranking-table-body::-webkit-scrollbar {
  width: 8px;
}

#ranking-table-body::-webkit-scrollbar-track {
  background: rgba(28, 14, 10, 0.3);
  border-radius: 10px;
}

#ranking-table-body::-webkit-scrollbar-thumb {
  background-color: var(--dark-brown);
  border-radius: 10px;
  border: 2px solid transparent;
  background-clip: content-box;
}

.ranking-row {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  background-color: rgba(46, 26, 20, 0.4);
  border: 1px solid rgba(215, 204, 200, 0.1);
  border-radius: 0.375rem;
  transition: all 0.2s ease;
}

.ranking-row:hover {
  background-color: rgba(46, 26, 20, 0.7);
  border-color: var(--dark-brown);
}

.ranking-row.rank-1 {
  background-image: linear-gradient(to right,
      rgba(255, 171, 64, 0.2),
      rgba(255, 171, 64, 0.05));
  border-color: rgba(255, 171, 64, 0.5);
}

.ranking-row.rank-2 {
  background-image: linear-gradient(to right,
      rgba(161, 136, 127, 0.2),
      rgba(161, 136, 127, 0.05));
  border-color: rgba(161, 136, 127, 0.5);
}

.ranking-row.rank-3 {
  background-image: linear-gradient(to right,
      rgba(141, 110, 99, 0.2),
      rgba(141, 110, 99, 0.05));
  border-color: rgba(141, 110, 99, 0.5);
}

.ranking-cell {
  display: flex;
  align-items: center;
  color: var(--base-color-text);
}

.ranking-cell.pos {
  flex-basis: 10%;
  font-size: 1.1rem;
  font-weight: bold;
}

.ranking-cell.name {
  flex-basis: 35%;
  font-weight: 600;
}

.ranking-cell.class {
  flex-basis: 25%;
  color: rgba(215, 204, 200, 0.7);
}

.ranking-cell.level {
  flex-basis: 15%;
  color: var(--accent-brown);
}

.ranking-cell.guild {
  flex-basis: 15%;
}

.ranking-cell.leader {
  flex-basis: 25%;
  color: rgba(215, 204, 200, 0.7);
}

.ranking-cell.members {
  flex-basis: 30%;
  color: var(--accent-brown);
}

.ranking-cell.points {
  flex-basis: 50%;
  color: var(--accent-brown);
  text-align: right;
  justify-content: flex-end;
}

.ranking-cell.mark {
  flex-basis: 15%;
  justify-content: center;
}

.ranking-cell.name-guild {
  flex-basis: 40%;
  font-weight: 600;
}

.guild-mark {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.rank-1 .ranking-cell.pos {
  color: var(--gold);
}

.rank-2 .ranking-cell.pos {
  color: var(--warm-brown);
}

.rank-3 .ranking-cell.pos {
  color: var(--accent-brown);
}

/* === FAQ STYLES === */
.faq-bg {
  background-image: url("https://www.transparenttextures.com/patterns/dark-stone-wall.png");
  background-color: var(--base-color-background);
  background-size: auto;
  background-position: center;
}

.faq-item {
  background-color: rgba(46, 26, 20, 0.6);
  border-radius: 0.5rem;
  border: 1px solid rgba(215, 204, 200, 0.1);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-toggle {
  width: 100%;
  text-align: left;
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--base-color-text);
  cursor: pointer;
  background-color: transparent;
  border: none;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease;
}

.faq-toggle:hover {
  background-color: rgba(215, 204, 200, 0.05);
}

.faq-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--warm-brown);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.25, 1, 0.5, 1), padding 0.3s ease;
}

.faq-content p {
  color: rgba(215, 204, 200, 0.8);
  line-height: 1.75;
}

.faq-item.is-open {
  border-color: rgba(255, 171, 64, 0.4);
}

.faq-item.is-open .faq-toggle {
  border-bottom-color: rgba(215, 204, 200, 0.1);
  color: var(--gold);
}

.faq-item.is-open .faq-icon {
  transform: rotate(180deg);
  color: var(--gold);
}

.faq-item.is-open .faq-content {
  padding: 0 1.5rem 1.5rem 1.5rem;
  max-height: 500px;
}

/* Logo styling */
.logo-text-shadow {
  font-family: "Cinzel", serif;
  text-shadow: 0 0 10px var(--gold);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .hero-bg {
    min-height: 80vh;
  }
}

@media (min-width: 769px) {
  .hero-bg {
    min-height: 100vh;
  }
}

/* === RESPONSIVIDADE PARA SEÇÃO DE CLASSES === */
@media (max-width: 1023px) {
  .character-showcase-bg {
    background-attachment: scroll;
  }

  #character-video {
    max-height: 70vh;
  }
}

@media (min-width: 1024px) {
  #character-video {
    min-height: 500px;
    max-height: 600px;
  }
}

/* === CHARACTER CLASSES SECTION RESPONSIVIDADE === */
.character-showcase-bg {
  padding: 2rem 0;
}

@media (min-width: 640px) {
  .character-showcase-bg {
    padding: 3rem 0;
  }
}

@media (min-width: 768px) {
  .character-showcase-bg {
    padding: 4rem 0;
  }
}

@media (min-width: 1024px) {
  .character-showcase-bg {
    padding: 5rem 0;
  }
}

/* Responsividade para mobile first no seletor de personagens */
@media (max-width: 479px) {
  #selector-viewport {
    padding: 0.5rem !important;
  }

  #selector-viewport>div {
    gap: 0.25rem !important;
    padding: 0.5rem !important;
  }

  .character-icon {
    width: 2.5rem !important;
    height: 2.5rem !important;
  }
}

/* Melhoria na tipografia responsiva */
@media (max-width: 640px) {
  #character-name {
    line-height: 1.2 !important;
  }

  #character-description {
    line-height: 1.4 !important;
  }
}

/* Espaçamento otimizado para tablets */
@media (min-width: 768px) and (max-width: 1023px) {
  .character-showcase-bg .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* === SMOOTH SCROLL === */
html {
  scroll-behavior: smooth;
}

/* === SISTEMA DE PARTÍCULAS INTELIGENTE === */
.particles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 5;
}

.particle {
  position: absolute;
  width: 30px;
  height: 30px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0;
  filter: drop-shadow(0 0 10px rgba(141, 110, 99, 0.6));
  animation: particleFloat 25s linear infinite;
  will-change: transform, opacity;
}

/* Posicionamento por camadas */
.particle-top {
  top: 0%;
  animation-duration: 20s;
}

.particle-middle {
  top: 35%;
  animation-duration: 30s;
}

.particle-bottom {
  top: 70%;
  animation-duration: 25s;
}

.particle-float {
  animation-duration: 35s;
}

.particle-extra {
  top: 15%;
  animation-duration: 40s;
}

/* Camada micro - partículas extremamente pequenas para densidade máxima */
.particle-micro {
  top: 50%;
  animation-duration: 45s;
  width: 15px !important;
  height: 15px !important;
  opacity: 0.4;
  filter: drop-shadow(0 0 5px rgba(141, 110, 99, 0.4));
}

/* Tamanhos variados para profundidade */
.particle:nth-child(2n) {
  width: 25px;
  height: 25px;
}

.particle:nth-child(3n) {
  width: 35px;
  height: 35px;
}

.particle:nth-child(4n) {
  width: 20px;
  height: 20px;
}

.particle:nth-child(5n) {
  width: 40px;
  height: 40px;
}

.particle:nth-child(6n) {
  width: 28px;
  height: 28px;
}

.particle:nth-child(7n) {
  width: 33px;
  height: 33px;
}

.particle:nth-child(8n) {
  width: 18px;
  height: 18px;
}

/* Tratamento especial para a imagem stars.png (contém múltiplas estrelas) */
.particle[data-image="stars.png"] {
  width: 50px;
  height: 50px;
  background-size: cover;
  opacity: 0.8;
  filter: drop-shadow(0 0 15px rgba(255, 171, 64, 0.6));
}

/* Posicionamento horizontal dinâmico - distribuição completa para 145+ partículas */
.particle:nth-child(1) { left: 1%; }
.particle:nth-child(2) { left: 3%; }
.particle:nth-child(3) { left: 5%; }
.particle:nth-child(4) { left: 7%; }
.particle:nth-child(5) { left: 9%; }
.particle:nth-child(6) { left: 11%; }
.particle:nth-child(7) { left: 13%; }
.particle:nth-child(8) { left: 15%; }
.particle:nth-child(9) { left: 17%; }
.particle:nth-child(10) { left: 19%; }
.particle:nth-child(11) { left: 21%; }
.particle:nth-child(12) { left: 23%; }
.particle:nth-child(13) { left: 25%; }
.particle:nth-child(14) { left: 27%; }
.particle:nth-child(15) { left: 29%; }
.particle:nth-child(16) { left: 31%; }
.particle:nth-child(17) { left: 33%; }
.particle:nth-child(18) { left: 35%; }
.particle:nth-child(19) { left: 37%; }
.particle:nth-child(20) { left: 39%; }
.particle:nth-child(21) { left: 41%; }
.particle:nth-child(22) { left: 43%; }
.particle:nth-child(23) { left: 45%; }
.particle:nth-child(24) { left: 47%; }
.particle:nth-child(25) { left: 49%; }
.particle:nth-child(26) { left: 51%; }
.particle:nth-child(27) { left: 53%; }
.particle:nth-child(28) { left: 55%; }
.particle:nth-child(29) { left: 57%; }
.particle:nth-child(30) { left: 59%; }
.particle:nth-child(31) { left: 61%; }
.particle:nth-child(32) { left: 63%; }
.particle:nth-child(33) { left: 65%; }
.particle:nth-child(34) { left: 67%; }
.particle:nth-child(35) { left: 69%; }
.particle:nth-child(36) { left: 71%; }
.particle:nth-child(37) { left: 73%; }
.particle:nth-child(38) { left: 75%; }
.particle:nth-child(39) { left: 77%; }
.particle:nth-child(40) { left: 79%; }
.particle:nth-child(41) { left: 81%; }
.particle:nth-child(42) { left: 83%; }
.particle:nth-child(43) { left: 85%; }
.particle:nth-child(44) { left: 87%; }
.particle:nth-child(45) { left: 89%; }
.particle:nth-child(46) { left: 91%; }
.particle:nth-child(47) { left: 93%; }
.particle:nth-child(48) { left: 95%; }
.particle:nth-child(49) { left: 97%; }
.particle:nth-child(50) { left: 99%; }

/* Continuação para mais partículas - ciclo repetitivo */
.particle:nth-child(n + 51):nth-child(-n + 70) {
  left: calc(2% + (var(--index, 0) * 3.2%));
}

.particle:nth-child(n + 71):nth-child(-n + 90) {
  left: calc(1.5% + (var(--index, 0) * 4.5%));
}

.particle:nth-child(n + 91):nth-child(-n + 110) {
  left: calc(3% + (var(--index, 0) * 3.8%));
}

.particle:nth-child(n + 111):nth-child(-n + 130) {
  left: calc(2.5% + (var(--index, 0) * 4.2%));
}

.particle:nth-child(n + 131) {
  left: calc(1% + (var(--index, 0) * 5%));
}

/* Animação principal suave e natural */
@keyframes particleFloat {
  0% {
    transform: translateY(100vh) translateX(0px) rotate(0deg) scale(0.8);
    opacity: 0;
  }
  10% {
    opacity: 0.7;
  }
  50% {
    opacity: 1;
    transform: translateY(50vh) translateX(20px) rotate(180deg) scale(1);
  }
  90% {
    opacity: 0.7;
  }
  100% {
    transform: translateY(-20vh) translateX(-15px) rotate(360deg) scale(0.6);
    opacity: 0;
  }
}

/* Variações de movimento para diferentes partículas */
.particle:nth-child(2n) {
  animation-name: particleFloatReverse;
}

.particle:nth-child(3n) {
  animation-name: particleFloatSide;
}

@keyframes particleFloatReverse {
  0% {
    transform: translateY(100vh) translateX(0px) rotate(360deg) scale(0.6);
    opacity: 0;
  }
  10% {
    opacity: 0.8;
  }
  50% {
    opacity: 1;
    transform: translateY(50vh) translateX(-25px) rotate(180deg) scale(1.1);
  }
  90% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(-20vh) translateX(30px) rotate(0deg) scale(0.8);
    opacity: 0;
  }
}

@keyframes particleFloatSide {
  0% {
    transform: translateY(100vh) translateX(-30px) rotate(0deg) scale(0.9);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
    transform: translateY(50vh) translateX(40px) rotate(270deg) scale(1.2);
  }
  90% {
    opacity: 0.8;
  }
  100% {
    transform: translateY(-20vh) translateX(-10px) rotate(540deg) scale(0.7);
    opacity: 0;
  }
}

/* Responsividade */
@media (max-width: 768px) {
  .particle {
    width: 20px;
    height: 20px;
    opacity: 0.6;
  }

  .particle:nth-child(2n) {
    width: 18px;
    height: 18px;
  }

  .particle:nth-child(3n) {
    width: 24px;
    height: 24px;
  }

  .particle:nth-child(4n) {
    width: 16px;
    height: 16px;
  }

  .particle:nth-child(5n) {
    width: 26px;
    height: 26px;
  }

  /* Stars.png mantém tamanho relativamente maior em mobile */
  .particle[data-image="stars.png"] {
    width: 35px;
    height: 35px;
  }

  .particle-top {
    animation-duration: 15s;
  }

  .particle-middle {
    animation-duration: 20s;
  }

  .particle-bottom {
    animation-duration: 18s;
  }

  .particle-float {
    animation-duration: 25s;
  }
}

/* Section Divider */
.section-divider {
  width: 100%;
  height: 120px;
  background-image: url('../images/border_1_2.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  
  /* Position between sections */
  position: relative;
  z-index: 10;
  margin-top: -60px; /* Half of height to overlap top section */
  margin-bottom: -60px; /* Half of height to overlap bottom section */
}

/* Enhanced golden lines with better visibility */
.section-divider::before,
.section-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 2px; /* Slightly thicker for better visibility */
  
  /* Golden gradient matching the ornament */
  background: linear-gradient(90deg, 
    transparent, 
    rgba(212, 175, 55, 0.2) 10%,
    rgba(212, 175, 55, 0.5) 30%,
    rgba(212, 175, 55, 0.5) 70%,
    rgba(212, 175, 55, 0.2) 90%,
    transparent
  );
  
  /* Add glow effect */
  box-shadow: 
    0 0 10px rgba(212, 175, 55, 0.4),
    0 0 20px rgba(212, 175, 55, 0.2);
}

.section-divider::before {
  left: 0;
  width: calc(50% - 350px); /* Adjust based on your image width */
}

.section-divider::after {
  right: 0;
  width: calc(50% - 350px); /* Adjust based on your image width */
}

/* Ensure sections have proper positioning */
section {
  position: relative;
  z-index: 1;
}

/* Optional: Add subtle animation */
@keyframes glow-pulse {
  0%, 100% {
    opacity: 0.7;
  }
  50% {
    opacity: 1;
  }
}

.section-divider::before,
.section-divider::after {
  animation: glow-pulse 3s ease-in-out infinite;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .section-divider {
    height: 80px;
    margin-top: -40px;
    margin-bottom: -40px;
  }
  
  .section-divider::before,
  .section-divider::after {
    display: none; /* Hide lines on mobile for cleaner look */
  }
}

@media (max-width: 1024px) {
  .section-divider::before,
  .section-divider::after {
    width: calc(50% - 250px);
  }
}

/* === FOOTER === */
footer {
  background: var(--bg-footer);
  border-top: 1px solid var(--border-footer);
  
  & a {
    color: var(--link-footer);
  }

  & a:hover {
    color: var(--link-footer-hover);
  }
}


/* === HEADER RESPONSIVIDADE === */
header {
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  background: rgba(46, 26, 20, 0.9);
}

/* Otimizações para telas muito pequenas */
@media (max-width: 374px) {
  header .max-w-7xl {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  header .flex.items-center.justify-between {
    height: 3.25rem;
  }

  header nav a {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    font-size: 0.75rem;
    color: var(--base-color-text);
  }

  header .hidden.md\:flex button {
    padding: 0.375rem 0.5rem;
    font-size: 0.75rem;
  }
}

/* Melhoria para tablets */
@media (min-width: 768px) and (max-width: 1023px) {
  header nav {
    display: flex !important;
  }

  header nav a {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    font-size: 0.875rem;
    color: var(--base-color-text);
  }

  header .hidden.md\:flex {
    gap: 0.5rem;
  }
}

/* Desktop otimizado */
@media (min-width: 1024px) {
  header .flex.items-center.justify-between {
    height: 4rem;
  }

  header nav a:hover {
    background-color: rgba(141, 110, 99, 0.1);
    color: var(--warm-brown);
  }
}

/* Menu mobile melhorado */
@media (max-width: 1023px) {
  .mobile-menu-overlay {
    background: rgba(28, 14, 10, 0.6);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
  }
}

/* Animações suaves para o menu mobile */
header .lg\:hidden {
  transition: all 0.3s ease;
}

/* === WIDGET POSITIONING SYSTEM === */
.widget-left,
.widget-right {
  box-shadow: 0 4px 12px rgba(28, 14, 10, 0.4);
  transition: all 0.3s ease;
  animation: fadeInUp 0.5s ease-out forwards;
  opacity: 0;
  transform: translateY(20px);
}

.widget-left:hover,
.widget-right:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(141, 110, 99, 0.3);
}

/* Widget specific styles */
.widget-left .widget-container,
.widget-right .event-countdown-widget {
  box-shadow: 0 4px 12px rgba(28, 14, 10, 0.4);
  border: 1px solid rgba(141, 110, 99, 0.3);
  border-radius: 0.5rem;
  backdrop-filter: blur(8px);
  background: rgba(46, 26, 20, 0.8);
}

/* Responsive behavior */
@media (max-width: 768px) {
  .widget-left,
  .widget-right {
    bottom: 1rem;
    max-width: calc(50vw - 1.5rem);
  }
  
  .widget-left {
    left: 1rem;
  }
  
  .widget-right {
    right: 1rem;
  }
}

@media (max-width: 480px) {
  .widget-left,
  .widget-right {
    bottom: 0.5rem;
    max-width: calc(50vw - 1rem);
    font-size: 0.875rem;
  }
  
  .widget-left {
    left: 0.5rem;
  }
  
  .widget-right {
    right: 0.5rem;
  }
}

/* Stack widgets vertically on very small screens */
@media (max-width: 360px) {
  .widget-left {
    bottom: 8rem;
    left: 0.5rem;
    right: 0.5rem;
    max-width: calc(100vw - 1rem);
  }
  
  .widget-right {
    bottom: 0.5rem;
    left: 0.5rem;
    right: 0.5rem;
    max-width: calc(100vw - 1rem);
  }
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}