/**
 * JL365 - Main CSS Stylesheet
 * Mobile-first design with professional color palette
 */

/* CSS Variables */
:root {
  --w0ced-primary: #0097A7;
  --w0ced-primary-dark: #007C91;
  --w0ced-secondary: #20B2AA;
  --w0ced-accent: #8B7355;
  --w0ced-bg: #141414;
  --w0ced-bg-light: #1E1E1E;
  --w0ced-bg-lighter: #2A2A2A;
  --w0ced-text: #D3D3D3;
  --w0ced-text-light: #E0FFFF;
  --w0ced-text-muted: #999999;
  --w0ced-border: #333333;
  --w0ced-success: #20B2AA;
  --w0ced-warning: #FFA726;
  --w0ced-error: #EF5350;
}

/* 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, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.4rem;
  line-height: 1.6;
  color: var(--w0ced-text);
  background-color: var(--w0ced-bg);
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: var(--w0ced-primary);
  transition: color 0.3s ease;
}

a:hover {
  color: var(--w0ced-secondary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container */
.w0ced-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.w0ced-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--w0ced-bg-light);
  border-bottom: 1px solid var(--w0ced-border);
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.w0ced-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  max-width: 430px;
  margin: 0 auto;
}

.w0ced-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--w0ced-text-light);
}

.w0ced-logo img {
  width: 28px;
  height: 28px;
}

.w0ced-header-buttons {
  display: flex;
  gap: 0.5rem;
}

.w0ced-btn {
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-align: center;
}

.w0ced-btn-primary {
  background-color: var(--w0ced-primary);
  color: var(--w0ced-text-light);
}

.w0ced-btn-primary:hover {
  background-color: var(--w0ced-primary-dark);
  transform: translateY(-1px);
}

.w0ced-btn-secondary {
  background-color: var(--w0ced-bg-lighter);
  color: var(--w0ced-text-light);
  border: 1px solid var(--w0ced-primary);
}

.w0ced-btn-secondary:hover {
  background-color: var(--w0ced-primary);
  color: var(--w0ced-text-light);
}

.w0ced-menu-toggle {
  display: block;
  background: none;
  border: none;
  color: var(--w0ced-text-light);
  font-size: 1.8rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* Mobile Menu */
.w0ced-mobile-menu {
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  background-color: var(--w0ced-bg-light);
  border-bottom: 2px solid var(--w0ced-primary);
  z-index: 9999;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.w0ced-mobile-menu.w0ced-menu-open {
  max-height: 500px;
  overflow-y: auto;
}

.w0ced-mobile-menu a {
  display: block;
  padding: 1rem 1.5rem;
  color: var(--w0ced-text);
  border-bottom: 1px solid var(--w0ced-border);
  transition: all 0.3s ease;
}

.w0ced-mobile-menu a:hover {
  background-color: var(--w0ced-bg-lighter);
  color: var(--w0ced-primary);
  padding-left: 2rem;
}

/* Main Content */
main {
  margin-top: 60px;
  margin-bottom: 80px;
  padding: 1rem 0;
}

.w0ced-section {
  margin-bottom: 2rem;
}

.w0ced-section-title {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--w0ced-text-light);
  margin-bottom: 1rem;
  padding-left: 0.5rem;
  border-left: 4px solid var(--w0ced-primary);
}

/* Carousel */
.w0ced-carousel {
  position: relative;
  margin-bottom: 2rem;
  overflow: hidden;
  border-radius: 8px;
}

.w0ced-carousel-slide {
  display: none;
}

.w0ced-carousel-slide img {
  width: 100%;
  height: auto;
  cursor: pointer;
}

.w0ced-carousel-indicators {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
}

.w0ced-carousel-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.w0ced-carousel-indicator.w0ced-active {
  background-color: var(--w0ced-primary);
  width: 24px;
  border-radius: 4px;
}

/* Game Grid */
.w0ced-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.w0ced-game-item {
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.w0ced-game-item:hover {
  transform: scale(1.05);
}

.w0ced-game-icon {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 0.3rem;
  background-color: var(--w0ced-bg-lighter);
}

.w0ced-game-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.w0ced-game-name {
  font-size: 1rem;
  color: var(--w0ced-text);
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Cards */
.w0ced-card {
  background-color: var(--w0ced-bg-light);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  border: 1px solid var(--w0ced-border);
}

.w0ced-card-title {
  font-size: 1.6rem;
  font-weight: bold;
  color: var(--w0ced-text-light);
  margin-bottom: 1rem;
}

/* Footer */
.w0ced-footer {
  background-color: var(--w0ced-bg-light);
  border-top: 1px solid var(--w0ced-border);
  padding: 2rem 0 6rem;
}

.w0ced-footer-content {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
}

.w0ced-footer-description {
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: var(--w0ced-text);
}

.w0ced-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.w0ced-footer-link {
  font-size: 1.2rem;
  color: var(--w0ced-primary);
  padding: 0.3rem 0.8rem;
  background-color: var(--w0ced-bg-lighter);
  border-radius: 4px;
}

.w0ced-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.w0ced-partner-logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.w0ced-partner-logo:hover {
  opacity: 1;
}

.w0ced-copyright {
  text-align: center;
  font-size: 1.1rem;
  color: var(--w0ced-text-muted);
  margin-top: 1rem;
}

/* Bottom Navigation */
.w0ced-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--w0ced-bg-light);
  border-top: 2px solid var(--w0ced-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 60px;
  z-index: 1000;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.5);
}

.w0ced-bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  color: var(--w0ced-text-muted);
  transition: all 0.3s ease;
  padding: 0.5rem;
}

.w0ced-bottom-nav a:hover {
  color: var(--w0ced-primary);
  background-color: var(--w0ced-bg-lighter);
}

.w0ced-bottom-nav a.w0ced-active {
  color: var(--w0ced-primary);
}

.w0ced-bottom-nav-icon {
  font-size: 24px;
  margin-bottom: 2px;
}

.w0ced-bottom-nav-text {
  font-size: 10px;
  font-weight: 500;
}

/* Desktop Styles */
@media (min-width: 769px) {
  .w0ced-bottom-nav {
    display: none;
  }

  main {
    margin-bottom: 2rem;
  }

  .w0ced-menu-toggle {
    display: none;
  }
}

/* Utility Classes */
.w0ced-text-center {
  text-align: center;
}

.w0ced-mt-1 { margin-top: 1rem; }
.w0ced-mt-2 { margin-top: 2rem; }
.w0ced-mb-1 { margin-bottom: 1rem; }
.w0ced-mb-2 { margin-bottom: 2rem; }

.w0ced-promo-link {
  color: var(--w0ced-primary);
  font-weight: bold;
  text-decoration: underline;
  cursor: pointer;
}
