/* ==========================================================================
   MJL Home — Final polish (no layout redesign)
   ========================================================================== */

/* --- Hero title glow (PLAY / COMPETE / CONNECT only) --- */
.home-hero-title .word-play,
.home-hero-title .word-compete,
.home-hero-title .word-connect {
  text-shadow: 0 0 18px rgba(0, 255, 136, 0.35);
}

/* --- Hero layout: side panel for Watch Tour --- */
.home-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  gap: clamp(20px, 4vw, 48px);
  align-items: center;
}

.hero-side-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  padding-top: 12px;
}

.hero-tour-btn {
  border-radius: 16px;
  min-height: 48px;
  padding: 0 28px;
  border: 1px solid rgba(0, 255, 136, 0.55);
  background: transparent;
  color: #ffffff;
  box-shadow: 0 0 18px rgba(0, 255, 136, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.hero-tour-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 255, 136, 0.85);
  box-shadow: 0 0 24px rgba(0, 255, 136, 0.28);
}

/* --- Hero animated background --- */
.hero-fx {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.hero-fx__particles,
.hero-fx__hexagons {
  position: absolute;
  inset: 0;
}

.hero-fx__particles::before,
.hero-fx__particles::after {
  content: "";
  position: absolute;
  inset: -20%;
  background-image:
    radial-gradient(circle, rgba(0, 255, 136, 0.16) 0 1px, transparent 2px),
    radial-gradient(circle, rgba(255, 255, 255, 0.08) 0 1px, transparent 2px);
  background-size: 120px 120px, 180px 180px;
  animation: mjlParticleDrift 48s linear infinite;
  opacity: 0.35;
}

.hero-fx__particles::after {
  animation-duration: 72s;
  animation-direction: reverse;
  opacity: 0.22;
  transform: scale(1.08);
}

.hero-fx__hexagons {
  background:
    radial-gradient(circle at 18% 28%, rgba(0, 255, 136, 0.08), transparent 24%),
    radial-gradient(circle at 82% 62%, rgba(0, 255, 136, 0.06), transparent 28%);
}

.hero-fx__hexagons::before {
  content: "";
  position: absolute;
  width: 140%;
  height: 140%;
  left: -20%;
  top: -20%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='104' viewBox='0 0 120 104'%3E%3Cpath d='M30 2 L90 2 L120 52 L90 102 L30 102 L0 52 Z' fill='none' stroke='rgba(0,255,136,0.08)' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 120px 104px;
  animation: mjlHexFloat 60s linear infinite;
  opacity: 0.45;
}

.hero.home-shot-hero .v2-hero-content,
.hero.home-shot-hero .feature-strip {
  position: relative;
  z-index: 2;
}

@keyframes mjlParticleDrift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-80px, -40px, 0); }
}

@keyframes mjlHexFloat {
  from { transform: translate3d(0, 0, 0) rotate(0deg); }
  to { transform: translate3d(40px, 24px, 0) rotate(2deg); }
}

/* --- Top Games card hover + optional badge --- */
.home-games-showcase .mjl-image-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 30px 78px rgba(0, 0, 0, 0.44),
    0 0 25px rgba(0, 255, 136, 0.35);
}

.mjl-image-card__game-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0, 255, 136, 0.28);
  background: rgba(2, 8, 5, 0.72);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  backdrop-filter: blur(8px);
  box-shadow: 0 0 16px rgba(0, 255, 136, 0.12);
}

/* --- About button padding tweak --- */
.home-about-btn {
  padding: 11px 22px;
}

.mjl-image-card__title-icon {
  margin-right: 6px;
}

/* --- Tournament meta icons --- */
.mjl-image-card__meta-label {
  display: block;
  margin-bottom: 4px;
  font-size: 0.72rem;
  opacity: 0.78;
}

.mjl-image-card__register-btn::after {
  content: " →";
}

.mjl-image-card__register-btn.no-arrow::after {
  content: "";
}

