/**
 * 76jl.click - Design System
 * Mobile-first responsive design with unique visual identity
 */

/* Root variables for color palette */
:root {
  --w5f34-primary: #D2B48C;
  --w5f34-primary-dark: #B8956E;
  --w5f34-secondary: #E0FFFF;
  --w5f34-bg: #0E1621;
  --w5f34-bg-dark: #0A0E14;
  --w5f34-bg-light: #1A2530;
  --w5f34-text: #E0FFFF;
  --w5f34-text-muted: #A0B0C0;
  --w5f34-border: #2A3A4A;
  --w5f34-accent: #FFD700;
  --w5f34-success: #4CAF50;
  --w5f34-danger: #F44336;

  /* Spacing */
  --w5f34-spacing-xs: 0.5rem;
  --w5f34-spacing-sm: 0.75rem;
  --w5f34-spacing-md: 1rem;
  --w5f34-spacing-lg: 1.5rem;
  --w5f34-spacing-xl: 2rem;

  /* Typography */
  --w5f34-font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --w5f34-font-size-xs: 0.75rem;
  --w5f34-font-size-sm: 0.875rem;
  --w5f34-font-size-base: 1rem;
  --w5f34-font-size-lg: 1.125rem;
  --w5f34-font-size-xl: 1.25rem;
  --w5f34-font-size-2xl: 1.5rem;
  --w5f34-font-size-3xl: 1.875rem;

  /* Border radius */
  --w5f34-radius-sm: 0.25rem;
  --w5f34-radius-md: 0.5rem;
  --w5f34-radius-lg: 0.75rem;
  --w5f34-radius-xl: 1rem;
  --w5f34-radius-full: 9999px;

  /* Shadows */
  --w5f34-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --w5f34-shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
  --w5f34-shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.5);
  --w5f34-shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.6);

  /* Z-index */
  --w5f34-z-header: 1000;
  --w5f34-z-bottom-nav: 1000;
  --w5f34-z-mobile-menu: 9999;
  --w5f34-z-modal: 10000;
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--w5f34-font-family);
  font-size: var(--w5f34-font-size-base);
  line-height: 1.6;
  color: var(--w5f34-text);
  background-color: var(--w5f34-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Container */
.w5f34-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 var(--w5f34-spacing-md);
}

.w5f34-wrapper {
  padding-top: 60px;
  padding-bottom: 80px;
}

@media (min-width: 769px) {
  .w5f34-wrapper {
    padding-bottom: var(--w5f34-spacing-lg);
  }
}

/* Header */
.w5f34-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(180deg, var(--w5f34-bg-dark) 0%, var(--w5f34-bg) 100%);
  border-bottom: 1px solid var(--w5f34-border);
  z-index: var(--w5f34-z-header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--w5f34-spacing-md);
  box-shadow: var(--w5f34-shadow-md);
}

.w5f34-header-logo {
  display: flex;
  align-items: center;
  gap: var(--w5f34-spacing-sm);
  text-decoration: none;
  color: var(--w5f34-text);
}

.w5f34-header-logo img {
  width: 32px;
  height: 32px;
  border-radius: var(--w5f34-radius-md);
}

.w5f34-header-logo span {
  font-size: var(--w5f34-font-size-xl);
  font-weight: 700;
  color: var(--w5f34-primary);
}

.w5f34-header-actions {
  display: flex;
  gap: var(--w5f34-spacing-sm);
  align-items: center;
}

.w5f34-btn {
  padding: 0.5rem 1rem;
  font-size: var(--w5f34-font-size-sm);
  font-weight: 600;
  text-align: center;
  border: none;
  border-radius: var(--w5f34-radius-lg);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
}

.w5f34-btn-primary {
  background: linear-gradient(135deg, var(--w5f34-primary) 0%, var(--w5f34-primary-dark) 100%);
  color: var(--w5f34-bg);
}

.w5f34-btn-primary:hover,
.w5f34-btn-primary:active {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(210, 180, 140, 0.4);
}

.w5f34-btn-secondary {
  background: transparent;
  color: var(--w5f34-primary);
  border: 2px solid var(--w5f34-primary);
}

.w5f34-btn-secondary:hover,
.w5f34-btn-secondary:active {
  background: var(--w5f34-primary);
  color: var(--w5f34-bg);
}

.w5f34-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  color: var(--w5f34-text);
  cursor: pointer;
  border-radius: var(--w5f34-radius-md);
  transition: background 0.2s ease;
}

.w5f34-menu-toggle:hover {
  background: var(--w5f34-bg-light);
}

.w5f34-menu-toggle svg {
  width: 24px;
  height: 24px;
}

