/* Layout CSS for 588jl legit - All classes use prefix: w9f25- */

/* CSS Variables */
:root {
  --w9f25-primary: #000080;
  --w9f25-secondary: #191970;
  --w9f25-dark: #2D2D2D;
  --w9f25-accent: #7CFC00;
  --w9f25-light: #AFEEEE;
  --w9f25-white: #FFFFFF;
  --w9f25-black: #000000;
  --w9f25-gray: #666666;
  --w9f25-gray-light: #EEEEEE;
  --w9f25-shadow: rgba(0, 0, 0, 0.15);
  --w9f25-shadow-lg: rgba(0, 0, 0, 0.25);
  --w9f25-transition: all 0.3s ease;
}

/* Base Reset */
* {
  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(--w9f25-dark);
  background: var(--w9f25-gray-light);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--w9f25-transition);
}

button {
  border: none;
  outline: none;
  cursor: pointer;
  font-family: inherit;
  transition: var(--w9f25-transition);
}

/* Container */
.w9f25-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.w9f25-container-fluid {
  width: 100%;
  padding: 0 15px;
}

/* Header */
.w9f25-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--w9f25-primary), var(--w9f25-secondary));
  box-shadow: 0 2px 10px var(--w9f25-shadow);
  z-index: 1000;
  height: 70px;
}

.w9f25-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  padding: 0 15px;
  max-width: 1200px;
  margin: 0 auto;
}

.w9f25-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--w9f25-white);
  font-weight: 700;
  font-size: 1.8rem;
}

.w9f25-logo-img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.w9f25-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.w9f25-btn {
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 1.4rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--w9f25-transition);
  border: none;
  text-align: center;
  display: inline-block;
}

.w9f25-btn-primary {
  background: var(--w9f25-accent);
  color: var(--w9f25-dark);
}

.w9f25-btn-primary:hover {
  background: #6FCD00;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(127, 252, 0, 0.3);
}

.w9f25-btn-secondary {
  background: var(--w9f25-light);
  color: var(--w9f25-primary);
}

.w9f25-btn-secondary:hover {
  background: #9FDDEE;
  transform: translateY(-2px);
}

.w9f25-menu-toggle {
  display: none;
  background: transparent;
  color: var(--w9f25-white);
  font-size: 2.4rem;
  padding: 5px;
  min-width: 44px;
  min-height: 44px;
}

/* Desktop Navigation */
.w9f25-nav-desktop {
  display: none;
  background: var(--w9f25-white);
  box-shadow: 0 2px 8px var(--w9f25-shadow);
  margin-top: 70px;
}

.w9f25-nav-list {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 5px;
  padding: 10px;
  flex-wrap: wrap;
}

.w9f25-nav-item {
  display: inline-block;
}

.w9f25-nav-link {
  display: block;
  padding: 8px 15px;
  color: var(--w9f25-dark);
  font-size: 1.3rem;
  font-weight: 500;
  border-radius: 4px;
  white-space: nowrap;
}

.w9f25-nav-link:hover {
  background: var(--w9f25-primary);
  color: var(--w9f25-white);
}

/* Mobile Menu */
.w9f25-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: var(--w9f25-white);
  box-shadow: -2px 0 10px var(--w9f25-shadow);
  z-index: 9999;
  transition: right 0.3s ease;
  overflow-y: auto;
}

.w9f25-menu-open {
  right: 0;
}

.w9f25-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: linear-gradient(135deg, var(--w9f25-primary), var(--w9f25-secondary));
  color: var(--w9f25-white);
}

.w9f25-menu-close {
  background: transparent;
  color: var(--w9f25-white);
  font-size: 2.4rem;
  padding: 5px;
  min-width: 44px;
  min-height: 44px;
}

.w9f25-menu-nav {
  list-style: none;
  padding: 20px 0;
}

.w9f25-menu-item {
  border-bottom: 1px solid var(--w9f25-gray-light);
}

.w9f25-menu-link {
  display: block;
  padding: 15px 20px;
  color: var(--w9f25-dark);
  font-size: 1.5rem;
  font-weight: 500;
}

.w9f25-menu-link:hover {
  background: var(--w9f25-gray-light);
  color: var(--w9f25-primary);
}

.w9f25-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
}

.w9f25-overlay-active {
  display: block;
}

/* Main Content */
.w9f25-main {
  margin-top: 70px;
  min-height: calc(100vh - 70px);
}

/* Carousel */
.w9f25-carousel {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 0;
  background: var(--w9f25-dark);
}

.w9f25-slide {
  display: none;
  width: 100%;
  cursor: pointer;
}

.w9f25-slide-active {
  display: block;
  animation: fadeIn 0.5s ease;
}

