/* JLJL88 Link Design System CSS */
/* Mobile-first responsive design for gaming platform */
/* Color scheme: #0E1621 (primary) | #DEB887 (secondary) */

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%; /* 1rem = 10px for easier calculations */
  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: #DEB887;
  background-color: #0E1621;
  overflow-x: hidden;
}

/* CSS Variables */
:root {
  --w172e-primary: #0E1621;
  --w172e-secondary: #DEB887;
  --w172e-accent: #2A3F54;
  --w172e-text: #DEB887;
  --w172e-bg: #0E1621;
  --w172e-card-bg: #1A2332;
  --w172e-border: rgba(222, 184, 135, 0.2);
  --w172e-shadow: 0 0.4rem 1.2rem rgba(0, 0, 0, 0.3);
  --w172e-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Layout containers */
.w172e-wrapper {
  min-height: 100vh;
  padding-bottom: 6.4rem; /* Space for fixed bottom nav */
}

.w172e-container {
  max-width: 43rem;
  margin: 0 auto;
  padding: 0 1.6rem;
  width: 100%;
}

.w172e-main {
  padding-top: 7rem; /* Space for fixed header */
}

/* Grid system */
.w172e-grid {
  display: grid;
  gap: 1.6rem;
}

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

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

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

/* Header styles */
.w172e-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--w172e-primary);
  border-bottom: 1px solid var(--w172e-border);
  z-index: 1000;
  backdrop-filter: blur(10px);
  box-shadow: var(--w172e-shadow);
}

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

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

.w172e-logo-icon {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 0.4rem;
}

.w172e-header-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

/* Hamburger menu */
.w172e-hamburger {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.8rem;
  width: 4rem;
  height: 4rem;
  align-items: center;
  justify-content: center;
}

.w172e-hamburger span {
  width: 2rem;
  height: 0.2rem;
  background: var(--w172e-secondary);
  border-radius: 0.1rem;
  transition: var(--w172e-transition);
}

.w172e-hamburger-active span:nth-child(1) {
  transform: rotate(45deg) translate(0.5rem, 0.5rem);
}

.w172e-hamburger-active span:nth-child(2) {
  opacity: 0;
}

.w172e-hamburger-active span:nth-child(3) {
  transform: rotate(-45deg) translate(0.5rem, -0.5rem);
}

/* Mobile navigation */
.w172e-mobile-nav {
  position: fixed;
  top: 6.4rem;
  left: 0;
  right: 0;
  background: var(--w172e-card-bg);
  transform: translateY(-100%);
  transition: var(--w172e-transition);
  z-index: 999;
  box-shadow: var(--w172e-shadow);
  max-height: calc(100vh - 6.4rem);
  overflow-y: auto;
}

.w172e-nav-active {
  transform: translateY(0);
}

.w172e-nav-menu {
  list-style: none;
  padding: 1.6rem 0;
}

.w172e-nav-item {
  border-bottom: 1px solid var(--w172e-border);
}

.w172e-nav-link {
  display: block;
  padding: 1.6rem 2rem;
  color: var(--w172e-text);
  text-decoration: none;
  transition: var(--w172e-transition);
  font-size: 1.6rem;
}

.w172e-nav-link:hover {
  background: rgba(222, 184, 135, 0.1);
  color: var(--w172e-secondary);
}

/* Overlay */
.w172e-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: var(--w172e-transition);
  z-index: 998;
}

.w172e-overlay-active {
  opacity: 1;
  visibility: visible;
}

/* Button styles */
.w172e-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 1.2rem 2.4rem;
  border: none;
  border-radius: 0.8rem;
  font-size: 1.4rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--w172e-transition);
  min-height: 4.4rem;
  line-height: 1.2;
}

.w172e-btn-primary {
  background: var(--w172e-secondary);
  color: var(--w172e-primary);
}

.w172e-btn-primary:hover {
  background: rgba(222, 184, 135, 0.9);
  transform: translateY(-0.2rem);
}

.w172e-btn-secondary {
  background: transparent;
  color: var(--w172e-secondary);
  border: 2px solid var(--w172e-secondary);
}

.w172e-btn-secondary:hover {
  background: var(--w172e-secondary);
  color: var(--w172e-primary);
}

.w172e-btn-promo {
  background: linear-gradient(135deg, var(--w172e-secondary), #B8860B);
  color: var(--w172e-primary);
  font-weight: 700;
  box-shadow: var(--w172e-shadow);
}

.w172e-btn-promo:hover {
  transform: translateY(-0.2rem);
  box-shadow: 0 0.6rem 2rem rgba(222, 184, 135, 0.4);
}

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

/* Card styles */
.w172e-card {
  background: var(--w172e-card-bg);
  border-radius: 1.6rem;
  padding: 2.4rem;
  border: 1px solid var(--w172e-border);
  box-shadow: var(--w172e-shadow);
  margin-bottom: 2.4rem;
}

.w172e-card-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--w172e-secondary);
  margin-bottom: 1.6rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.w172e-card-title i {
  color: var(--w172e-secondary);
  font-size: 2rem;
}