/* --- Food rating strip --- */
.home-food-rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-top: 18px;
}

.home-food-rating__stars {
  color: #facc15;
  letter-spacing: 0.08em;
  text-shadow: 0 0 12px rgba(250, 204, 21, 0.25);
}

.home-food-rating__value,
.home-food-rating__reviews {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.92rem;
}

/* --- VIP section polish --- */
#vip-cta .split-cta {
  position: relative;
  border-radius: 22px;
  border: 1px solid rgba(0, 255, 136, 0.22);
  background: linear-gradient(135deg, rgba(8, 16, 13, 0.92), rgba(4, 10, 7, 0.96));
  box-shadow: 0 0 40px rgba(0, 255, 136, 0.08);
  padding: clamp(24px, 4vw, 36px);
}

#vip-cta .split-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 70% 20%, rgba(0, 255, 136, 0.12), transparent 42%);
  pointer-events: none;
}

.vip-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.vip-stat-card {
  border: 1px solid rgba(0, 255, 136, 0.16);
  border-radius: 16px;
  padding: 12px 10px;
  background: rgba(2, 8, 5, 0.55);
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.88);
}

.vip-stat-card strong {
  display: block;
  margin-top: 4px;
  color: #ffffff;
  font-size: 0.92rem;
}

.vip-rating-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.9rem;
}

.vip-rating-strip__stars {
  color: #facc15;
}

/* --- Footer polish --- */
.site-footer .footer-rating {
  margin: 8px 0 12px;
  color: rgba(255, 255, 255, 0.88);
}

.site-footer .footer-rating__stars {
  color: #facc15;
  display: block;
  margin-bottom: 4px;
}

.site-footer .footer-contact p {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.82);
}

.site-footer .footer-newsletter {
  display: grid;
  gap: 10px;
}

.site-footer .footer-newsletter form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.site-footer .footer-newsletter input {
  flex: 1 1 180px;
  min-height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(0, 255, 136, 0.22);
  background: rgba(2, 8, 5, 0.72);
  color: #fff;
  padding: 0 14px;
}

.site-footer .footer-map {
  margin-top: 28px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(0, 255, 136, 0.16);
  min-height: 280px;
}

.site-footer .footer-map iframe {
  display: block;
  width: 100%;
  min-height: 280px;
  border: 0;
}

.site-footer .footer-social a {
  display: inline-block;
  margin-right: 10px;
}

/* --- Typography presets (testing only — applied via body class) --- */
body.typography-preset-1 {
  --font-hero: "Oxanium", sans-serif;
  --font-heading: "Orbitron", sans-serif;
  --font-body: "Inter", sans-serif;
}

body.typography-preset-2 {
  --font-hero: "Bebas Neue", sans-serif;
  --font-heading: "Rajdhani", sans-serif;
  --font-body: "Inter", sans-serif;
}

body.typography-preset-3 {
  --font-hero: "Montserrat", sans-serif;
  --font-heading: "Poppins", sans-serif;
  --font-body: "Inter", sans-serif;
}

body[class*="typography-preset-"] {
  font-family: var(--font-body, inherit);
}

body[class*="typography-preset-"] .home-hero-title {
  font-family: var(--font-hero, inherit);
}

body[class*="typography-preset-"] .home-top-games h2,
body[class*="typography-preset-"] .home-about-title,
body[class*="typography-preset-"] .home-tournaments-section h2,
body[class*="typography-preset-"] .mjl-image-card__title {
  font-family: var(--font-heading, inherit);
}

@media (max-width: 980px) {
  .home-hero-layout {
    grid-template-columns: 1fr;
  }

  .hero-tour-btn--inline {
    display: none !important;
  }

  .hero-side-panel {
    justify-content: flex-start;
    min-height: auto;
    padding-top: 0;
  }

  .vip-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .vip-stats-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-fx__particles::before,
  .hero-fx__particles::after,
  .hero-fx__hexagons::before {
    animation: none;
  }
}
