/* 22jl Gaming Platform - Theme Stylesheet */
/* All classes use 'w3646-' prefix for namespace isolation */
/* Color Palette: #273746 | #00FA9A | #F0E68C | #FFB347 | #FFFACD | #BBBBBB */

/* CSS Reset and 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, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 1.6rem;
  line-height: 1.5;
  color: #FFFACD;
  background-color: #273746;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Layout Container */
.w3646-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.w3646-wrapper {
  width: 100%;
  overflow-x: hidden;
}

/* Header Styles */
.w3646-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #273746 0%, #1a252f 100%);
  box-shadow: 0 2px 10px rgba(0, 250, 154, 0.1);
  z-index: 1000;
  padding: 1rem 0;
}

.w3646-header-content {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.w3646-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: #00FA9A;
}

.w3646-logo-img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.w3646-logo-text {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.w3646-header-actions {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

.w3646-btn {
  padding: 0.8rem 1.6rem;
  border: none;
  border-radius: 6px;
  font-size: 1.4rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
}

.w3646-btn-primary {
  background: linear-gradient(135deg, #00FA9A 0%, #00d98a 100%);
  color: #273746;
}

.w3646-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 250, 154, 0.3);
}

.w3646-btn-secondary {
  background: linear-gradient(135deg, #FFB347 0%, #ff9f2e 100%);
  color: #273746;
}

.w3646-btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 179, 71, 0.3);
}

.w3646-menu-btn {
  background: transparent;
  border: 2px solid #00FA9A;
  color: #00FA9A;
  padding: 0.6rem;
  min-height: 44px;
  min-width: 44px;
}

.w3646-menu-btn i {
  font-size: 2rem;
}

/* Mobile Menu */
.w3646-mobile-menu {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  background: #1a252f;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  max-height: calc(100vh - 60px);
  overflow-y: auto;
}

.w3646-menu-open {
  display: block;
  animation: w3646-slideDown 0.3s ease;
}

@keyframes w3646-slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.w3646-nav-link {
  display: block;
  padding: 1.5rem 2rem;
  color: #FFFACD;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 250, 205, 0.1);
  transition: all 0.3s ease;
  font-size: 1.5rem;
}

.w3646-nav-link:hover,
.w3646-nav-link.w3646-active {
  background: rgba(0, 250, 154, 0.1);
  color: #00FA9A;
  padding-left: 2.5rem;
}

/* Main Content */
.w3646-main {
  margin-top: 70px;
  padding-bottom: 80px;
  min-height: calc(100vh - 150px);
}

/* Carousel/Slider */
.w3646-carousel {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 12px;
  margin: 2rem 0;
}

.w3646-slide {
  display: none;
  width: 100%;
  height: 100%;
}

.w3646-slide.w3646-active {
  display: block;
}

.w3646-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

.w3646-carousel-dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.w3646-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 250, 205, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.w3646-dot.w3646-active {
  background: #00FA9A;
  width: 30px;
  border-radius: 5px;
}

/* Game Grid */
.w3646-game-section {
  margin: 3rem 0;
}

.w3646-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: #00FA9A;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.w3646-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.w3646-game-item {
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.w3646-game-item:hover {
  transform: translateY(-5px);
}

.w3646-game-icon {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  margin-bottom: 0.5rem;
}

.w3646-game-name {
  font-size: 1.2rem;
  color: #F0E68C;
  text-decoration: none;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Content Card */
.w3646-card {
  background: linear-gradient(135deg, #1a252f 0%, #273746 100%);
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(0, 250, 154, 0.1);
}

.w3646-card-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #FFB347;
  margin-bottom: 1rem;
}

.w3646-card-content {
  font-size: 1.5rem;
  line-height: 1.6;
  color: #FFFACD;
}

.w3646-card-content p {
  margin-bottom: 1rem;
}

.w3646-card-content ul,
.w3646-card-content ol {
  margin-left: 2rem;
  margin-bottom: 1rem;
}

.w3646-card-content li {
  margin-bottom: 0.5rem;
}

/* Accordion */
.w3646-accordion-item {
  border-bottom: 1px solid rgba(255, 250, 205, 0.1);
  margin-bottom: 1rem;
}

.w3646-accordion-header {
  padding: 1.5rem;
  background: rgba(0, 250, 154, 0.05);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.w3646-accordion-header:hover {
  background: rgba(0, 250, 154, 0.1);
}

.w3646-accordion-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: #F0E68C;
}

.w3646-accordion-icon {
  color: #00FA9A;
  transition: transform 0.3s ease;
}

.w3646-accordion-open .w3646-accordion-icon {
  transform: rotate(180deg);
}

.w3646-accordion-content {
  display: none;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.2);
}

/* Bottom Navigation */
.w3646-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, #1a252f 0%, #273746 100%);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 64px;
  padding: 0.5rem 0;
}

.w3646-bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #BBBBBB;
  transition: all 0.3s ease;
  min-width: 60px;
  min-height: 60px;
  padding: 0.5rem;
}

.w3646-bottom-nav a:hover,
.w3646-bottom-nav a.w3646-nav-active {
  color: #00FA9A;
  transform: scale(1.1);
}

.w3646-bottom-nav i {
  font-size: 24px;
  margin-bottom: 0.3rem;
}

.w3646-bottom-nav span {
  font-size: 1.1rem;
  font-weight: 500;
}

/* Footer */
.w3646-footer {
  background: #1a252f;
  padding: 3rem 0 1rem;
  margin-top: 4rem;
  border-top: 2px solid rgba(0, 250, 154, 0.2);
}

.w3646-footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.w3646-footer-link {
  color: #FFFACD;
  text-decoration: none;
  font-size: 1.4rem;
  padding: 0.5rem;
  transition: color 0.3s ease;
}

.w3646-footer-link:hover {
  color: #00FA9A;
}

.w3646-partners {
  margin: 2rem 0;
}

.w3646-partners-title {
  font-size: 1.6rem;
  color: #FFB347;
  margin-bottom: 1.5rem;
  text-align: center;
}

.w3646-partners-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  align-items: center;
}

.w3646-partner-logo {
  width: 100%;
  height: auto;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.w3646-partner-logo:hover {
  opacity: 1;
}

.w3646-copyright {
  text-align: center;
  font-size: 1.3rem;
  color: #BBBBBB;
  padding: 2rem 0 1rem;
  border-top: 1px solid rgba(187, 187, 187, 0.2);
}

/* Utility Classes */
.w3646-text-center {
  text-align: center;
}

.w3646-text-highlight {
  color: #00FA9A;
  font-weight: 600;
}

.w3646-text-accent {
  color: #FFB347;
}

.w3646-mb-1 {
  margin-bottom: 1rem;
}

.w3646-mb-2 {
  margin-bottom: 2rem;
}

.w3646-mt-2 {
  margin-top: 2rem;
}

/* Desktop Styles */
@media (min-width: 769px) {
  .w3646-bottom-nav {
    display: none;
  }

  .w3646-main {
    padding-bottom: 2rem;
  }

  .w3646-game-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .w3646-main {
    padding-bottom: 80px;
  }

  .w3646-btn {
    font-size: 1.3rem;
    padding: 0.6rem 1.2rem;
  }

  .w3646-game-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
  }
}

@media (max-width: 375px) {
  html {
    font-size: 55%;
  }

  .w3646-game-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .w3646-partners-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
