/**
 * JL88 Website Design System
 * Color Palette: #FF6347 | #E65100 | #AFEEEE | #0D1117 | #004D40
 * Prefix: w3bf6-
 */

:root {
  --w3bf6-primary: #FF6347;
  --w3bf6-secondary: #E65100;
  --w3bf6-accent: #AFEEEE;
  --w3bf6-light: #004D40;
  --w3bf6-dark: #0D1117;
  --w3bf6-bg: #0D1117;
  --w3bf6-bg-light: #161B22;
  --w3bf6-text: #AFEEEE;
  --w3bf6-text-muted: #8B949E;
  --w3bf6-border: #E65100;
  --w3bf6-card-bg: #010409;
  --w3bf6-font-base: 62.5%;
  --w3bf6-font-sm: 1.2rem;
  --w3bf6-font-md: 1.4rem;
  --w3bf6-font-lg: 1.6rem;
  --w3bf6-font-xl: 2.0rem;
  --w3bf6-space-xs: 0.4rem;
  --w3bf6-space-sm: 0.8rem;
  --w3bf6-space-md: 1.2rem;
  --w3bf6-space-lg: 1.6rem;
  --w3bf6-space-xl: 2.4rem;
  --w3bf6-max-width: 430px;
  --w3bf6-header-height: 60px;
  --w3bf6-nav-height: 60px;
  --w3bf6-border-radius: 8px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: var(--w3bf6-font-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--w3bf6-bg);
  color: var(--w3bf6-text);
  line-height: 1.5rem;
  font-size: var(--w3bf6-font-md);
  overflow-x: hidden;
}

.w3bf6-container {
  max-width: var(--w3bf6-max-width);
  margin: 0 auto;
  padding: 0 var(--w3bf6-space-md);
}

.w3bf6-wrapper {
  padding-bottom: 80px;
}

.w3bf6-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--w3bf6-header-height);
  background: linear-gradient(180deg, var(--w3bf6-card-bg) 0%, var(--w3bf6-bg) 100%);
  border-bottom: 2px solid var(--w3bf6-primary);
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(255, 99, 71, 0.3);
}

.w3bf6-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--w3bf6-max-width);
  margin: 0 auto;
  padding: 0 var(--w3bf6-space-md);
}

.w3bf6-logo {
  display: flex;
  align-items: center;
  gap: var(--w3bf6-space-sm);
  text-decoration: none;
  color: var(--w3bf6-primary);
  font-size: var(--w3bf6-font-lg);
  font-weight: bold;
}

.w3bf6-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--w3bf6-border-radius);
}

.w3bf6-header-actions {
  display: flex;
  gap: var(--w3bf6-space-sm);
}

.w3bf6-btn {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: var(--w3bf6-border-radius);
  font-size: var(--w3bf6-font-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
}

.w3bf6-btn-primary {
  background: linear-gradient(135deg, var(--w3bf6-primary) 0%, var(--w3bf6-secondary) 100%);
  color: var(--w3bf6-dark);
}

.w3bf6-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(255, 99, 71, 0.5);
}

.w3bf6-btn-secondary {
  background: transparent;
  color: var(--w3bf6-primary);
  border: 2px solid var(--w3bf6-primary);
}

.w3bf6-btn-secondary:hover {
  background: var(--w3bf6-primary);
  color: var(--w3bf6-dark);
}

.w3bf6-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--w3bf6-primary);
  font-size: 1.8rem;
}

.w3bf6-mobile-menu {
  position: fixed;
  top: var(--w3bf6-header-height);
  left: -100%;
  width: 100%;
  height: calc(100vh - var(--w3bf6-header-height));
  background-color: var(--w3bf6-card-bg);
  transition: left 0.3s ease;
  z-index: 9999;
  overflow-y: auto;
}

.w3bf6-mobile-menu.active {
  left: 0;
}

.w3bf6-menu-list {
  list-style: none;
  padding: var(--w3bf6-space-md);
}

.w3bf6-menu-item {
  margin-bottom: var(--w3bf6-space-xs);
}

.w3bf6-menu-link {
  display: block;
  padding: var(--w3bf6-space-md);
  color: var(--w3bf6-text);
  text-decoration: none;
  font-size: var(--w3bf6-font-md);
  border-radius: var(--w3bf6-border-radius);
  transition: all 0.3s ease;
}

.w3bf6-menu-link:hover {
  background: var(--w3bf6-bg-light);
  color: var(--w3bf6-primary);
}

.w3bf6-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 9998;
}

.w3bf6-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.w3bf6-main {
  margin-top: calc(var(--w3bf6-header-height) + var(--w3bf6-space-lg));
}

.w3bf6-slider {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  border-radius: var(--w3bf6-border-radius);
  margin-bottom: var(--w3bf6-space-lg);
}

.w3bf6-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.w3bf6-slide.active {
  opacity: 1;
}

.w3bf6-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.w3bf6-hero {
  text-align: center;
  padding: var(--w3bf6-space-xl) var(--w3bf6-space-md);
  background: radial-gradient(ellipse at center, var(--w3bf6-bg-light) 0%, var(--w3bf6-bg) 100%);
  border-radius: var(--w3bf6-border-radius);
  margin-bottom: var(--w3bf6-space-lg);
  border: 1px solid var(--w3bf6-border);
}