/* Game grid */
.w172e-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  margin: 2rem 0;
}

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

.w172e-game-item:hover {
  transform: translateY(-0.4rem);
  box-shadow: var(--w172e-shadow);
  border-color: var(--w172e-secondary);
}

.w172e-game-img {
  width: 4.8rem;
  height: 4.8rem;
  border-radius: 0.8rem;
  margin-bottom: 0.8rem;
  object-fit: cover;
}

.w172e-game-name {
  font-size: 1.2rem;
  color: var(--w172e-text);
  font-weight: 600;
  line-height: 1.2;
}

/* Carousel styles */
.w172e-carousel {
  position: relative;
  margin: 2rem 0;
  border-radius: 1.6rem;
  overflow: hidden;
}

.w172e-carousel-img {
  width: 100%;
  height: 20rem;
  object-fit: cover;
  cursor: pointer;
  transition: var(--w172e-transition);
}

.w172e-carousel-img:hover {
  transform: scale(1.05);
}

/* Section styles */
.w172e-section {
  margin-bottom: 3.2rem;
}

.w172e-section-title {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--w172e-secondary);
  margin-bottom: 2rem;
  text-align: center;
}

/* Feature styles */
.w172e-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1.6rem;
  padding: 2rem;
  background: rgba(222, 184, 135, 0.05);
  border-radius: 1.2rem;
  border: 1px solid var(--w172e-border);
  margin-bottom: 1.6rem;
}

.w172e-feature-icon {
  width: 4.8rem;
  height: 4.8rem;
  background: var(--w172e-secondary);
  color: var(--w172e-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
}

.w172e-feature-content h4 {
  color: var(--w172e-secondary);
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

/* Bottom navigation */
.w172e-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--w172e-primary);
  border-top: 1px solid var(--w172e-border);
  z-index: 1000;
  height: 6.4rem;
}

.w172e-bottom-nav-content {
  display: flex;
  max-width: 43rem;
  margin: 0 auto;
  height: 100%;
}

.w172e-nav-icon {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-decoration: none;
  color: rgba(222, 184, 135, 0.6);
  transition: var(--w172e-transition);
  padding: 0.8rem;
}

.w172e-nav-icon i {
  font-size: 2rem;
}

.w172e-nav-icon span {
  font-size: 1rem;
  font-weight: 600;
}

.w172e-nav-icon:hover,
.w172e-nav-active {
  color: var(--w172e-secondary);
  transform: translateY(-0.2rem);
}

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

.w172e-footer-content {
  text-align: center;
}

.w172e-footer-text {
  font-size: 1.4rem;
  line-height: 1.6;
  margin-bottom: 2.4rem;
  color: var(--w172e-text);
}

.w172e-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2.4rem;
}

.w172e-footer-link {
  color: var(--w172e-secondary);
  text-decoration: none;
  font-size: 1.4rem;
  transition: var(--w172e-transition);
}

.w172e-footer-link:hover {
  color: rgba(222, 184, 135, 0.8);
}

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

.w172e-partner-logo {
  width: 4rem;
  height: 4rem;
  object-fit: contain;
  opacity: 0.6;
  transition: var(--w172e-transition);
}

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

.w172e-copyright {
  font-size: 1.2rem;
  color: rgba(222, 184, 135, 0.6);
}

/* Utility classes */
.w172e-text-center {
  text-align: center;
}

.w172e-text-left {
  text-align: left;
}

.w172e-text-right {
  text-align: right;
}

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

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

/* Animation classes */
.w172e-animate-in {
  animation: w172eSlideUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes w172eSlideUp {
  from {
    opacity: 0;
    transform: translateY(3rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Loading states */
.w172e-loading {
  display: none;
  text-align: center;
  padding: 2rem;
}

.w172e-spinner {
  width: 3.2rem;
  height: 3.2rem;
  border: 0.3rem solid rgba(222, 184, 135, 0.3);
  border-top: 0.3rem solid var(--w172e-secondary);
  border-radius: 50%;
  animation: w172eSpin 1s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes w172eSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive adjustments */
@media (max-width: 375px) {
  .w172e-game-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
  }
  
  .w172e-game-item {
    padding: 0.8rem;
    min-height: 8rem;
  }
  
  .w172e-game-img {
    width: 3.6rem;
    height: 3.6rem;
  }
  
  .w172e-game-name {
    font-size: 1rem;
  }
}

@media (min-width: 768px) {
  .w172e-container {
    max-width: 76.8rem;
  }
  
  .w172e-hamburger {
    display: none;
  }
  
  .w172e-mobile-nav {
    position: static;
    transform: none;
    background: transparent;
    box-shadow: none;
    max-height: none;
  }
  
  .w172e-nav-menu {
    display: flex;
    padding: 0;
  }
  
  .w172e-nav-item {
    border-bottom: none;
  }
  
  .w172e-nav-link {
    padding: 1rem 2rem;
  }
  
  .w172e-bottom-nav {
    display: none;
  }
  
  .w172e-wrapper {
    padding-bottom: 0;
  }
}