/* Jilimacao Theme CSS - All classes use w5755- prefix */

/* CSS Variables */
:root {
  --w5755-primary: #D2691E;
  --w5755-secondary: #1A1A2E;
  --w5755-bg: #F0F8FF;
  --w5755-accent: #5F9EA0;
  --w5755-brown: #6F4E37;
  --w5755-white: #FFFFFF;
  --w5755-transition: all 0.3s ease;
  --w5755-border-radius: 8px;
  --w5755-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  --w5755-gradient: linear-gradient(135deg, var(--w5755-primary), var(--w5755-accent));
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%; /* 1rem = 10px */
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--w5755-bg);
  color: var(--w5755-secondary);
  line-height: 1.5;
  font-size: 1.4rem;
  overflow-x: hidden;
}

/* Container Layouts */
.w5755-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.6rem;
  width: 100%;
}

.w5755-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.w5755-content {
  flex: 1;
  padding-bottom: 8rem; /* Space for bottom nav */
}

/* Header Styles */
.w5755-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--w5755-white);
  border-bottom: 1px solid rgba(210, 105, 30, 0.2);
  z-index: 1000;
  height: 6rem;
  box-shadow: var(--w5755-shadow);
}

.w5755-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 1.6rem;
}

.w5755-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--w5755-secondary);
}

.w5755-logo img {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
}

.w5755-logo-text {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--w5755-primary);
}

.w5755-nav-buttons {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

.w5755-menu-btn {
  background: none;
  border: none;
  color: var(--w5755-secondary);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.4rem;
  transition: var(--w5755-transition);
}

.w5755-menu-btn:hover {
  color: var(--w5755-primary);
}

/* Mobile Menu */
.w5755-mobile-menu {
  position: fixed;
  top: 6rem;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(26, 26, 46, 0.98);
  backdrop-filter: blur(10px);
  transform: translateX(-100%);
  transition: var(--w5755-transition);
  z-index: 999;
  overflow-y: auto;
}

.w5755-menu-active {
  transform: translateX(0);
}

.w5755-menu-list {
  list-style: none;
  padding: 2rem 1.6rem;
}

.w5755-menu-item {
  margin-bottom: 1rem;
}

.w5755-menu-link {
  display: block;
  padding: 1.2rem 0;
  color: var(--w5755-white);
  text-decoration: none;
  font-size: 1.6rem;
  border-bottom: 1px solid rgba(210, 105, 30, 0.2);
  transition: var(--w5755-transition);
}

.w5755-menu-link:hover {
  color: var(--w5755-primary);
  padding-left: 1rem;
}

/* Button Styles */
.w5755-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 1rem 2rem;
  background: var(--w5755-gradient);
  color: var(--w5755-white);
  text-decoration: none;
  border-radius: var(--w5755-border-radius);
  font-weight: 600;
  font-size: 1.4rem;
  border: none;
  cursor: pointer;
  transition: var(--w5755-transition);
  min-height: 4.4rem;
  text-align: center;
  box-shadow: var(--w5755-shadow);
}

.w5755-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(210, 105, 30, 0.3);
}

.w5755-btn-secondary {
  background: var(--w5755-accent);
  color: var(--w5755-white);
}

.w5755-btn-outline {
  background: transparent;
  border: 2px solid var(--w5755-primary);
  color: var(--w5755-primary);
}

/* Main Content */
.w5755-main {
  margin-top: 6rem;
  padding: 2rem 0;
}

/* Carousel Styles */
.w5755-carousel {
  position: relative;
  width: 100%;
  height: 20rem;
  overflow: hidden;
  border-radius: var(--w5755-border-radius);
  margin-bottom: 2rem;
}

.w5755-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
  cursor: pointer;
}

.w5755-slide.w5755-active {
  opacity: 1;
}

.w5755-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.w5755-carousel-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.8rem;
}

.w5755-dot {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: var(--w5755-transition);
}

.w5755-dot.w5755-active {
  background: var(--w5755-primary);
}

/* Game Grid */
.w5755-game-section {
  margin-bottom: 3rem;
}

.w5755-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--w5755-primary);
  margin-bottom: 1.5rem;
  text-align: center;
}

.w5755-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.w5755-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--w5755-secondary);
  padding: 1rem;
  border-radius: var(--w5755-border-radius);
  background: var(--w5755-white);
  transition: var(--w5755-transition);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.w5755-game-item:hover {
  background: rgba(210, 105, 30, 0.1);
  transform: translateY(-2px);
  box-shadow: var(--w5755-shadow);
}

.w5755-game-icon {
  width: 4rem;
  height: 4rem;
  border-radius: var(--w5755-border-radius);
  margin-bottom: 0.8rem;
  object-fit: cover;
}

.w5755-game-name {
  font-size: 1.1rem;
  text-align: center;
  line-height: 1.2;
  font-weight: 500;
}

