/**
 * Jilee - Premium Online Gaming Platform
 * Main Stylesheet with Mobile-First Design
 * @version 1.0.0
 */

/* ============================================
   CSS Variables - Brand Color Palette
   ============================================ */
:root {
  /* Primary Colors */
  --v444-primary: #DAA520;
  --v444-primary-hover: #C4931F;
  --v444-dark: #141414;
  --v444-darker: #0A0A0A;
  --v444-light: #F8F8FF;
  --v444-gray: #5D5D5D;
  --v444-gray-light: #8A8A8A;
  --v444-gray-dark: #3A3A3A;

  /* Typography */
  --v444-font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --v444-font-size-base: 1.6rem;
  --v444-line-height: 1.5;

  /* Spacing */
  --v444-spacing-xs: 0.4rem;
  --v444-spacing-sm: 0.8rem;
  --v444-spacing-md: 1.6rem;
  --v444-spacing-lg: 2.4rem;
  --v444-spacing-xl: 3.2rem;

  /* Layout */
  --v444-max-width: 43rem;
  --v444-header-height: 6.4rem;
  --v444-bottom-nav-height: 6rem;
  --v444-border-radius: 0.8rem;

  /* Z-Index */
  --v444-z-header: 1000;
  --v444-z-bottom-nav: 1000;
  --v444-z-mobile-menu: 9999;
  --v444-z-overlay: 9998;
}

/* ============================================
   Reset & Base Styles
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--v444-font-family);
  font-size: var(--v444-font-size-base);
  line-height: var(--v444-line-height);
  color: var(--v444-light);
  background-color: var(--v444-dark);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
  font-family: inherit;
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--v444-spacing-md);
  color: var(--v444-primary);
}

h1 {
  font-size: 2.8rem;
}

h2 {
  font-size: 2.4rem;
}

h3 {
  font-size: 2rem;
}

h4 {
  font-size: 1.8rem;
}

p {
  margin-bottom: var(--v444-spacing-md);
  color: var(--v444-light);
}

/* ============================================
   Layout Containers
   ============================================ */
.v444-container {
  max-width: var(--v444-max-width);
  margin: 0 auto;
  padding: 0 var(--v444-spacing-md);
}

.v444-wrapper {
  padding-bottom: var(--v444-bottom-nav-height);
}

@media (min-width: 769px) {
  .v444-wrapper {
    padding-bottom: 0;
  }
}

/* ============================================
   Header & Navigation
   ============================================ */
.v444-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--v444-header-height);
  background-color: var(--v444-darker);
  box-shadow: 0 0.2rem 0.8rem rgba(0, 0, 0, 0.5);
  z-index: var(--v444-z-header);
  display: flex;
  align-items: center;
}

.v444-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: var(--v444-max-width);
  margin: 0 auto;
  padding: 0 var(--v444-spacing-md);
}

.v444-logo {
  display: flex;
  align-items: center;
  gap: var(--v444-spacing-sm);
  font-size: 2rem;
  font-weight: 700;
  color: var(--v444-primary);
}

.v444-logo-icon {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 0.4rem;
}

.v444-header-actions {
  display: flex;
  gap: var(--v444-spacing-sm);
}

.v444-btn {
  padding: 0.8rem 1.6rem;
  border-radius: var(--v444-border-radius);
  font-size: 1.4rem;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
  text-align: center;
}

.v444-btn-primary {
  background: linear-gradient(135deg, var(--v444-primary) 0%, var(--v444-primary-hover) 100%);
  color: var(--v444-dark);
  box-shadow: 0 0.4rem 1.2rem rgba(218, 165, 32, 0.3);
}

.v444-btn-primary:hover {
  transform: translateY(-0.2rem);
  box-shadow: 0 0.6rem 1.6rem rgba(218, 165, 32, 0.4);
}

.v444-btn-secondary {
  background: transparent;
  color: var(--v444-primary);
  border: 0.2rem solid var(--v444-primary);
}

.v444-btn-secondary:hover {
  background: var(--v444-primary);
  color: var(--v444-dark);
}

.v444-menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  cursor: pointer;
  padding: 0.8rem;
  background: transparent;
}

@media (min-width: 769px) {
  .v444-menu-toggle {
    display: none;
  }
}

.v444-menu-toggle span {
  display: block;
  width: 2.4rem;
  height: 0.2rem;
  background-color: var(--v444-primary);
  transition: all 0.3s ease;
}

/* ============================================
   Mobile Menu
   ============================================ */
.v444-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 30rem;
  height: 100vh;
  background-color: var(--v444-darker);
  box-shadow: -0.4rem 0 1.2rem rgba(0, 0, 0, 0.5);
  z-index: var(--v444-z-mobile-menu);
  transition: right 0.3s ease;
  padding: var(--v444-spacing-xl) var(--v444-spacing-md);
  overflow-y: auto;
}

.v444-mobile-menu.v444-menu-open {
  right: 0;
}

.v444-menu-close {
  position: absolute;
  top: var(--v444-spacing-md);
  right: var(--v444-spacing-md);
  background: transparent;
  color: var(--v444-primary);
  font-size: 2.4rem;
  padding: 0.8rem;
}

.v444-menu-nav {
  display: flex;
  flex-direction: column;
  gap: var(--v444-spacing-md);
  margin-top: var(--v444-spacing-xl);
}

.v444-menu-link {
  padding: var(--v444-spacing-md);
  border-radius: var(--v444-border-radius);
  color: var(--v444-light);
  font-size: 1.6rem;
  transition: all 0.3s ease;
}

