/* ===================================================================
   Yxway - Homepage Styles
   Bright, modern gaming theme with blue-purple palette
   =================================================================== */

/* ---------- Hero: Centered with Background ---------- */
.yx-hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px 60px;
  overflow: hidden;
  background: linear-gradient(160deg, #EEF1F8 0%, #E0E7FF 40%, #EDE9FE 70%, #FCE7F3 100%);
}

.yx-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.yx-hero-bg::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  top: -200px;
  left: -100px;
  background: radial-gradient(circle, rgba(79, 107, 255, 0.12), transparent 70%);
  animation: yx-hero-drift 12s ease-in-out infinite;
}

.yx-hero-bg::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  bottom: -150px;
  right: -100px;
  background: radial-gradient(circle, rgba(255, 107, 157, 0.1), transparent 70%);
  animation: yx-hero-drift 10s ease-in-out infinite reverse;
}

@keyframes yx-hero-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -20px) scale(1.05); }
}

.yx-hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
}

.yx-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 18px;
  border-radius: 999px;
  background: rgba(79, 107, 255, 0.1);
  border: 1px solid rgba(79, 107, 255, 0.2);
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.03em;
  margin-bottom: 22px;
}

.yx-hero-title {
  font-size: clamp(32px, 5.5vw, 56px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 18px;
}

.yx-hero-title span {
  background: var(--grad1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.yx-hero-sub {
  font-size: clamp(14px, 1.5vw, 17px);
  color: var(--fg2);
  line-height: 1.7;
  margin-bottom: 30px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.yx-hero-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.yx-hero-tags a {
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border);
  color: var(--fg2);
  font-weight: 600;
  font-size: 12px;
  transition: all 0.2s;
}

.yx-hero-tags a:hover {
  color: var(--primary);
  border-color: rgba(79, 107, 255, 0.3);
  background: rgba(255, 255, 255, 0.9);
}

/* ---------- Genre Wheel ---------- */
.yx-genre-wheel {
  margin-top: 48px;
}

.yx-genre-wheel-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin-top: 22px;
}

.yx-genre-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 28px 14px 22px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r3);
  text-align: center;
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  overflow: hidden;
}

.yx-genre-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.28s;
  background: var(--grad1);
  z-index: 0;
}

.yx-genre-card:nth-child(2)::before { background: var(--grad2); }
.yx-genre-card:nth-child(3)::before { background: var(--grad3); }
.yx-genre-card:nth-child(4)::before { background: var(--grad4); }
.yx-genre-card:nth-child(5)::before { background: var(--grad5); }
.yx-genre-card:nth-child(6)::before { background: linear-gradient(135deg, #3B82F6, #8B5CF6); }

.yx-genre-card:hover::before {
  opacity: 0.08;
}

.yx-genre-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--sh3);
  border-color: var(--primary);
}

.yx-genre-icon {
  font-size: 32px;
  line-height: 1;
  position: relative;
  z-index: 1;
}

.yx-genre-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--fg);
  position: relative;
  z-index: 1;
  line-height: 1.3;
}

.yx-genre-count {
  font-size: 11px;
  color: var(--fg3);
  font-weight: 600;
  position: relative;
  z-index: 1;
}

@media (max-width: 900px) {
  .yx-genre-wheel-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 500px) {
  .yx-genre-wheel-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

/* ---------- Featured Game ---------- */
.yx-featured-game {
  margin: 56px 0 0;
  background: linear-gradient(135deg, #EEF1F8 0%, #E0E7FF 50%, #EDE9FE 100%);
  border: 1px solid var(--border);
  border-radius: var(--r4);
  overflow: hidden;
  position: relative;
}

.yx-featured-game::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  top: -150px;
  right: -100px;
  background: radial-gradient(circle, rgba(79, 107, 255, 0.08), transparent 70%);
  pointer-events: none;
}

.yx-featured-game-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 36px;
  padding: 40px 36px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.yx-featured-game-poster {
  aspect-ratio: 16 / 10;
  border-radius: var(--r3);
  overflow: hidden;
  background: var(--bg2);
  border: 1px solid var(--border);
  box-shadow: var(--sh3);
}

.yx-featured-game-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.yx-featured-game-name {
  font-size: clamp(24px, 3.2vw, 36px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--fg);
  margin: 12px 0 14px;
}

.yx-featured-game-desc {
  font-size: 15px;
  color: var(--fg2);
  line-height: 1.7;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.yx-featured-game-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.yx-featured-game-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 780px) {
  .yx-featured-game-inner {
    grid-template-columns: 1fr;
    padding: 28px 24px;
  }
}

/* ---------- Game Tips ---------- */
.yx-game-tips {
  margin-top: 56px;
}

.yx-game-tips-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 22px;
}

.yx-game-tip-card {
  padding: 28px 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r3);
  transition: all 0.28s;
  position: relative;
  overflow: hidden;
}

.yx-game-tip-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh2);
  border-color: rgba(79, 107, 255, 0.2);
}

.yx-game-tip-num {
  font-size: 42px;
  font-weight: 900;
  background: var(--grad1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 10px;
  opacity: 0.3;
}

.yx-game-tip-card:nth-child(2) .yx-game-tip-num {
  background: var(--grad2);
  -webkit-background-clip: text;
  background-clip: text;
}

.yx-game-tip-card:nth-child(3) .yx-game-tip-num {
  background: var(--grad3);
  -webkit-background-clip: text;
  background-clip: text;
}

.yx-game-tip-card:nth-child(4) .yx-game-tip-num {
  background: var(--grad4);
  -webkit-background-clip: text;
  background-clip: text;
}

.yx-game-tip-card h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--fg);
  margin-bottom: 8px;
}

.yx-game-tip-card p {
  font-size: 13.5px;
  color: var(--fg2);
  line-height: 1.65;
}

@media (max-width: 700px) {
  .yx-game-tips-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- CTA ---------- */
.yx-cta {
  margin: 72px 0 0;
  padding: 64px 32px;
  border-radius: var(--r4);
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #4F6BFF 0%, #8B5CF6 50%, #FF6B9D 100%);
}

.yx-cta-bg {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.yx-cta-inner {
  position: relative;
  z-index: 1;
}

.yx-cta h2 {
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 900;
  color: #fff;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.yx-cta p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 16px;
  max-width: 440px;
  margin: 0 auto 28px;
}

.yx-cta-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.yx-cta .yx-btn-primary {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.yx-cta .yx-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.yx-cta .yx-btn-ghost {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.yx-cta .yx-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.3);
  color: #fff;
}

/* ---------- Mobile Responsive ---------- */
@media (max-width: 900px) {
  .yx-hero {
    min-height: auto;
    padding: 56px 20px 40px;
  }

  .yx-hero-title {
    font-size: clamp(28px, 6vw, 42px);
  }
}

@media (max-width: 600px) {
  .yx-hero {
    padding: 36px 16px 28px;
  }

  .yx-cta {
    padding: 40px 20px;
    margin-top: 48px;
    border-radius: var(--r3);
  }

  .yx-featured-game-inner {
    padding: 20px 16px;
  }

  .yx-section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .yx-section-more {
    align-self: flex-start;
    margin-top: -4px;
  }
}

/* ---------- Empty state ---------- */
.yx-empty {
  text-align: center;
  padding: 56px 20px;
  color: var(--fg3);
}

.yx-empty-icon {
  font-size: 44px;
  margin-bottom: 14px;
  opacity: 0.5;
}

.yx-empty-text {
  font-size: 15px;
}