/* Content Sections */
.w5755-section {
  margin-bottom: 3rem;
  padding: 2rem;
  background: var(--w5755-white);
  border-radius: var(--w5755-border-radius);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.w5755-section h2 {
  font-size: 2.2rem;
  color: var(--w5755-primary);
  margin-bottom: 1.5rem;
}

.w5755-section h3 {
  font-size: 1.8rem;
  color: var(--w5755-accent);
  margin-bottom: 1rem;
}

.w5755-section p {
  line-height: 1.6;
  margin-bottom: 1.5rem;
  color: var(--w5755-secondary);
}

.w5755-section ul {
  list-style: none;
  padding-left: 0;
}

.w5755-section li {
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(210, 105, 30, 0.2);
  color: var(--w5755-secondary);
}

.w5755-section li:before {
  content: "⭐";
  color: var(--w5755-primary);
  margin-right: 0.8rem;
}

/* Promotional Links */
.w5755-promo-link {
  color: var(--w5755-primary);
  text-decoration: none;
  font-weight: 600;
  transition: var(--w5755-transition);
}

.w5755-promo-link:hover {
  color: var(--w5755-accent);
  text-decoration: underline;
}

/* Bottom Navigation */
.w5755-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--w5755-white);
  border-top: 1px solid rgba(210, 105, 30, 0.2);
  display: flex;
  justify-content: space-around;
  padding: 0.8rem 0;
  z-index: 100;
  height: 6.4rem;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
}

.w5755-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--w5755-secondary);
  transition: var(--w5755-transition);
  padding: 0.4rem;
  border-radius: 0.8rem;
  min-width: 4.4rem;
  cursor: pointer;
}

.w5755-nav-item:hover {
  color: var(--w5755-primary);
  background: rgba(210, 105, 30, 0.1);
}

.w5755-nav-item.w5755-active {
  color: var(--w5755-primary);
}

.w5755-nav-icon {
  font-size: 2.2rem;
  margin-bottom: 0.2rem;
}

.w5755-nav-text {
  font-size: 1rem;
  font-weight: 500;
}

/* Footer */
.w5755-footer {
  background: var(--w5755-secondary);
  color: var(--w5755-white);
  padding: 3rem 0 8rem;
  margin-top: 4rem;
}

.w5755-footer h3 {
  color: var(--w5755-primary);
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.w5755-footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.w5755-footer-link {
  color: var(--w5755-white);
  text-decoration: none;
  padding: 0.8rem;
  border-radius: var(--w5755-border-radius);
  background: rgba(210, 105, 30, 0.1);
  transition: var(--w5755-transition);
  font-size: 1.3rem;
}

.w5755-footer-link:hover {
  color: var(--w5755-primary);
  background: rgba(210, 105, 30, 0.2);
}

.w5755-partners {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.w5755-partner-logo {
  width: 100%;
  height: 3rem;
  object-fit: contain;
  opacity: 0.7;
  transition: var(--w5755-transition);
}

.w5755-partner-logo:hover {
  opacity: 1;
}

.w5755-copyright {
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.2rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(210, 105, 30, 0.2);
}

/* Loading Animation */
.w5755-loader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(26, 26, 46, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.w5755-spinner {
  width: 4rem;
  height: 4rem;
  border: 4px solid rgba(210, 105, 30, 0.2);
  border-top: 4px solid var(--w5755-primary);
  border-radius: 50%;
  animation: w5755-spin 1s linear infinite;
}

@keyframes w5755-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 480px) {
  .w5755-container {
    padding: 0 1.2rem;
  }
  
  .w5755-game-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
  }
  
  .w5755-game-icon {
    width: 3.5rem;
    height: 3.5rem;
  }
  
  .w5755-game-name {
    font-size: 1rem;
  }
  
  .w5755-section {
    padding: 1.5rem;
  }
  
  .w5755-partners {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 360px) {
  .w5755-game-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .w5755-bottom-nav {
    padding: 0.6rem 0;
  }
  
  .w5755-nav-icon {
    font-size: 2rem;
  }
  
  .w5755-nav-text {
    font-size: 0.9rem;
  }
}

/* Utility Classes */
.w5755-text-center { text-align: center; }
.w5755-text-primary { color: var(--w5755-primary); }
.w5755-text-accent { color: var(--w5755-accent); }
.w5755-mb-1 { margin-bottom: 1rem; }
.w5755-mb-2 { margin-bottom: 2rem; }
.w5755-mt-1 { margin-top: 1rem; }
.w5755-mt-2 { margin-top: 2rem; }
.w5755-hidden { display: none; }
.w5755-visible { display: block; }

/* Animation Classes */
.w5755-fade-in {
  animation: w5755-fadeIn 0.5s ease-in;
}

@keyframes w5755-fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.w5755-scale-hover {
  transition: transform 0.2s ease;
}

.w5755-scale-hover:hover {
  transform: scale(1.05);
}