/**
 * jl58 Mobile Theme - Core Styles
 * All classes use wc60e- prefix for namespace isolation
 * Color palette: #ADB5BD | #212F3D | #BF360C
 */

/* CSS Reset and Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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: #ADB5BD;
  background-color: #212F3D;
  min-height: 100vh;
  overflow-x: hidden;
}

/* CSS Variables */
:root {
  --wc60e-primary: #BF360C;
  --wc60e-primary-dark: #8c2600;
  --wc60e-bg: #212F3D;
  --wc60e-bg-light: #2a3d4f;
  --wc60e-bg-dark: #1a2530;
  --wc60e-text: #ADB5BD;
  --wc60e-text-light: #ffffff;
  --wc60e-text-muted: #6c757d;
  --wc60e-border: #34495e;
  --wc60e-shadow: rgba(0, 0, 0, 0.3);
  --wc60e-gradient: linear-gradient(135deg, #BF360C 0%, #8c2600 100%);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: #ffffff;
}

h1 { font-size: 2.4rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.6rem; }

p {
  margin-bottom: 1rem;
}

a {
  color: #BF360C;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #ff5722;
}

/* Layout */
.wc60e-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
}

.wc60e-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header Styles */
.wc60e-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: #1a2530;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  padding: 0.8rem 0;
}

.wc60e-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wc60e-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.8rem;
  font-weight: 700;
  color: #ffffff;
}

.wc60e-logo img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.wc60e-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem;
}

.wc60e-header-actions {
  display: flex;
  gap: 0.8rem;
}

.wc60e-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.2rem;
  font-size: 1.2rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.wc60e-btn-primary {
  background: var(--wc60e-gradient);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(191, 54, 12, 0.4);
}

.wc60e-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(191, 54, 12, 0.6);
}

.wc60e-btn-secondary {
  background: transparent;
  color: #BF360C;
  border: 2px solid #BF360C;
}

.wc60e-btn-secondary:hover {
  background: #BF360C;
  color: #ffffff;
}

/* Mobile Menu */
.wc60e-mobile-menu {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #1a2530;
  z-index: 9999;
  padding: 2rem;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.wc60e-mobile-menu.wc60e-menu-open {
  display: block;
  opacity: 1;
  visibility: visible;
}

.wc60e-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.wc60e-menu-link {
  display: flex;
  align-items: center;
  padding: 1rem;
  font-size: 1.6rem;
  color: #ADB5BD;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.wc60e-menu-link:hover {
  background-color: #2a3d4f;
  color: #BF360C;
}

.wc60e-menu-link i {
  margin-right: 1rem;
  font-size: 1.8rem;
}

/* Main Content */
.wc60e-main {
  padding-top: 70px;
  padding-bottom: 80px;
  min-height: 100vh;
}

/* Carousel */
.wc60e-carousel {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.wc60e-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.wc60e-slide-active {
  opacity: 1;
}

.wc60e-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Sections */
.wc60e-section {
  background-color: #2a3d4f;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.wc60e-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #BF360C;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.wc60e-section-title i {
  font-size: 2rem;
}

/* Game Grid */
.wc60e-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}

.wc60e-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.wc60e-game-item:hover {
  transform: scale(1.05);
}

.wc60e-game-icon {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 0.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.wc60e-game-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wc60e-game-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: #ADB5BD;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Cards */
.wc60e-card {
  background-color: #1a2530;
  border-radius: 10px;
  padding: 1.2rem;
  margin-bottom: 1rem;
  border: 1px solid #34495e;
}

.wc60e-card-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #BF360C;
  margin-bottom: 0.8rem;
}

/* Lists */
.wc60e-list {
  list-style: none;
}

.wc60e-list-item {
  padding: 1rem;
  border-bottom: 1px solid #34495e;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.wc60e-list-item:last-child {
  border-bottom: none;
}

.wc60e-list-icon {
  color: #BF360C;
  font-size: 1.5rem;
  margin-top: 0.2rem;
}

/* Footer */
.wc60e-footer {
  background-color: #1a2530;
  padding: 2rem 0 1rem;
  margin-top: 3rem;
  border-top: 2px solid #34495e;
}

.wc60e-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.wc60e-footer-link {
  font-size: 1.2rem;
  color: #ADB5BD;
  padding: 0.5rem 1rem;
  background-color: #2a3d4f;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.wc60e-footer-link:hover {
  background-color: #BF360C;
  color: #ffffff;
}

.wc60e-partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.wc60e-partner-logo {
  width: 60px;
  height: 30px;
  object-fit: contain;
  opacity: 0.7;
  filter: grayscale(100%);
  transition: all 0.3s ease;
}

.wc60e-partner-logo:hover {
  opacity: 1;
  filter: grayscale(0%);
}

.wc60e-copyright {
  text-align: center;
  font-size: 1.1rem;
  color: #6c757d;
  padding-top: 1rem;
  border-top: 1px solid #34495e;
}

/* Bottom Navigation */
.wc60e-bottom-nav {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #1a2530;
  border-top: 2px solid #BF360C;
  z-index: 1000;
  height: 60px;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.3);
}

.wc60e-bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  min-width: 60px;
  min-height: 60px;
}

.wc60e-bottom-nav-item:hover {
  background-color: #2a3d4f;
}

.wc60e-bottom-nav-item.wc60e-active {
  background-color: #BF360C;
}

.wc60e-bottom-nav-item.wc60e-active .wc60e-nav-icon,
.wc60e-bottom-nav-item.wc60e-active .wc60e-nav-text {
  color: #ffffff;
}

.wc60e-nav-icon {
  font-size: 22px;
  color: #ADB5BD;
  margin-bottom: 0.2rem;
  transition: all 0.3s ease;
}

.wc60e-nav-text {
  font-size: 10px;
  color: #ADB5BD;
  font-weight: 500;
  transition: all 0.3s ease;
}

/* Responsive */
@media (max-width: 768px) {
  .wc60e-menu-toggle {
    display: block;
  }

  .wc60e-header-actions {
    display: none;
  }

  .wc60e-bottom-nav {
    display: flex;
  }

  .wc60e-main {
    padding-bottom: 80px;
  }
}

@media (min-width: 769px) {
  .wc60e-bottom-nav {
    display: none;
  }

  .wc60e-main {
    padding-bottom: 2rem;
  }

  .wc60e-menu-toggle {
    display: none;
  }

  .wc60e-mobile-menu {
    display: none !important;
  }
}

/* Utility Classes */
.wc60e-text-center {
  text-align: center;
}

.wc60e-mt-1 { margin-top: 1rem; }
.wc60e-mt-2 { margin-top: 2rem; }
.wc60e-mb-1 { margin-bottom: 1rem; }
.wc60e-mb-2 { margin-bottom: 2rem; }

.wc60e-text-primary {
  color: #BF360C;
}

.wc60e-text-light {
  color: #ffffff;
}

.wc60e-bg-light {
  background-color: #2a3d4f;
}
