/* ==========================================================
   TEMA PYXEL-NEXUS: HERO COM ESTEIRA INFINITA LATERAL
   ========================================================== */
:root {
  --bg-dark: #05050e;
  --bg-card: rgba(12, 11, 26, 0.85);
  --cyan: #00f2fe;
  --pink: #ff007f;
  --border-cyan: rgba(0, 242, 254, 0.25);
}

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

body.pyxel-nexus-body {
  background: radial-gradient(circle at 20% 30%, #100f2a 0%, var(--bg-dark) 65%);
  color: #fff;
  font-family: 'Rajdhani', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ==========================================================
   CABEÇALHO
   ========================================================== */
.pyxel-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(5, 5, 14, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0, 242, 254, 0.15);
  padding: 1.2rem 4%;
}

.pyxel-nav-wrap {
  max-width: 1500px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.pyxel-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-box {
  width: 40px;
  height: 40px;
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid var(--cyan);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  font-size: 1.2rem;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.35);
}

.logo-text {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 2px;
  color: #fff;
}

.logo-text span {
  color: var(--cyan);
}

/* MENU DE CATEGORIAS */
.pyxel-nav-menu {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-cat-btn {
  background: transparent;
  border: 1px solid transparent;
  color: #94a3b8;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.nav-cat-btn:hover {
  color: var(--cyan);
  border-color: rgba(0, 242, 254, 0.3);
}

.nav-cat-btn.active {
  color: #05050e;
  background: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.6);
}

/* BOTÃO DE DOWNLOAD DIREITO */
.btn-pack-head {
  background: linear-gradient(90deg, #ff007f, #7928ca);
  color: #fff;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
  padding: 0.65rem 1.2rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 0 18px rgba(255, 0, 127, 0.45);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-pack-head:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(255, 0, 127, 0.8);
}

/* ==========================================================
   SEÇÃO HERO // LAYOUT 2 COLUNAS
   ========================================================== */
.pyxel-hero-section {
  max-width: 1500px;
  margin: 0 auto;
  padding: 3rem 4% 0;
  height: calc(100vh - 80px);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
  overflow: hidden;
}

/* LADO ESQUERDO */
.pyxel-hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 10;
}

.cyber-sub-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.8rem;
  color: var(--cyan);
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid var(--border-cyan);
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
  letter-spacing: 1.5px;
  width: fit-content;
  margin-bottom: 1.5rem;
}

.pyxel-main-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 3.6rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 1px;
  color: #fff;
  margin-bottom: 1.4rem;
}

.pyxel-main-title span {
  color: var(--cyan);
  text-shadow: 0 0 25px rgba(0, 242, 254, 0.6);
}

.pyxel-lead-text {
  font-size: 1.15rem;
  line-height: 1.6;
  color: #94a3b8;
  max-width: 580px;
  margin-bottom: 2.2rem;
}

.pyxel-stats-strip {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  width: fit-content;
}

.stat-cell strong {
  display: block;
  font-family: 'Orbitron', sans-serif;
  font-size: 1.3rem;
  color: var(--cyan);
}

.stat-cell span {
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 700;
  letter-spacing: 1px;
}

.stat-sep {
  color: rgba(255, 255, 255, 0.15);
  font-size: 1.4rem;
}

/* ==========================================================
   LADO DIREITO: ESTEIRA VERTICAL QUE SOBE SUAVEMENTE (DESKTOP)
   ========================================================== */
.pyxel-marquee-wrapper {
  position: relative;
  height: 100%;
  max-height: calc(100vh - 120px);
  overflow: hidden;
  padding: 1rem 0;
  /* Máscara de gradiente para desvanecer suavemente nas bordas superior e inferior */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 12%, black 88%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 12%, black 88%, transparent 100%);
}

.marquee-track {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  animation: scrollVerticalSmooth 32s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused; /* Pausa ao passar o mouse para facilitar o download */
}

@keyframes scrollVerticalSmooth {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-50%);
  }
}

/* CARD DA ESTEIRA */
.marquee-card {
  background: var(--bg-card);
  border: 1px solid var(--border-cyan);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}

.marquee-card:hover {
  transform: scale(1.03);
  border-color: var(--cyan);
  box-shadow: 0 15px 40px rgba(0, 242, 254, 0.35);
}

.marquee-thumb {
  position: relative;
  height: 200px;
  background: #000;
  overflow: hidden;
}

.marquee-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.marquee-card:hover .marquee-thumb img {
  transform: scale(1.08);
}

.marquee-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(5, 5, 14, 0.75);
  border: 1px solid var(--cyan);
  color: var(--cyan);
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.72rem;
  font-weight: bold;
  padding: 3px 8px;
  border-radius: 6px;
  backdrop-filter: blur(4px);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.marquee-badge i {
  color: #ffd700;
}

