/* 2jl ph - Main Theme CSS */

/* ===== CSS Variables ===== */
:root {
  --w3310-color-primary: #1B263B;
  --w3310-color-secondary: #32CD32;
  --w3310-color-accent: #FF8000;
  --w3310-color-tertiary: #66CDAA;
  --w3310-color-highlight: #FFEB3B;
  --w3310-color-text: #ffffff;
  --w3310-color-text-muted: #b0b0b0;
  --w3310-color-border: #3a4a6e;
  --w3310-color-bg: #0f1621;
  --w3310-color-bg-light: #1a2332;
  --w3310-header-height: 60px;
  --w3310-bottom-nav-height: 60px;
}

/* ===== Reset & Base Styles ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--w3310-color-bg);
  color: var(--w3310-color-text);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

/* ===== Container ===== */
.w3310-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 15px;
}

.w3310-container-wide {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* ===== Header Styles ===== */
.w3310-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--w3310-header-height);
  background: linear-gradient(135deg, var(--w3310-color-primary) 0%, #2a3d5c 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.w3310-header-hidden {
  transform: translateY(-100%);
}

.w3310-header-scrolled {
  background: rgba(27, 38, 59, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.w3310-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--w3310-color-text);
  font-size: 18px;
  font-weight: bold;
}

.w3310-logo i {
  font-size: 26px;
  color: var(--w3310-color-secondary);
}

.w3310-header-buttons {
  display: flex;
  gap: 10px;
}

.w3310-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.w3310-btn-register {
  background: linear-gradient(135deg, var(--w3310-color-secondary) 0%, #28a428 100%);
  color: white;
}

.w3310-btn-register:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(50, 205, 50, 0.4);
}

.w3310-btn-login {
  background: linear-gradient(135deg, var(--w3310-color-accent) 0%, #ff6600 100%);
  color: white;
}

.w3310-btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 128, 0, 0.4);
}

.w3310-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--w3310-color-text);
  font-size: 24px;
  cursor: pointer;
  padding: 5px;
}

/* ===== Mobile Menu ===== */
.w3310-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.w3310-overlay-active {
  opacity: 1;
  visibility: visible;
}

.w3310-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100vh;
  background: var(--w3310-color-bg-light);
  z-index: 9999;
  transition: right 0.3s ease;
  overflow-y: auto;
  padding: 20px 0;
}

.w3310-menu-open {
  right: 0;
}

.w3310-mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid var(--w3310-color-border);
  margin-bottom: 15px;
}

.w3310-mobile-menu-header h3 {
  font-size: 20px;
  color: var(--w3310-color-secondary);
}

.w3310-menu-close {
  background: none;
  border: none;
  color: var(--w3310-color-text);
  font-size: 24px;
  cursor: pointer;
  padding: 5px;
}

.w3310-menu-link {
  display: block;
  padding: 12px 20px;
  color: var(--w3310-color-text);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.2s ease;
}

.w3310-menu-link:hover {
  background: rgba(50, 205, 50, 0.1);
  color: var(--w3310-color-secondary);
  padding-left: 25px;
}

/* ===== Main Content ===== */
main {
  padding-top: var(--w3310-header-height);
  min-height: calc(100vh - var(--w3310-header-height) - var(--w3310-bottom-nav-height) - 200px);
}

@media (max-width: 768px) {
  main {
    padding-bottom: calc(var(--w3310-bottom-nav-height) + 20px);
  }
}

/* ===== Carousel ===== */
.w3310-carousel {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  margin-bottom: 30px;
  border-radius: 12px;
}

.w3310-carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.w3310-slide-active {
  opacity: 1;
}

.w3310-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

.w3310-carousel-indicators {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.w3310-carousel-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.w3310-indicator-active {
  background: var(--w3310-color-secondary);
  transform: scale(1.2);
}

/* ===== Game Categories ===== */
.w3310-category-section {
  margin-bottom: 40px;
}

.w3310-section-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--w3310-color-text);
  display: flex;
  align-items: center;
  gap: 10px;
}

