/* 21jl login - Universal CSS Styles */
/* Mobile-first responsive design with wf9a6- prefix */

/* CSS Custom Properties (Variables) */
:root {
  --wf9a6-primary: #0D1117;
  --wf9a6-secondary: #F8F8FF;
  --wf9a6-accent: #FFCCCB;
  --wf9a6-muted: #D3D3D3;
  --wf9a6-highlight: #E6E6FA;
  --wf9a6-text: #F8F8FF;
  --wf9a6-bg: #0D1117;
  --wf9a6-bg-light: #161b22;
  --wf9a6-bg-card: #21262d;
  --wf9a6-border: #30363d;
  --wf9a6-shadow: rgba(0, 0, 0, 0.3);
  --wf9a6-overlay: rgba(13, 17, 23, 0.9);
  --wf9a6-gradient: linear-gradient(135deg, #0D1117 0%, #21262d 100%);
  --wf9a6-accent-gradient: linear-gradient(135deg, #FFCCCB 0%, #E6E6FA 100%);
  --wf9a6-transition: all 0.3s ease;
  --wf9a6-border-radius: 0.8rem;
  --wf9a6-shadow-sm: 0 2px 4px var(--wf9a6-shadow);
  --wf9a6-shadow-md: 0 4px 8px var(--wf9a6-shadow);
  --wf9a6-shadow-lg: 0 8px 16px var(--wf9a6-shadow);
  --vh: 1vh;
}

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

html {
  font-size: 62.5%; /* 1rem = 10px */
  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(--wf9a6-text);
  background: var(--wf9a6-bg);
  min-height: 100vh;
  min-height: calc(var(--vh) * 100);
  overflow-x: hidden;
}

/* Container and Layout */
.wf9a6-container {
  max-width: 43rem;
  margin: 0 auto;
  padding: 0 1.6rem;
  width: 100%;
}

.wf9a6-wrapper {
  padding: 1.6rem 0;
}

.wf9a6-section {
  margin-bottom: 3.2rem;
}

.wf9a6-grid {
  display: grid;
  gap: 1.6rem;
}

.wf9a6-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.wf9a6-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.wf9a6-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.wf9a6-grid-5 {
  grid-template-columns: repeat(5, 1fr);
}

.wf9a6-flex {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.wf9a6-flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.wf9a6-flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wf9a6-flex-col {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

/* Typography */
.wf9a6-h1 {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--wf9a6-text);
  margin-bottom: 1.6rem;
  line-height: 1.2;
}

.wf9a6-h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--wf9a6-text);
  margin-bottom: 1.2rem;
  line-height: 1.3;
}

.wf9a6-h3 {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--wf9a6-text);
  margin-bottom: 1rem;
  line-height: 1.4;
}

.wf9a6-text {
  font-size: 1.4rem;
  line-height: 1.6;
  color: var(--wf9a6-muted);
  margin-bottom: 1.2rem;
}

.wf9a6-text-small {
  font-size: 1.2rem;
  color: var(--wf9a6-muted);
}

.wf9a6-text-accent {
  color: var(--wf9a6-accent);
  font-weight: 600;
}

.wf9a6-text-highlight {
  color: var(--wf9a6-highlight);
  font-weight: 500;
}

.wf9a6-text-center {
  text-align: center;
}

/* Header and Navigation */
.wf9a6-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--wf9a6-overlay);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--wf9a6-border);
  padding: 1.2rem 0;
}

.wf9a6-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 43rem;
  margin: 0 auto;
  padding: 0 1.6rem;
}

.wf9a6-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--wf9a6-text);
  font-weight: 700;
  font-size: 1.6rem;
}