.v444-menu-link:hover {
  background-color: var(--v444-gray-dark);
  color: var(--v444-primary);
}

.v444-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: var(--v444-z-overlay);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.v444-menu-overlay.v444-overlay-active {
  opacity: 1;
  visibility: visible;
}

/* ============================================
   Hero Slider
   ============================================ */
.v444-hero-slider {
  position: relative;
  width: 100%;
  height: 50rem;
  overflow: hidden;
  margin-top: var(--v444-header-height);
}

.v444-hero-slide {
  width: 100%;
  height: 100%;
  position: relative;
}

.v444-hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.v444-hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  padding: var(--v444-spacing-xl) var(--v444-spacing-md);
}

.v444-hero-title {
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--v444-primary);
  margin-bottom: var(--v444-spacing-sm);
  text-shadow: 0 0.2rem 0.4rem rgba(0, 0, 0, 0.5);
}

/* ============================================
   Game Grid
   ============================================ */
.v444-section {
  padding: var(--v444-spacing-xl) 0;
}

.v444-section-title {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--v444-primary);
  margin-bottom: var(--v444-spacing-lg);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
}

.v444-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--v444-spacing-sm);
  margin-bottom: var(--v444-spacing-lg);
}

.v444-game-item {
  position: relative;
  border-radius: var(--v444-border-radius);
  overflow: hidden;
  background-color: var(--v444-gray-dark);
  cursor: pointer;
  transition: all 0.3s ease;
}

.v444-game-item:hover {
  transform: translateY(-0.4rem);
  box-shadow: 0 0.8rem 1.6rem rgba(218, 165, 32, 0.3);
}

.v444-game-icon {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.v444-game-name {
  padding: var(--v444-spacing-xs);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--v444-light);
  text-align: center;
  background-color: var(--v444-darker);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============================================
   Content Sections
   ============================================ */
.v444-content-section {
  background-color: var(--v444-darker);
  border-radius: var(--v444-border-radius);
  padding: var(--v444-spacing-lg);
  margin-bottom: var(--v444-spacing-lg);
}

.v444-content-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--v444-primary);
  margin-bottom: var(--v444-spacing-md);
  border-bottom: 0.2rem solid var(--v444-primary);
  padding-bottom: var(--v444-spacing-sm);
}

.v444-content-text {
  color: var(--v444-light);
  line-height: 1.8;
}

.v444-link {
  color: var(--v444-primary);
  font-weight: 600;
  text-decoration: underline;
}

.v444-link:hover {
  color: var(--v444-primary-hover);
}

/* ============================================
   Mobile Bottom Navigation
   ============================================ */
.v444-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--v444-bottom-nav-height);
  background: linear-gradient(180deg, var(--v444-gray-dark) 0%, var(--v444-darker) 100%);
  border-top: 0.2rem solid var(--v444-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: var(--v444-z-bottom-nav);
  box-shadow: 0 -0.4rem 1.2rem rgba(0, 0, 0, 0.5);
}

@media (min-width: 769px) {
  .v444-bottom-nav {
    display: none;
  }
}

.v444-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-width: 6rem;
  min-height: 6rem;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--v444-gray-light);
}

.v444-nav-item:hover {
  color: var(--v444-primary);
  transform: scale(1.1);
}

.v444-nav-item.active {
  color: var(--v444-primary);
}

.v444-nav-icon {
  font-size: 2.4rem;
}

.v444-nav-text {
  font-size: 1rem;
  font-weight: 600;
}

/* ============================================
   Footer
   ============================================ */
.v444-footer {
  background-color: var(--v444-darker);
  padding: var(--v444-spacing-xl) 0;
  margin-top: var(--v444-spacing-xl);
  border-top: 0.2rem solid var(--v444-gray-dark);
}

.v444-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--v444-spacing-md);
  margin-bottom: var(--v444-spacing-lg);
  justify-content: center;
}

.v444-footer-link {
  color: var(--v444-gray-light);
  font-size: 1.4rem;
  padding: var(--v444-spacing-xs) var(--v444-spacing-sm);
  border-radius: var(--v444-border-radius);
  transition: all 0.3s ease;
}

.v444-footer-link:hover {
  background-color: var(--v444-gray-dark);
  color: var(--v444-primary);
}

.v444-partners {
  display: flex;
  flex-wrap: wrap;
  gap: var(--v444-spacing-sm);
  justify-content: center;
  margin-bottom: var(--v444-spacing-lg);
}

.v444-partner-logo {
  width: 8rem;
  height: 4rem;
  object-fit: contain;
  opacity: 0.7;
  transition: all 0.3s ease;
}

.v444-partner-logo:hover {
  opacity: 1;
  transform: scale(1.05);
}

.v444-copyright {
  text-align: center;
  color: var(--v444-gray);
  font-size: 1.2rem;
  padding: var(--v444-spacing-md) 0;
  border-top: 0.1rem solid var(--v444-gray-dark);
}

/* ============================================
   Utility Classes
   ============================================ */
.v444-text-center {
  text-align: center;
}

.v444-text-primary {
  color: var(--v444-primary);
}

.v444-mt-lg {
  margin-top: var(--v444-spacing-lg);
}

.v444-mb-lg {
  margin-bottom: var(--v444-spacing-lg);
}

.v444-hidden {
  display: none;
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 380px) {
  .v444-game-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  h1 {
    font-size: 2.4rem;
  }

  h2 {
    font-size: 2rem;
  }
}

@media (min-width: 769px) {
  .v444-container {
    padding: 0 var(--v444-spacing-lg);
  }

  .v444-game-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .v444-hero-slider {
    height: 60rem;
  }
}
