/* =============================================
   Naru2day — juegos-naruto landing page
   ============================================= */

body {
  background-image: url('../img/Fondo_vertical.webp');
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
}

/* Page subtitle */
.wn-landing-subtitle {
  text-align: center;
  padding: 2rem 1rem 0.5rem;
}

.wn-landing-subtitle h1 {
  font-family: 'Reggae One', system-ui, sans-serif;
  font-size: 1.7rem;
  color: #FF6B00;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  margin: 0;
}

/* Cards grid — same as index.php */
.game-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 30px;
  justify-items: center;
  max-width: 1300px;
  margin: 0 auto;
}

/* ── Main card (scroll) ── */
.wn-main-card {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  position: relative;
  display: block;
  width: 440px;
  max-width: 100%;
  margin: 0 auto;
  cursor: pointer;
  transition: transform .3s ease, filter .3s ease;
  text-decoration: none;
  color: inherit;
  outline: none;
}

.wn-main-card::before,
.wn-main-card::after {
  display: none;
}

.wn-main-card:hover {
  transform: translateY(-8px) scale(1.03) rotate(-1deg);
  filter: drop-shadow(0 15px 35px rgba(255, 107, 0, 0.45));
  background: transparent;
  border: none;
  box-shadow: none;
  color: inherit;
  text-decoration: none;
}

.wn-main-card:active {
  transform: translateY(-2px) scale(0.99);
  filter: drop-shadow(0 5px 15px rgba(255, 107, 0, 0.3));
}

.wn-main-card-scroll {
  width: 100%;
  display: block;
  pointer-events: none;
  user-select: none;
}

.wn-main-card-content {
  position: absolute;
  top: 16%;
  bottom: 28%;
  left: 13%;
  right: 13%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  gap: 0;
}

.wn-main-card-title {
  font-family: 'Reggae One', system-ui, sans-serif;
  font-size: 1.4rem;
  font-weight: 400;
  color: #1a0c00;
  line-height: 1.1;
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
}

.wn-main-card-title span {
  text-align: center;
  width: max-content;
  max-width: 215px;
  line-height: 1.25;
}

.wn-main-card-game-icon {
  width: 60px;
  height: 60px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25));
}

.wn-main-card-sub {
  font-family: 'Klee One', cursive;
  font-size: 0.8rem;
  font-weight: 600;
  color: #3d2210;
  line-height: 1.35;
  text-align: center;
  padding: 0 1rem;
}

.wn-main-card-label {
  position: absolute;
  top: 73%;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  color: #fff;
  font-family: 'Reggae One', system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8), 0 0 10px rgba(255, 210, 140, 0.5);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.wn-main-card:hover .wn-main-card-label {
  color: #FFB347;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8), 0 0 15px rgba(255, 107, 0, 0.8);
  transform: translateX(-50%) scale(1.1);
}

/* Coming-soon variant */
.wn-main-card--disabled {
  filter: grayscale(0.8) opacity(0.85);
  cursor: default;
  pointer-events: none;
}

.wn-main-card--disabled .wn-main-card-title {
  font-size: 1.5rem;
}

.wn-main-card--disabled .wn-main-card-label {
  color: #ccc;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.8);
  text-transform: uppercase;
}

/* ── SEO content section ── */
.seo-content {
  max-width: 900px;
  margin: 50px auto 0;
  text-align: left;
  padding: 30px 35px;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 15px;
  color: #fff;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 107, 0, 0.2);
}

.seo-content h2 {
  font-family: 'Reggae One', system-ui, sans-serif;
  font-size: 1.35rem;
  color: #FF6B00;
  margin-top: 28px;
  border-bottom: 2px solid rgba(255, 107, 0, 0.35);
  padding-bottom: 8px;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.seo-content h2:first-child {
  margin-top: 0;
}

.seo-content p {
  line-height: 1.75;
  margin-bottom: 12px;
  font-family: 'Klee One', cursive;
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.88);
}

.seo-content strong {
  color: #FF8C33;
}

.seo-back-container {
  text-align: center;
  margin-top: 30px;
}

.back-link {
  display: inline-block;
  text-align: center;
  color: #FF6B00;
  text-decoration: none;
  font-family: 'Reggae One', system-ui, sans-serif;
  font-size: 1.1rem;
  padding: 8px 22px;
  border: 2px solid rgba(255, 107, 0, 0.4);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.back-link:hover {
  background: rgba(255, 107, 0, 0.15);
  border-color: #FF6B00;
  transform: translateY(-2px);
  color: #FFB347;
}

/* Fade-in animation for the cards */
@keyframes wnFadeInUp {
  from { opacity: 0; transform: translateY(25px); }
  to   { opacity: 1; transform: translateY(0); }
}

.wn-fade-in {
  opacity: 0;
  animation: wnFadeInUp 0.55s ease-out forwards;
}

.wn-fade-in:nth-child(1) { animation-delay: 0.05s; }
.wn-fade-in:nth-child(2) { animation-delay: 0.15s; }
.wn-fade-in:nth-child(3) { animation-delay: 0.25s; }
.wn-fade-in:nth-child(4) { animation-delay: 0.35s; }
.wn-fade-in:nth-child(5) { animation-delay: 0.45s; }
.wn-fade-in:nth-child(6) { animation-delay: 0.55s; }

@media (max-width: 576px) {
  .seo-content {
    padding: 20px 18px;
  }
  .wn-landing-subtitle h1 {
    font-size: 1.35rem;
  }
  .wn-main-card-title {
    font-size: 1.25rem;
    gap: 10px;
  }
  .wn-main-card-game-icon {
    width: 60px;
    height: 60px;
  }
  .wn-main-card-title span {
    max-width: 160px;
  }
}