.w3310-section-title i {
  color: var(--w3310-color-secondary);
}

.w3310-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.w3310-game-card {
  position: relative;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  background: var(--w3310-color-bg-light);
}

.w3310-game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.w3310-game-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.w3310-game-name {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
  padding: 8px;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  color: var(--w3310-color-text);
}

/* ===== Content Modules ===== */
.w3310-module {
  background: var(--w3310-color-bg-light);
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 25px;
  border: 1px solid var(--w3310-color-border);
}

.w3310-module-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--w3310-color-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.w3310-module-title i {
  color: var(--w3310-color-accent);
}

.w3310-module-content p {
  margin-bottom: 15px;
  color: var(--w3310-color-text-muted);
  line-height: 1.8;
}

.w3310-module-content ul {
  margin-left: 20px;
  margin-bottom: 15px;
}

.w3310-module-content li {
  margin-bottom: 8px;
  color: var(--w3310-color-text-muted);
}

.w3310-promo-link {
  color: var(--w3310-color-secondary);
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.3s ease;
}

.w3310-promo-link:hover {
  color: var(--w3310-color-accent);
  text-decoration: underline;
}

/* ===== Footer ===== */
.w3310-footer {
  background: var(--w3310-color-bg-light);
  border-top: 1px solid var(--w3310-color-border);
  padding: 40px 0 20px;
  margin-top: 50px;
}

.w3310-footer-section {
  margin-bottom: 30px;
}

.w3310-footer-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--w3310-color-secondary);
}

.w3310-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.w3310-footer-link {
  color: var(--w3310-color-text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.w3310-footer-link:hover {
  color: var(--w3310-color-secondary);
}

.w3310-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  margin-bottom: 20px;
}

.w3310-partner-logo {
  width: 60px;
  height: 40px;
  object-fit: contain;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.w3310-partner-logo:hover {
  opacity: 1;
}

.w3310-copyright {
  text-align: center;
  color: var(--w3310-color-text-muted);
  font-size: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--w3310-color-border);
}

/* ===== Bottom Navigation ===== */
.w3310-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--w3310-bottom-nav-height);
  background: linear-gradient(180deg, var(--w3310-color-primary) 0%, #0f1621 100%);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  border-top: 2px solid var(--w3310-color-secondary);
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.3);
}

.w3310-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 60px;
  min-height: 60px;
  text-decoration: none;
  color: var(--w3310-color-text-muted);
  transition: all 0.3s ease;
  padding: 8px 12px;
  border-radius: 8px;
}

.w3310-nav-item:hover {
  color: var(--w3310-color-secondary);
  background: rgba(50, 205, 50, 0.1);
  transform: translateY(-2px);
}

.w3310-nav-item.active {
  color: var(--w3310-color-secondary);
}

.w3310-nav-item i {
  font-size: 24px;
}

.w3310-nav-item span {
  font-size: 11px;
  font-weight: 500;
}

/* Hide bottom nav on desktop */
@media (min-width: 769px) {
  .w3310-bottom-nav {
    display: none;
  }

  main {
    padding-bottom: 20px;
  }
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 768px) {
  .w3310-header-buttons {
    display: none;
  }

  .w3310-menu-toggle {
    display: block;
  }

  .w3310-game-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .w3310-carousel {
    height: 180px;
  }

  .w3310-section-title {
    font-size: 20px;
  }

  .w3310-module {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .w3310-container {
    padding: 0 12px;
  }

  .w3310-game-grid {
    gap: 8px;
  }

  .w3310-game-name {
    font-size: 10px;
    padding: 6px;
  }
}

/* ===== Utility Classes ===== */
.w3310-text-center {
  text-align: center;
}

.w3310-mt-20 {
  margin-top: 20px;
}

.w3310-mb-20 {
  margin-bottom: 20px;
}

.w3310-highlight {
  color: var(--w3310-color-highlight);
  font-weight: bold;
}

.w3310-secondary {
  color: var(--w3310-color-secondary);
}

.w3310-accent {
  color: var(--w3310-color-accent);
}