.w3bf6-hero h1 {
  font-size: var(--w3bf6-font-xl);
  color: var(--w3bf6-primary);
  margin-bottom: var(--w3bf6-space-md);
  line-height: 1.3;
}

.w3bf6-hero p {
  font-size: var(--w3bf6-font-md);
  color: var(--w3bf6-text-muted);
  margin-bottom: var(--w3bf6-space-lg);
}

.w3bf6-section {
  padding: var(--w3bf6-space-lg) 0;
  margin-bottom: var(--w3bf6-space-lg);
}

.w3bf6-section-title {
  font-size: var(--w3bf6-font-lg);
  color: var(--w3bf6-accent);
  margin-bottom: var(--w3bf6-space-md);
  padding-left: var(--w3bf6-space-sm);
  border-left: 4px solid var(--w3bf6-secondary);
}

.w3bf6-card {
  background: var(--w3bf6-card-bg);
  border-radius: var(--w3bf6-border-radius);
  padding: var(--w3bf6-space-lg);
  margin-bottom: var(--w3bf6-space-md);
  border: 1px solid var(--w3bf6-border);
}

.w3bf6-card-title {
  font-size: var(--w3bf6-font-lg);
  color: var(--w3bf6-primary);
  margin-bottom: var(--w3bf6-space-md);
}

.w3bf6-card-content {
  color: var(--w3bf6-text-muted);
  font-size: var(--w3bf6-font-md);
  line-height: 1.6;
}

.w3bf6-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--w3bf6-space-sm);
  margin-bottom: var(--w3bf6-space-lg);
}

.w3bf6-game-item {
  border-radius: var(--w3bf6-border-radius);
  overflow: hidden;
  background: var(--w3bf6-card-bg);
  border: 1px solid var(--w3bf6-border);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.w3bf6-game-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(255, 99, 71, 0.4);
}

.w3bf6-game-icon {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.w3bf6-game-name {
  padding: var(--w3bf6-space-xs);
  font-size: var(--w3bf6-font-sm);
  color: var(--w3bf6-text);
  text-align: center;
  background: var(--w3bf6-bg-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.w3bf6-link {
  color: var(--w3bf6-primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.w3bf6-link:hover {
  color: var(--w3bf6-accent);
  text-decoration: underline;
}

.w3bf6-list {
  list-style: none;
}

.w3bf6-list-item {
  padding: var(--w3bf6-space-sm) 0;
  border-bottom: 1px solid var(--w3bf6-bg-light);
}

.w3bf6-footer {
  background: var(--w3bf6-card-bg);
  padding: var(--w3bf6-space-xl) var(--w3bf6-space-md) 100px;
  border-top: 2px solid var(--w3bf6-primary);
  margin-top: var(--w3bf6-space-xl);
}

.w3bf6-footer-content {
  margin-bottom: var(--w3bf6-space-lg);
}

.w3bf6-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--w3bf6-space-md);
  margin-bottom: var(--w3bf6-space-lg);
}

.w3bf6-footer-link {
  color: var(--w3bf6-primary);
  text-decoration: none;
  font-size: var(--w3bf6-font-sm);
  transition: color 0.3s ease;
}

.w3bf6-footer-link:hover {
  color: var(--w3bf6-accent);
}

.w3bf6-partners {
  margin-bottom: var(--w3bf6-space-lg);
}

.w3bf6-partners-title {
  font-size: var(--w3bf6-font-sm);
  color: var(--w3bf6-text-muted);
  margin-bottom: var(--w3bf6-space-md);
  text-align: center;
}

.w3bf6-partners-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--w3bf6-space-sm);
}

.w3bf6-partner-logo {
  width: 100%;
  height: auto;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.w3bf6-partner-logo:hover {
  opacity: 1;
}

.w3bf6-copyright {
  text-align: center;
  color: var(--w3bf6-text-muted);
  font-size: var(--w3bf6-font-sm);
  padding-top: var(--w3bf6-space-md);
  border-top: 1px solid var(--w3bf6-bg-light);
}

.w3bf6-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--w3bf6-nav-height);
  background: linear-gradient(180deg, var(--w3bf6-card-bg) 0%, var(--w3bf6-bg) 100%);
  border-top: 2px solid var(--w3bf6-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.5);
}

.w3bf6-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  padding: var(--w3bf6-space-xs);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--w3bf6-text-muted);
  text-decoration: none;
  transition: all 0.3s ease;
}

.w3bf6-nav-item:hover {
  color: var(--w3bf6-primary);
  transform: scale(1.1);
}

.w3bf6-nav-item.active {
  color: var(--w3bf6-primary);
}

.w3bf6-nav-icon {
  font-size: 22px;
  margin-bottom: 4px;
  display: block;
}

.w3bf6-nav-text {
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
}

@media (min-width: 769px) {
  .w3bf6-bottom-nav {
    display: none;
  }
  .w3bf6-wrapper {
    padding-bottom: var(--w3bf6-space-lg);
  }
}

.w3bf6-text-center {
  text-align: center;
}

.w3bf6-mt-md {
  margin-top: var(--w3bf6-space-md);
}

.w3bf6-mb-md {
  margin-bottom: var(--w3bf6-space-md);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.w3bf6-fade-in {
  animation: fadeIn 0.5s ease forwards;
}

@media (max-width: 768px) {
  .w3bf6-hero h1 {
    font-size: var(--w3bf6-font-lg);
  }
}