@media (min-width: 769px) {
  .w5f34-menu-toggle {
    display: none;
  }
}

/* Mobile menu */
.w5f34-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: var(--w5f34-bg-dark);
  z-index: var(--w5f34-z-mobile-menu);
  transition: right 0.3s ease;
  box-shadow: var(--w5f34-shadow-xl);
  overflow-y: auto;
  padding: var(--w5f34-spacing-lg);
}

.w5f34-mobile-menu.w5f34-menu-open {
  right: 0;
}

.w5f34-mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--w5f34-spacing-xl);
  padding-bottom: var(--w5f34-spacing-md);
  border-bottom: 1px solid var(--w5f34-border);
}

.w5f34-mobile-menu-header h3 {
  font-size: var(--w5f34-font-size-xl);
  color: var(--w5f34-primary);
}

.w5f34-mobile-menu-close {
  background: transparent;
  border: none;
  color: var(--w5f34-text);
  cursor: pointer;
  padding: var(--w5f34-spacing-sm);
  border-radius: var(--w5f34-radius-md);
}

.w5f34-mobile-menu-close:hover {
  background: var(--w5f34-bg-light);
}

.w5f34-mobile-menu-close svg {
  width: 24px;
  height: 24px;
}

.w5f34-mobile-menu-nav {
  display: flex;
  flex-direction: column;
  gap: var(--w5f34-spacing-xs);
}

.w5f34-mobile-menu-nav a {
  padding: var(--w5f34-spacing-md);
  color: var(--w5f34-text);
  text-decoration: none;
  border-radius: var(--w5f34-radius-md);
  transition: background 0.2s ease;
  font-size: var(--w5f34-font-size-base);
}

.w5f34-mobile-menu-nav a:hover {
  background: var(--w5f34-bg-light);
  color: var(--w5f34-primary);
}

/* Carousel */
.w5f34-carousel {
  position: relative;
  width: 100%;
  height: 200px;
  margin-bottom: var(--w5f34-spacing-xl);
  border-radius: var(--w5f34-radius-xl);
  overflow: hidden;
  box-shadow: var(--w5f34-shadow-lg);
}

.w5f34-carousel-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.w5f34-carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.w5f34-carousel-slide.w5f34-active {
  opacity: 1;
}

.w5f34-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.w5f34-carousel-slide a {
  display: block;
  width: 100%;
  height: 100%;
}

.w5f34-carousel-indicators {
  position: absolute;
  bottom: var(--w5f34-spacing-md);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--w5f34-spacing-sm);
}

.w5f34-carousel-indicator {
  width: 8px;
  height: 8px;
  border-radius: var(--w5f34-radius-full);
  background: rgba(224, 255, 255, 0.3);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.w5f34-carousel-indicator.w5f34-active {
  background: var(--w5f34-primary);
  transform: scale(1.2);
}

/* Typography */
.w5f34-heading {
  font-weight: 700;
  line-height: 1.2;
  color: var(--w5f34-text);
  margin-bottom: var(--w5f34-spacing-md);
}

.w5f34-heading-1 {
  font-size: var(--w5f34-font-size-2xl);
}

.w5f34-heading-2 {
  font-size: var(--w5f34-font-size-xl);
}

.w5f34-heading-3 {
  font-size: var(--w5f34-font-size-lg);
}

.w5f34-text {
  color: var(--w5f34-text-muted);
  margin-bottom: var(--w5f34-spacing-md);
}

.w5f34-text-highlight {
  color: var(--w5f34-primary);
  font-weight: 600;
}

.w5f34-text-link {
  color: var(--w5f34-primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.w5f34-text-link:hover {
  color: var(--w5f34-primary-dark);
  text-decoration: underline;
}

/* Game grid */
.w5f34-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--w5f34-spacing-sm);
  margin-bottom: var(--w5f34-spacing-xl);
}

.w5f34-game-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--w5f34-radius-lg);
  overflow: hidden;
  background: var(--w5f34-bg-light);
  border: 1px solid var(--w5f34-border);
  transition: all 0.2s ease;
  cursor: pointer;
}

.w5f34-game-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--w5f34-shadow-md);
  border-color: var(--w5f34-primary);
}

.w5f34-game-item a {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

.w5f34-game-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.w5f34-game-item-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--w5f34-spacing-xs);
  background: linear-gradient(transparent, rgba(14, 22, 33, 0.9));
  font-size: var(--w5f34-font-size-xs);
  color: var(--w5f34-text);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Section */
.w5f34-section {
  margin-bottom: var(--w5f34-spacing-xl);
  padding: var(--w5f34-spacing-lg);
  background: var(--w5f34-bg-light);
  border-radius: var(--w5f34-radius-xl);
  border: 1px solid var(--w5f34-border);
}