.marquee-info {
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.marquee-info h4 {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.marquee-download-btn {
  background: linear-gradient(90deg, #00f2fe, #38ef7d);
  color: #05050e;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
  text-decoration: none;
  padding: 0.55rem 0.95rem;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.marquee-download-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.7);
}

/* ==========================================================
   TABLET (769px até 1024px): PASSA LENTAMENTE PARA O LADO
   ========================================================== */
@media (min-width: 769px) and (max-width: 1024px) {
  .pyxel-hero-section {
    grid-template-columns: 1fr;
    height: auto;
    padding: 2.5rem 4% 4rem;
    gap: 2.5rem;
    text-align: center;
  }

  .pyxel-hero-content {
    align-items: center;
  }

  .pyxel-main-title {
    font-size: 2.8rem;
  }

  .pyxel-marquee-wrapper {
    height: 290px;
    max-height: 290px;
    width: 100%;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  }

  .marquee-track {
    flex-direction: row;
    width: max-content;
    animation: scrollHorizontalSmooth 35s linear infinite;
  }

  @keyframes scrollHorizontalSmooth {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(-50%);
    }
  }

  .marquee-card {
    width: 310px;
    flex-shrink: 0;
  }

  .marquee-thumb {
    height: 170px;
  }
}

/* ==========================================================
   MODO TELEFONE (Abaixo de 768px): NÃO EXISTE A ESTEIRA
   ========================================================== */
@media (max-width: 768px) {
  /* A esteira de imagens NÃO EXISTE no celular conforme solicitado */
  .pyxel-marquee-wrapper {
    display: none !important;
  }

  .pyxel-header {
    padding: 0.8rem 4%;
  }

  .pyxel-nav-wrap {
    flex-direction: column;
    gap: 0.8rem;
    align-items: center;
  }

  .pyxel-nav-menu {
    overflow-x: auto;
    width: 100%;
    padding-bottom: 0.4rem;
    scrollbar-width: none;
    justify-content: center;
  }

  .pyxel-nav-menu::-webkit-scrollbar {
    display: none;
  }

  .nav-cat-btn {
    font-size: 0.68rem;
    padding: 0.4rem 0.75rem;
    white-space: nowrap;
  }

  .btn-pack-head {
    width: 100%;
    justify-content: center;
    font-size: 0.75rem;
  }

  .pyxel-hero-section {
    grid-template-columns: 1fr;
    height: auto;
    padding: 3rem 5% 4rem;
    text-align: center;
  }

  .pyxel-hero-content {
    align-items: center;
  }

  .cyber-sub-badge {
    margin: 0 auto 1.2rem auto;
  }

  .pyxel-main-title {
    font-size: 2.1rem;
    line-height: 1.2;
  }

  .pyxel-lead-text {
    font-size: 0.95rem;
    margin: 0 auto 1.8rem auto;
  }

  .pyxel-stats-strip {
    margin: 0 auto;
    width: 100%;
    justify-content: space-around;
  }

  .stat-cell strong {
    font-size: 1.1rem;
  }
}

/* ==========================================================
   SEÇÃO DE WALLPAPERS: 4 CARDS DE EXIBIÇÃO (ESTILO PYXEL)
   ========================================================== */
.pyxel-wallpapers-section {
  max-width: 1500px;
  margin: 4rem auto 6rem;
  padding: 0 4%;
  position: relative;
  z-index: 10;
}

.wallpapers-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2.5rem;
  gap: 1.5rem;
}

.wallpapers-header-title h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.2rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: 1px;
  margin-top: 0.4rem;
}

.wallpapers-header-title h2 span {
  color: var(--cyan);
  text-shadow: 0 0 20px rgba(0, 242, 254, 0.5);
}

.btn-see-all-wallpapers {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--cyan);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 1px;
  transition: transform 0.2s ease, text-shadow 0.2s ease;
}

.btn-see-all-wallpapers:hover {
  transform: translateX(5px);
  text-shadow: 0 0 12px var(--cyan);
}

/* GRADE EXATA DE 4 COLUNAS */
.pyxel-showcase-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.8rem;
}

/* CARD VERTICAL */
.showcase-card {
  position: relative;
  background: #090814;
  border: 1px solid rgba(0, 242, 254, 0.25);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 480px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.35s ease, box-shadow 0.35s ease;
}

.showcase-card:hover {
  transform: translateY(-8px);
  border-color: var(--cyan);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.85), 0 0 30px rgba(0, 242, 254, 0.25);
}

.showcase-thumb-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.showcase-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.showcase-card:hover .showcase-img {
  transform: scale(1.08);
}

.showcase-overlay-fx {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(5, 5, 14, 0.1) 0%,
    rgba(5, 5, 14, 0.45) 50%,
    rgba(5, 5, 14, 0.95) 90%
  );
  z-index: 2;
  pointer-events: none;
}

.showcase-badge-top {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  background: rgba(5, 5, 14, 0.8);
  border: 1px solid var(--cyan);
  color: var(--cyan);
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  backdrop-filter: blur(8px);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.showcase-badge-top i {
  color: #ffd700;
}

/* DADOS INFERIORES DO CARD */
.showcase-card-data {
  position: relative;
  z-index: 3;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.showcase-card-data h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
  margin: 0;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

.showcase-subtag {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.72rem;
  color: #94a3b8;
  margin-bottom: 0.6rem;
}

.showcase-stats-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  padding-bottom: 0.8rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.12);
}

.showcase-rating {
  color: #ffd700;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

.showcase-downloads {
  color: var(--cyan);
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.75rem;
}

.btn-showcase-download {
  background: linear-gradient(90deg, #00f2fe, #38ef7d);
  color: #05050e;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 0.8rem;
  border-radius: 8px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-showcase-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(0, 242, 254, 0.7);
}

/* RESPONSIVIDADE (TABLET & CELULAR) */
@media (max-width: 1200px) {
  .pyxel-showcase-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 650px) {
  .pyxel-showcase-grid {
    grid-template-columns: 1fr;
  }
  .wallpapers-header-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .wallpapers-header-title h2 {
    font-size: 1.6rem;
  }
}