.wf9a6-logo-icon {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 0.6rem;
  background: var(--wf9a6-accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.wf9a6-nav-buttons {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.wf9a6-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.4rem;
  height: 4.4rem;
  background: none;
  border: none;
  color: var(--wf9a6-text);
  font-size: 2rem;
  cursor: pointer;
  transition: var(--wf9a6-transition);
  border-radius: 0.6rem;
}

.wf9a6-menu-toggle:hover {
  background: var(--wf9a6-bg-light);
}

.wf9a6-menu-toggle.wf9a6-menu-active {
  background: var(--wf9a6-accent);
  color: var(--wf9a6-bg);
}

.wf9a6-mobile-menu {
  position: fixed;
  top: 7.2rem;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--wf9a6-overlay);
  backdrop-filter: blur(10px);
  z-index: 999;
  transform: translateY(-100%);
  transition: var(--wf9a6-transition);
  opacity: 0;
  visibility: hidden;
  overflow-y: auto;
}

.wf9a6-mobile-menu.wf9a6-menu-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.wf9a6-mobile-menu-content {
  max-width: 43rem;
  margin: 0 auto;
  padding: 2.4rem 1.6rem;
}

.wf9a6-mobile-menu-item {
  display: block;
  padding: 1.6rem 0;
  color: var(--wf9a6-text);
  text-decoration: none;
  font-size: 1.6rem;
  font-weight: 500;
  border-bottom: 1px solid var(--wf9a6-border);
  transition: var(--wf9a6-transition);
}

.wf9a6-mobile-menu-item:hover {
  color: var(--wf9a6-accent);
  padding-left: 1.2rem;
}

.wf9a6-menu-scroll-lock {
  overflow: hidden;
}

/* Buttons */
.wf9a6-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 1.2rem 2.4rem;
  font-size: 1.4rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: var(--wf9a6-border-radius);
  cursor: pointer;
  transition: var(--wf9a6-transition);
  min-height: 4.4rem;
  min-width: 4.4rem;
  text-align: center;
  white-space: nowrap;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.wf9a6-btn-primary {
  background: var(--wf9a6-accent-gradient);
  color: var(--wf9a6-bg);
  box-shadow: var(--wf9a6-shadow-md);
}

.wf9a6-btn-primary:hover {
  transform: translateY(-0.2rem);
  box-shadow: var(--wf9a6-shadow-lg);
}

.wf9a6-btn-secondary {
  background: var(--wf9a6-bg-card);
  color: var(--wf9a6-text);
  border: 1px solid var(--wf9a6-border);
}

.wf9a6-btn-secondary:hover {
  background: var(--wf9a6-bg-light);
}

.wf9a6-btn-small {
  padding: 0.8rem 1.6rem;
  font-size: 1.2rem;
  min-height: 3.6rem;
}

.wf9a6-btn-large {
  padding: 1.6rem 3.2rem;
  font-size: 1.6rem;
  min-height: 5.2rem;
}

.wf9a6-btn-icon {
  width: 4.4rem;
  height: 4.4rem;
  padding: 0;
  border-radius: 50%;
}

.wf9a6-btn-block {
  width: 100%;
  display: flex;
}

/* Cards */
.wf9a6-card {
  background: var(--wf9a6-bg-card);
  border: 1px solid var(--wf9a6-border);
  border-radius: var(--wf9a6-border-radius);
  padding: 2rem;
  box-shadow: var(--wf9a6-shadow-sm);
  transition: var(--wf9a6-transition);
}

.wf9a6-card:hover {
  box-shadow: var(--wf9a6-shadow-md);
  transform: translateY(-0.2rem);
}

.wf9a6-card-header {
  margin-bottom: 1.6rem;
}

.wf9a6-card-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--wf9a6-text);
  margin-bottom: 0.8rem;
}

.wf9a6-card-content {
  color: var(--wf9a6-muted);
}

.wf9a6-card-footer {
  margin-top: 1.6rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--wf9a6-border);
}

/* Carousel */
.wf9a6-carousel-container {
  position: relative;
  overflow: hidden;
  border-radius: var(--wf9a6-border-radius);
  margin-bottom: 2.4rem;
}

.wf9a6-carousel {
  display: flex;
  transition: transform 0.5s ease;
}

