/**
 * jili 56 - Core CSS Layout
 * All classes use wea00 prefix for namespace isolation
 * Mobile-first responsive design
 */

/* CSS Variables */
:root {
  --wea00-primary: #FFB6C1;
  --wea00-secondary: #B03060;
  --we00-accent: #00FFFF;
  --wea00-highlight: #FF69B4;
  --wea00-dark: #141414;
  --wea00-darker: #0a0a0a;
  --wea00-light: #ffffff;
  --wea00-gray: #666666;
  --wea00-border: #333333;

  --wea00-font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --wea00-max-width: 430px;
  --wea00-header-height: 60px;
  --wea00-bottom-nav-height: 60px;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--wea00-font-primary);
  font-size: 1.6rem;
  line-height: 1.5;
  color: var(--wea00-light);
  background-color: var(--wea00-dark);
  overflow-x: hidden;
  min-height: 100vh;
}

/* Container */
.wea00-container {
  max-width: var(--wea00-max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.wea00-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--wea00-header-height);
  background: linear-gradient(135deg, var(--wea00-darker) 0%, var(--wea00-dark) 100%);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transition: all 0.3s ease;
}

.wea00-header.wea00-scrolled {
  box-shadow: 0 4px 20px rgba(255, 182, 193, 0.2);
}

.wea00-header-inner {
  max-width: var(--wea00-max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 1.5rem;
}

.wea00-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--wea00-primary);
  font-size: 1.8rem;
  font-weight: bold;
}

.wea00-logo img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.wea00-header-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.wea00-btn {
  padding: 0.6rem 1.5rem;
  border-radius: 20px;
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-decoration: none;
  display: inline-block;
}

.wea00-btn-primary {
  background: linear-gradient(135deg, var(--wea00-secondary) 0%, var(--wea00-highlight) 100%);
  color: var(--wea00-light);
  box-shadow: 0 2px 10px rgba(255, 105, 180, 0.3);
}

.wea00-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 105, 180, 0.5);
}

.wea00-btn-secondary {
  background: transparent;
  color: var(--wea00-primary);
  border: 2px solid var(--wea00-primary);
}

.wea00-btn-secondary:hover {
  background: var(--wea00-primary);
  color: var(--wea00-dark);
}

.wea00-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--wea00-primary);
  font-size: 2.4rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* Mobile Menu */
.wea00-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.wea00-menu-overlay.wea00-active {
  opacity: 1;
  visibility: visible;
}

.wea00-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 300px;
  height: 100vh;
  background: linear-gradient(180deg, var(--wea00-darker) 0%, var(--wea00-dark) 100%);
  z-index: 9999;
  transition: right 0.3s ease;
  padding: 2rem 0;
  overflow-y: auto;
}

.wea00-mobile-menu.wea00-active {
  right: 0;
}

.wea00-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1.5rem 2rem;
  border-bottom: 1px solid var(--wea00-border);
}

.wea00-menu-close {
  background: none;
  border: none;
  color: var(--wea00-light);
  font-size: 2.4rem;
  cursor: pointer;
  padding: 0.5rem;
}

.wea00-menu-nav {
  padding: 2rem 1.5rem;
}

.wea00-menu-nav a {
  display: block;
  color: var(--wea00-light);
  text-decoration: none;
  padding: 1rem 0;
  border-bottom: 1px solid var(--wea00-border);
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.wea00-menu-nav a:hover {
  color: var(--wea00-primary);
}

/* Main Content */
main {
  margin-top: var(--wea00-header-height);
  min-height: calc(100vh - var(--wea00-header-height) - var(--wea00-bottom-nav-height));
  padding-bottom: 80px;
}

/* Hero Carousel */
.wea00-carousel {
  position: relative;
  margin: 2rem 0;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.wea00-carousel-slides {
  display: flex;
  transition: transform 0.5s ease;
}

.wea00-carousel-slide {
  min-width: 100%;
  position: relative;
}

.wea00-carousel-slide img {
  width: 100%;
  height: auto;
  display: block;
}

/* Section */
.wea00-section {
  padding: 3rem 0;
  border-bottom: 1px solid var(--wea00-border);
}

.wea00-section-title {
  font-size: 2.2rem;
  color: var(--wea00-primary);
  margin-bottom: 2rem;
  text-align: center;
  font-weight: bold;
}

/* Game Grid */
.wea00-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.wea00-game-item {
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.wea00-game-item:hover {
  transform: scale(1.05);
}

.wea00-game-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 0.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.wea00-game-name {
  font-size: 1.1rem;
  color: var(--wea00-light);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Card */
.wea00-card {
  background: linear-gradient(135deg, rgba(255, 182, 193, 0.1) 0%, rgba(176, 48, 96, 0.1) 100%);
  border-radius: 15px;
  padding: 2rem;
  margin: 2rem 0;
  border: 1px solid var(--wea00-border);
}

.wea00-card-title {
  font-size: 1.8rem;
  color: var(--wea00-accent);
  margin-bottom: 1rem;
  font-weight: bold;
}

.wea00-card-content {
  font-size: 1.5rem;
  color: var(--wea00-light);
  line-height: 1.8;
}

/* Footer */
.wea00-footer {
  background: linear-gradient(180deg, var(--wea00-darker) 0%, #000 100%);
  padding: 3rem 0 8rem;
  border-top: 2px solid var(--wea00-secondary);
}

.wea00-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin: 2rem 0;
}

.wea00-footer-links a {
  color: var(--wea00-primary);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border: 1px solid var(--wea00-secondary);
  border-radius: 20px;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.wea00-footer-links a:hover {
  background: var(--wea00-secondary);
  color: var(--wea00-light);
}

.wea00-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin: 2rem 0;
  padding: 0 1rem;
}

.wea00-partners img {
  height: 30px;
  width: auto;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.wea00-partners img:hover {
  opacity: 1;
}

.wea00-copyright {
  text-align: center;
  color: var(--wea00-gray);
  font-size: 1.2rem;
  padding: 2rem 1rem 0;
  border-top: 1px solid var(--wea00-border);
  margin-top: 2rem;
}

/* Bottom Navigation (Mobile) */
.wea00-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--wea00-bottom-nav-height);
  background: linear-gradient(180deg, var(--wea00-dark) 0%, var(--wea00-darker) 100%);
  border-top: 2px solid var(--wea00-secondary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

.wea00-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  color: var(--wea00-gray);
  padding: 0.5rem;
  border-radius: 10px;
}

.wea00-nav-item:hover {
  color: var(--wea00-primary);
  transform: scale(1.1);
}

.wea00-nav-item.wea00-active {
  color: var(--wea00-primary);
}

.wea00-nav-icon {
  font-size: 2.2rem;
  margin-bottom: 0.3rem;
}

.wea00-nav-text {
  font-size: 1rem;
  font-weight: 500;
}

/* Responsive - Hide bottom nav on desktop */
@media (min-width: 769px) {
  .wea00-bottom-nav {
    display: none;
  }

  main {
    padding-bottom: 2rem;
  }
}

/* Responsive - Show menu toggle on mobile */
@media (max-width: 768px) {
  .wea00-menu-toggle {
    display: block;
  }

  .wea00-header-actions .wea00-btn {
    display: none;
  }
}

/* Utility Classes */
.wea00-text-center {
  text-align: center;
}

.wea00-mt-2 {
  margin-top: 2rem;
}

.wea00-mb-2 {
  margin-bottom: 2rem;
}

.wea00-promo-link {
  color: var(--wea00-accent);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.wea00-promo-link:hover {
  color: var(--wea00-primary);
  text-decoration: underline;
}
