/**
 * jilipg - CSS Styles
 * All classes use prefix: wfe56-
 * Color palette: #8470FF (purple), #999999 (gray), #141414 (black), #D8BFD8 (thistle)
 */

/* CSS Variables */
:root {
  --wfe56-primary: #8470FF;
  --wfe56-secondary: #999999;
  --wfe56-bg: #141414;
  --wfe56-accent: #D8BFD8;
  --wfe56-text: #FFFFFF;
  --wfe56-text-muted: #CCCCCC;
  --wfe56-border: #333333;
  --wfe56-success: #00C851;
  --wfe56-warning: #FFBB33;
  --wfe56-error: #FF4444;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 1.6rem;
  line-height: 1.5;
  color: var(--wfe56-text);
  background-color: var(--wfe56-bg);
  min-height: 100vh;
  overflow-x: hidden;
}

body.wfe56-loaded {
  animation: wfe56-fadeIn 0.3s ease-in;
}

@keyframes wfe56-fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Container */
.wfe56-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.wfe56-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--wfe56-bg) 0%, #1a1a2e 100%);
  border-bottom: 2px solid var(--wfe56-primary);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(132, 112, 255, 0.3);
}

.wfe56-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1rem;
  max-width: 430px;
  margin: 0 auto;
}

.wfe56-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--wfe56-text);
  font-size: 1.8rem;
  font-weight: bold;
}

.wfe56-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.wfe56-header-buttons {
  display: flex;
  gap: 0.8rem;
}

.wfe56-btn {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 6px;
  font-size: 1.4rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.wfe56-btn-primary {
  background: linear-gradient(135deg, var(--wfe56-primary), #9b8fff);
  color: white;
  box-shadow: 0 4px 15px rgba(132, 112, 255, 0.4);
}

.wfe56-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(132, 112, 255, 0.6);
}

.wfe56-btn-secondary {
  background: transparent;
  color: var(--wfe56-primary);
  border: 2px solid var(--wfe56-primary);
}

.wfe56-btn-secondary:hover {
  background: var(--wfe56-primary);
  color: white;
}

.wfe56-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--wfe56-text);
  font-size: 2.4rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* Mobile Menu */
.wfe56-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 70%;
  max-width: 300px;
  height: 100vh;
  background: linear-gradient(180deg, #1a1a2e 0%, var(--wfe56-bg) 100%);
  z-index: 9999;
  transition: right 0.3s ease;
  padding: 6rem 2rem 2rem;
  overflow-y: auto;
  border-left: 2px solid var(--wfe56-primary);
}

.wfe56-mobile-menu.wfe56-menu-open {
  right: 0;
}

.wfe56-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.wfe56-menu-overlay.wfe56-overlay-active {
  opacity: 1;
  visibility: visible;
}

.wfe56-menu-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--wfe56-text);
  font-size: 2.8rem;
  cursor: pointer;
  padding: 0.5rem;
}

.wfe56-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.wfe56-menu-nav a {
  padding: 1rem;
  color: var(--wfe56-text);
  text-decoration: none;
  font-size: 1.6rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.wfe56-menu-nav a:hover {
  background: rgba(132, 112, 255, 0.1);
  border-left-color: var(--wfe56-primary);
  padding-left: 1.5rem;
}

/* Main Content */
main {
  margin-top: 70px;
  padding-bottom: 80px;
}

@media (min-width: 769px) {
  main {
    padding-bottom: 2rem;
  }
}

/* Carousel */
.wfe56-carousel {
  position: relative;
  width: 100%;
  margin: 1.5rem 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(132, 112, 255, 0.3);
}

.wfe56-carousel-slide {
  width: 100%;
  height: auto;
  display: none;
}

.wfe56-carousel-slide:first-child {
  display: block;
}

.wfe56-carousel-slide img {
  width: 100%;
  height: auto;
  display: block;
}

.wfe56-carousel-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.wfe56-carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.wfe56-carousel-dot.wfe56-active,
.wfe56-carousel-dot:hover {
  background: var(--wfe56-primary);
  transform: scale(1.3);
}

/* Section */
.wfe56-section {
  margin: 2rem 0;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px solid rgba(132, 112, 255, 0.2);
}

.wfe56-section-title {
  font-size: 2rem;
  font-weight: bold;
  color: var(--wfe56-primary);
  margin-bottom: 1.5rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Game Grid */
.wfe56-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin: 1rem 0;
}

.wfe56-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  color: var(--wfe56-text);
}

