/**
 * JL89 Gaming Platform - Design System
 * Mobile-first responsive stylesheet
 * Color Palette: Coral & Red Gaming Theme
 */

/* ===== CSS Variables ===== */
:root {
  --wf2d9-primary: #FF7F50;
  --wf2d9-secondary: #FF6347;
  --wf2d9-accent: #FF0000;
  --wf2d9-dark: #273746;
  --wf2d9-bg-dark: #1a2332;
  --wf2d9-bg-darker: #0f1419;
  --wf2d9-text-light: #ffffff;
  --wf2d9-text-gray: #b0b8c1;
  --wf2d9-border: #3a4556;
  --wf2d9-shadow: rgba(255, 127, 80, 0.3);
  --wf2d9-overlay: rgba(0, 0, 0, 0.85);
  --wf2d9-gradient-1: linear-gradient(135deg, #FF7F50 0%, #FF6347 100%);
  --wf2d9-gradient-2: linear-gradient(135deg, #FF6347 0%, #FF0000 100%);
  --wf2d9-gradient-3: linear-gradient(180deg, #273746 0%, #1a2332 100%);
}

/* ===== Base Styles ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--wf2d9-text-light);
  background: var(--wf2d9-bg-darker);
  overflow-x: hidden;
}

a {
  color: var(--wf2d9-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--wf2d9-secondary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ===== Header Styles ===== */
.wf2d9-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--wf2d9-dark);
  border-bottom: 2px solid var(--wf2d9-primary);
  z-index: 1000;
  transition: all 0.3s ease;
}

.wf2d9-header-scrolled {
  background: var(--wf2d9-bg-darker);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.wf2d9-header-container {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
}

.wf2d9-logo-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.wf2d9-logo-img {
  width: 32px;
  height: 32px;
}

.wf2d9-logo-text {
  font-size: 2rem;
  font-weight: 700;
  background: var(--wf2d9-gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.wf2d9-header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.wf2d9-btn-register,
.wf2d9-btn-login {
  padding: 0.8rem 1.6rem;
  border-radius: 2rem;
  font-size: 1.3rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.wf2d9-btn-register {
  background: var(--wf2d9-gradient-1);
  color: var(--wf2d9-text-light);
}

.wf2d9-btn-register:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--wf2d9-shadow);
}

.wf2d9-btn-login {
  background: transparent;
  color: var(--wf2d9-primary);
  border: 2px solid var(--wf2d9-primary);
}

.wf2d9-btn-login:hover {
  background: var(--wf2d9-primary);
  color: var(--wf2d9-text-light);
}

.wf2d9-hamburger {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0.5rem;
}

.wf2d9-hamburger span {
  width: 24px;
  height: 3px;
  background: var(--wf2d9-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.wf2d9-hamburger-active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.wf2d9-hamburger-active span:nth-child(2) {
  opacity: 0;
}

.wf2d9-hamburger-active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ===== Mobile Menu ===== */
.wf2d9-mobile-menu {
  position: fixed;
  top: 60px;
  right: -100%;
  width: 280px;
  height: calc(100vh - 60px);
  background: var(--wf2d9-dark);
  z-index: 9999;
  transition: right 0.3s ease;
  overflow-y: auto;
}

.wf2d9-menu-active {
  right: 0;
}

.wf2d9-menu-overlay {
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--wf2d9-overlay);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.wf2d9-overlay-active {
  opacity: 1;
  visibility: visible;
}

.wf2d9-menu-list {
  list-style: none;
  padding: 2rem 0;
}

.wf2d9-menu-item {
  border-bottom: 1px solid var(--wf2d9-border);
}

.wf2d9-menu-link {
  display: block;
  padding: 1.5rem 2rem;
  color: var(--wf2d9-text-light);
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.wf2d9-menu-link:hover {
  background: var(--wf2d9-bg-dark);
  color: var(--wf2d9-primary);
  padding-left: 2.5rem;
}

/* ===== Main Content ===== */
.wf2d9-main {
  margin-top: 60px;
  min-height: calc(100vh - 60px);
  padding-bottom: 80px;
}

.wf2d9-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== Carousel Styles ===== */
.wf2d9-carousel {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 1rem;
  margin: 2rem 0;
}

.wf2d9-carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.wf2d9-carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease;
  cursor: pointer;
}

.wf2d9-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1rem;
}

.wf2d9-carousel-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.8rem;
  z-index: 10;
}

.wf2d9-carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
}

.wf2d9-dot-active {
  width: 24px;
  border-radius: 5px;
  background: var(--wf2d9-primary);
}

/* ===== Section Styles ===== */
.wf2d9-section {
  padding: 3rem 0;
}

.wf2d9-section-title {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 2rem;
  background: var(--wf2d9-gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.wf2d9-section-subtitle {
  font-size: 1.6rem;
  color: var(--wf2d9-text-gray);
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* ===== Game Grid ===== */
.wf2d9-game-category {
  margin-bottom: 3rem;
}

.wf2d9-category-title {
  font-size: 2rem;
  font-weight: 600;
  color: var(--wf2d9-primary);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.wf2d9-game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 1rem;
}

.wf2d9-game-card {
  background: var(--wf2d9-dark);
  border-radius: 0.8rem;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.wf2d9-game-card:hover {
  border-color: var(--wf2d9-primary);
  transform: translateY(-4px);
  box-shadow: 0 8px 16px var(--wf2d9-shadow);
}

.wf2d9-game-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.wf2d9-game-name {
  padding: 0.8rem;
  font-size: 1.2rem;
  text-align: center;
  color: var(--wf2d9-text-light);
  font-weight: 500;
}

/* ===== Button Styles ===== */
.wf2d9-btn {
  display: inline-block;
  padding: 1.2rem 2.4rem;
  border-radius: 2.5rem;
  font-size: 1.4rem;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.wf2d9-btn-primary {
  background: var(--wf2d9-gradient-1);
  color: var(--wf2d9-text-light);
  box-shadow: 0 4px 12px var(--wf2d9-shadow);
}

.wf2d9-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px var(--wf2d9-shadow);
}

.wf2d9-btn-secondary {
  background: transparent;
  color: var(--wf2d9-primary);
  border: 2px solid var(--wf2d9-primary);
}

.wf2d9-btn-secondary:hover {
  background: var(--wf2d9-primary);
  color: var(--wf2d9-text-light);
}

/* ===== Card Styles ===== */
.wf2d9-card {
  background: var(--wf2d9-dark);
  border-radius: 1rem;
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px solid var(--wf2d9-border);
}

.wf2d9-card-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--wf2d9-primary);
  margin-bottom: 1rem;
}

.wf2d9-card-content {
  color: var(--wf2d9-text-gray);
  line-height: 1.6;
}

/* ===== Bottom Navigation ===== */
.wf2d9-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--wf2d9-dark);
  border-top: 2px solid var(--wf2d9-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.3);
}

.wf2d9-bottom-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  color: var(--wf2d9-text-gray);
  transition: all 0.3s ease;
  gap: 0.4rem;
}

.wf2d9-bottom-nav-btn:hover,
.wf2d9-nav-active {
  color: var(--wf2d9-primary);
  transform: scale(1.1);
}

.wf2d9-nav-icon {
  font-size: 2.4rem;
}

.wf2d9-nav-label {
  font-size: 1.1rem;
  font-weight: 500;
}

/* ===== Footer ===== */
.wf2d9-footer {
  background: var(--wf2d9-bg-dark);
  padding: 3rem 0 10rem;
  border-top: 1px solid var(--wf2d9-border);
}

.wf2d9-footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.wf2d9-footer-link {
  color: var(--wf2d9-text-gray);
  font-size: 1.3rem;
  transition: color 0.3s ease;
}

.wf2d9-footer-link:hover {
  color: var(--wf2d9-primary);
}

.wf2d9-partners {
  margin: 3rem 0;
}

.wf2d9-partners-title {
  font-size: 1.6rem;
  color: var(--wf2d9-text-gray);
  margin-bottom: 1.5rem;
  text-align: center;
}

.wf2d9-partners-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  align-items: center;
}

.wf2d9-partner-img {
  width: 100%;
  max-width: 60px;
  margin: 0 auto;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.wf2d9-partner-img:hover {
  opacity: 1;
}

.wf2d9-copyright {
  text-align: center;
  color: var(--wf2d9-text-gray);
  font-size: 1.2rem;
  margin-top: 2rem;
}

/* ===== Responsive Design ===== */
@media (min-width: 769px) {
  .wf2d9-bottom-nav {
    display: none;
  }

  .wf2d9-main {
    padding-bottom: 0;
  }

  .wf2d9-footer {
    padding: 3rem 0 2rem;
  }

  .wf2d9-hamburger {
    display: none;
  }

  .wf2d9-desktop-nav {
    display: flex;
    gap: 2rem;
  }

  .wf2d9-carousel {
    height: 300px;
  }

  .wf2d9-game-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }
}

@media (max-width: 768px) {
  .wf2d9-desktop-nav {
    display: none;
  }

  .wf2d9-btn-login {
    display: none;
  }

  .wf2d9-section-title {
    font-size: 2rem;
  }

  .wf2d9-partners-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