.w5f34-section-title {
  font-size: var(--w5f34-font-size-xl);
  font-weight: 700;
  color: var(--w5f34-primary);
  margin-bottom: var(--w5f34-spacing-md);
  padding-bottom: var(--w5f34-spacing-sm);
  border-bottom: 2px solid var(--w5f34-primary);
}

/* Card */
.w5f34-card {
  background: var(--w5f34-bg-dark);
  border-radius: var(--w5f34-radius-lg);
  padding: var(--w5f34-spacing-md);
  margin-bottom: var(--w5f34-spacing-md);
  border: 1px solid var(--w5f34-border);
  transition: all 0.2s ease;
}

.w5f34-card:hover {
  border-color: var(--w5f34-primary);
  box-shadow: var(--w5f34-shadow-md);
}

/* Footer */
.w5f34-footer {
  background: var(--w5f34-bg-dark);
  padding: var(--w5f34-spacing-xl) var(--w5f34-spacing-md);
  border-top: 1px solid var(--w5f34-border);
  margin-top: var(--w5f34-spacing-xl);
}

.w5f34-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--w5f34-spacing-md);
  margin-bottom: var(--w5f34-spacing-lg);
  justify-content: center;
}

.w5f34-footer-links a {
  color: var(--w5f34-text-muted);
  text-decoration: none;
  font-size: var(--w5f34-font-size-sm);
  transition: color 0.2s ease;
}

.w5f34-footer-links a:hover {
  color: var(--w5f34-primary);
}

.w5f34-footer-partners {
  display: flex;
  flex-wrap: wrap;
  gap: var(--w5f34-spacing-sm);
  margin-bottom: var(--w5f34-spacing-lg);
  justify-content: center;
}

.w5f34-footer-partners img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.w5f34-footer-partners img:hover {
  opacity: 1;
}

.w5f34-footer-copyright {
  text-align: center;
  color: var(--w5f34-text-muted);
  font-size: var(--w5f34-font-size-xs);
  padding-top: var(--w5f34-spacing-md);
  border-top: 1px solid var(--w5f34-border);
}

/* Bottom navigation (mobile) */
.w5f34-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(180deg, var(--w5f34-bg-light) 0%, var(--w5f34-bg-dark) 100%);
  border-top: 1px solid var(--w5f34-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: var(--w5f34-z-bottom-nav);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

.w5f34-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  padding: var(--w5f34-spacing-xs);
  text-decoration: none;
  color: var(--w5f34-text-muted);
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  background: transparent;
  border-radius: var(--w5f34-radius-md);
}

.w5f34-bottom-nav-item:hover {
  color: var(--w5f34-primary);
  background: var(--w5f34-bg-light);
  transform: scale(1.05);
}

.w5f34-bottom-nav-item.w5f34-active {
  color: var(--w5f34-primary);
}

.w5f34-bottom-nav-item svg {
  width: 24px;
  height: 24px;
  margin-bottom: 2px;
}

.w5f34-bottom-nav-item span {
  font-size: var(--w5f34-font-size-xs);
  font-weight: 500;
}

@media (min-width: 769px) {
  .w5f34-bottom-nav {
    display: none;
  }
}

/* Utility classes */
.w5f34-mt-1 { margin-top: var(--w5f34-spacing-xs); }
.w5f34-mt-2 { margin-top: var(--w5f34-spacing-sm); }
.w5f34-mt-3 { margin-top: var(--w5f34-spacing-md); }
.w5f34-mt-4 { margin-top: var(--w5f34-spacing-lg); }
.w5f34-mb-1 { margin-bottom: var(--w5f34-spacing-xs); }
.w5f34-mb-2 { margin-bottom: var(--w5f34-spacing-sm); }
.w5f34-mb-3 { margin-bottom: var(--w5f34-spacing-md); }
.w5f34-mb-4 { margin-bottom: var(--w5f34-spacing-lg); }

.w5f34-text-center { text-align: center; }
.w5f34-text-left { text-align: left; }
.w5f34-text-right { text-align: right; }

.w5f34-flex { display: flex; }
.w5f34-flex-center { display: flex; align-items: center; justify-content: center; }
.w5f34-flex-between { display: flex; align-items: center; justify-content: space-between; }
.w5f34-flex-wrap { flex-wrap: wrap; }

.w5f34-hidden { display: none; }

/* Animation */
@keyframes w5f34-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.w5f34-pulse {
  animation: w5f34-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes w5f34-bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.w5f34-bounce {
  animation: w5f34-bounce 1s infinite;
}

/* Touch feedback */
.w5f34-touching {
  transform: scale(0.95);
  opacity: 0.8;
}