.wfe56-game-item:hover {
  background: rgba(132, 112, 255, 0.15);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(132, 112, 255, 0.3);
}

.wfe56-game-icon {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.3rem;
}

.wfe56-game-name {
  font-size: 1.1rem;
  text-align: center;
  line-height: 1.3;
  color: var(--wfe56-text);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Content */
.wfe56-content {
  color: var(--wfe56-text-muted);
  line-height: 1.8;
  margin: 1rem 0;
}

.wfe56-content p {
  margin-bottom: 1rem;
}

.wfe56-content a {
  color: var(--wfe56-primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.wfe56-content a:hover {
  color: var(--wfe56-accent);
  text-decoration: underline;
}

.wfe56-promo-link {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background: linear-gradient(135deg, var(--wfe56-primary), #9b8fff);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  margin: 1rem 0.5rem 1rem 0;
  box-shadow: 0 4px 15px rgba(132, 112, 255, 0.4);
  transition: all 0.3s ease;
}

.wfe56-promo-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(132, 112, 255, 0.6);
}

/* Footer */
.wfe56-footer {
  background: linear-gradient(180deg, #1a1a2e 0%, var(--wfe56-bg) 100%);
  padding: 2rem 1rem;
  margin-top: 3rem;
  border-top: 2px solid var(--wfe56-primary);
}

.wfe56-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.wfe56-footer-link {
  color: var(--wfe56-text-muted);
  text-decoration: none;
  font-size: 1.3rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.wfe56-footer-link:hover {
  color: var(--wfe56-primary);
  border-color: var(--wfe56-primary);
  background: rgba(132, 112, 255, 0.1);
}

.wfe56-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin: 2rem 0;
}

.wfe56-partner-logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.wfe56-partner-logo:hover {
  opacity: 1;
}

.wfe56-copyright {
  text-align: center;
  color: var(--wfe56-secondary);
  font-size: 1.2rem;
  margin-top: 1.5rem;
}

/* Bottom Navigation (Mobile) */
.wfe56-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, #1a1a2e 0%, var(--wfe56-bg) 100%);
  border-top: 2px solid var(--wfe56-primary);
  display: flex;
  justify-content: space-around;
  padding: 0.5rem 0;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(132, 112, 255, 0.3);
}

@media (min-width: 769px) {
  .wfe56-bottom-nav {
    display: none;
  }
}

.wfe56-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  text-decoration: none;
  color: var(--wfe56-text-muted);
  min-width: 60px;
  min-height: 60px;
  justify-content: center;
  transition: all 0.3s ease;
  border-radius: 8px;
  padding: 0.3rem;
}

.wfe56-nav-item:hover,
.wfe56-nav-item.wfe56-active {
  color: var(--wfe56-primary);
  background: rgba(132, 112, 255, 0.1);
  transform: scale(1.05);
}

.wfe56-nav-icon {
  font-size: 2.2rem;
}

.wfe56-nav-text {
  font-size: 1rem;
  font-weight: 500;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .wfe56-menu-toggle {
    display: block;
  }

  .wfe56-header-buttons {
    display: none;
  }

  .wfe56-game-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
  }

  .wfe56-section {
    padding: 1rem;
  }

  .wfe56-section-title {
    font-size: 1.6rem;
  }
}

/* Utilities */
.wfe56-text-center {
  text-align: center;
}

.wfe56-mt-1 { margin-top: 1rem; }
.wfe56-mt-2 { margin-top: 2rem; }
.wfe56-mb-1 { margin-bottom: 1rem; }
.wfe56-mb-2 { margin-bottom: 2rem; }

.wfe56-hidden {
  display: none;
}