.wf9a6-carousel-slide {
  flex: 0 0 100%;
  position: relative;
}

.wf9a6-carousel-slide img {
  width: 100%;
  height: 20rem;
  object-fit: cover;
  border-radius: var(--wf9a6-border-radius);
}

.wf9a6-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 1.6rem;
}

.wf9a6-carousel-dot {
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: var(--wf9a6-muted);
  border: none;
  cursor: pointer;
  transition: var(--wf9a6-transition);
}

.wf9a6-carousel-dot.wf9a6-carousel-dot-active {
  background: var(--wf9a6-accent);
}

/* Game Grid */
.wf9a6-game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr));
  gap: 1.2rem;
  margin-bottom: 2.4rem;
}

.wf9a6-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  padding: 1.2rem;
  background: var(--wf9a6-bg-card);
  border: 1px solid var(--wf9a6-border);
  border-radius: var(--wf9a6-border-radius);
  text-decoration: none;
  color: var(--wf9a6-text);
  transition: var(--wf9a6-transition);
  cursor: pointer;
  min-height: 10rem;
}

.wf9a6-game-item:hover {
  background: var(--wf9a6-bg-light);
  transform: translateY(-0.2rem);
  box-shadow: var(--wf9a6-shadow-md);
}

.wf9a6-game-icon {
  width: 4.8rem;
  height: 4.8rem;
  border-radius: 0.8rem;
  object-fit: cover;
  box-shadow: var(--wf9a6-shadow-sm);
}

.wf9a6-game-name {
  font-size: 1.1rem;
  font-weight: 500;
  text-align: center;
  line-height: 1.3;
  color: var(--wf9a6-muted);
}

.wf9a6-game-category {
  margin-bottom: 2rem;
}

.wf9a6-game-category-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--wf9a6-text);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.wf9a6-game-category-icon {
  width: 2.4rem;
  height: 2.4rem;
  background: var(--wf9a6-accent-gradient);
  border-radius: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--wf9a6-bg);
}

/* Promo Links */
.wf9a6-promo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--wf9a6-accent);
  text-decoration: none;
  font-weight: 600;
  transition: var(--wf9a6-transition);
  cursor: pointer;
}

.wf9a6-promo-link:hover {
  color: var(--wf9a6-highlight);
  transform: translateX(0.4rem);
}

.wf9a6-promo-text {
  color: var(--wf9a6-accent);
  font-weight: 600;
  cursor: pointer;
  transition: var(--wf9a6-transition);
}

.wf9a6-promo-text:hover {
  color: var(--wf9a6-highlight);
}

/* Bottom Navigation */
.wf9a6-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--wf9a6-overlay);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--wf9a6-border);
  padding: 0.8rem 0;
  height: 6.4rem;
}

.wf9a6-bottom-nav-content {
  max-width: 43rem;
  margin: 0 auto;
  padding: 0 1.6rem;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.wf9a6-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  color: var(--wf9a6-muted);
  font-size: 1rem;
  font-weight: 500;
  transition: var(--wf9a6-transition);
  cursor: pointer;
  min-width: 4.4rem;
  min-height: 4.4rem;
  justify-content: center;
  border-radius: 0.6rem;
  position: relative;
  overflow: hidden;
}

.wf9a6-bottom-nav-item:hover {
  color: var(--wf9a6-accent);
  background: var(--wf9a6-bg-light);
}

.wf9a6-bottom-nav-item.wf9a6-nav-active {
  color: var(--wf9a6-accent);
}

.wf9a6-bottom-nav-icon {
  font-size: 2rem;
  line-height: 1;
}

.wf9a6-bottom-nav-text {
  font-size: 1rem;
  line-height: 1;
}

/* Ripple Effect */
.wf9a6-ripple {
  position: absolute;
  border-radius: 50%;
  background: var(--wf9a6-accent);
  opacity: 0.6;
  animation: wf9a6-ripple-animation 0.6s ease-out;
  pointer-events: none;
}