.w9f25-slide img {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
}

/* Section */
.w9f25-section {
  padding: 40px 15px;
  background: var(--w9f25-white);
  margin-bottom: 2px;
}

.w9f25-section-alt {
  background: var(--w9f25-gray-light);
}

.w9f25-section-title {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--w9f25-primary);
  margin-bottom: 20px;
  text-align: center;
}

.w9f25-section-subtitle {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--w9f25-secondary);
  margin: 25px 0 15px;
}

/* Games Grid */
.w9f25-games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.w9f25-game-card {
  background: var(--w9f25-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px var(--w9f25-shadow);
  transition: var(--w9f25-transition);
  cursor: pointer;
}

.w9f25-game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px var(--w9f25-shadow-lg);
}

.w9f25-game-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.w9f25-game-name {
  padding: 8px;
  font-size: 1.2rem;
  font-weight: 600;
  text-align: center;
  color: var(--w9f25-dark);
  line-height: 1.3;
  min-height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Footer */
.w9f25-footer {
  background: linear-gradient(135deg, var(--w9f25-secondary), var(--w9f25-dark));
  color: var(--w9f25-light);
  padding: 40px 15px 80px;
  margin-top: 0;
}

.w9f25-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  margin-bottom: 30px;
}

.w9f25-footer-link {
  color: var(--w9f25-light);
  font-size: 1.3rem;
  padding: 5px 10px;
  border-radius: 4px;
}

.w9f25-footer-link:hover {
  color: var(--w9f25-accent);
  background: rgba(255, 255, 255, 0.1);
}

.w9f25-partners {
  margin-bottom: 30px;
}

.w9f25-partners-title {
  text-align: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
  color: var(--w9f25-white);
}

.w9f25-partners-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
  max-width: 600px;
  margin: 0 auto;
}

.w9f25-partner-logo {
  background: var(--w9f25-white);
  border-radius: 8px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
}

.w9f25-partner-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.w9f25-copyright {
  text-align: center;
  font-size: 1.2rem;
  color: var(--w9f25-gray-light);
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Bottom Navigation (Mobile) */
.w9f25-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, var(--w9f25-primary), var(--w9f25-secondary));
  box-shadow: 0 -2px 10px var(--w9f25-shadow);
  z-index: 1000;
  display: flex;
  justify-content: space-around;
  padding: 8px 0;
  height: 64px;
}

.w9f25-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--w9f25-light);
  min-width: 60px;
  cursor: pointer;
  transition: var(--w9f25-transition);
  padding: 5px;
}

.w9f25-bottom-nav-item:hover,
.w9f25-bottom-nav-item.w9f25-nav-active {
  color: var(--w9f25-accent);
  transform: scale(1.05);
}

.w9f25-bottom-nav-icon {
  font-size: 2.4rem;
  margin-bottom: 2px;
}

.w9f25-bottom-nav-text {
  font-size: 1.1rem;
  font-weight: 500;
  text-align: center;
}

/* Accordion */
.w9f25-accordion {
  margin: 20px 0;
}

.w9f25-accordion-item {
  background: var(--w9f25-white);
  border-radius: 8px;
  margin-bottom: 10px;
  overflow: hidden;
  box-shadow: 0 2px 6px var(--w9f25-shadow);
}

.w9f25-accordion-header {
  padding: 15px 20px;
  background: var(--w9f25-gray-light);
  cursor: pointer;
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--w9f25-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--w9f25-transition);
}

.w9f25-accordion-header:hover {
  background: var(--w9f25-primary);
  color: var(--w9f25-white);
}

.w9f25-accordion-active {
  background: var(--w9f25-primary);
  color: var(--w9f25-white);
}

.w9f25-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 20px;
}

.w9f25-accordion-open {
  max-height: 1000px;
  padding: 20px;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .w9f25-menu-toggle {
    display: block;
  }

  .w9f25-main {
    padding-bottom: 80px;
  }

  .w9f25-section {
    padding: 30px 15px;
  }

  .w9f25-section-title {
    font-size: 2rem;
  }

  .w9f25-games-grid {
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 8px;
  }

  .w9f25-game-name {
    font-size: 1.1rem;
    padding: 6px;
    min-height: 40px;
  }

  .w9f25-footer {
    padding-bottom: 100px;
  }

  .w9f25-partners-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }
}

@media (min-width: 769px) {
  .w9f25-bottom-nav {
    display: none;
  }

  .w9f25-nav-desktop {
    display: block;
  }

  .w9f25-main {
    padding-bottom: 0;
  }

  .w9f25-footer {
    padding-bottom: 40px;
  }

  .w9f25-games-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 15px;
  }
}