@keyframes wf9a6-ripple-animation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Footer */
.wf9a6-footer {
  background: var(--wf9a6-bg-card);
  border-top: 1px solid var(--wf9a6-border);
  padding: 3.2rem 0 8rem;
  margin-top: 4.8rem;
}

.wf9a6-footer-content {
  max-width: 43rem;
  margin: 0 auto;
  padding: 0 1.6rem;
}

.wf9a6-footer-section {
  margin-bottom: 2.4rem;
}

.wf9a6-footer-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--wf9a6-text);
  margin-bottom: 1.2rem;
}

.wf9a6-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  margin-bottom: 2.4rem;
}

.wf9a6-footer-link {
  color: var(--wf9a6-muted);
  text-decoration: none;
  font-size: 1.3rem;
  transition: var(--wf9a6-transition);
}

.wf9a6-footer-link:hover {
  color: var(--wf9a6-accent);
}

.wf9a6-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  justify-content: center;
  margin-bottom: 2.4rem;
}

.wf9a6-partner-logo {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 0.4rem;
  object-fit: cover;
  opacity: 0.7;
  transition: var(--wf9a6-transition);
}

.wf9a6-partner-logo:hover {
  opacity: 1;
}

.wf9a6-copyright {
  text-align: center;
  font-size: 1.2rem;
  color: var(--wf9a6-muted);
  padding-top: 2.4rem;
  border-top: 1px solid var(--wf9a6-border);
}

/* Main Content */
.wf9a6-main {
  padding-top: 8rem;
  padding-bottom: 2.4rem;
  min-height: calc(100vh - 6.4rem);
  min-height: calc(var(--vh) * 100 - 6.4rem);
}

/* Utilities */
.wf9a6-hidden {
  display: none;
}

.wf9a6-visible {
  display: block;
}

.wf9a6-text-truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wf9a6-loading {
  opacity: 0.6;
  pointer-events: none;
}

.wf9a6-mt-0 { margin-top: 0; }
.wf9a6-mt-1 { margin-top: 0.8rem; }
.wf9a6-mt-2 { margin-top: 1.6rem; }
.wf9a6-mt-3 { margin-top: 2.4rem; }
.wf9a6-mt-4 { margin-top: 3.2rem; }

.wf9a6-mb-0 { margin-bottom: 0; }
.wf9a6-mb-1 { margin-bottom: 0.8rem; }
.wf9a6-mb-2 { margin-bottom: 1.6rem; }
.wf9a6-mb-3 { margin-bottom: 2.4rem; }
.wf9a6-mb-4 { margin-bottom: 3.2rem; }

.wf9a6-p-0 { padding: 0; }
.wf9a6-p-1 { padding: 0.8rem; }
.wf9a6-p-2 { padding: 1.6rem; }
.wf9a6-p-3 { padding: 2.4rem; }
.wf9a6-p-4 { padding: 3.2rem; }

/* Responsive Design */
@media (max-width: 36rem) {
  .wf9a6-game-grid {
    grid-template-columns: repeat(auto-fill, minmax(7rem, 1fr));
    gap: 1rem;
  }
  
  .wf9a6-game-item {
    padding: 1rem;
    min-height: 9rem;
  }
  
  .wf9a6-game-icon {
    width: 4rem;
    height: 4rem;
  }
  
  .wf9a6-game-name {
    font-size: 1rem;
  }
  
  .wf9a6-h1 {
    font-size: 2rem;
  }
  
  .wf9a6-h2 {
    font-size: 1.8rem;
  }
  
  .wf9a6-bottom-nav-icon {
    font-size: 1.8rem;
  }
  
  .wf9a6-bottom-nav-text {
    font-size: 0.9rem;
  }
}

@media (max-width: 32rem) {
  .wf9a6-container {
    padding: 0 1.2rem;
  }
  
  .wf9a6-nav {
    padding: 0 1.2rem;
  }
  
  .wf9a6-grid-4 {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .wf9a6-grid-5 {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .wf9a6-game-grid {
    grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr));
  }
} 