/* JiliCrown Gaming Platform - Core CSS Design System */
/* All classes prefixed with w7ee5- to avoid conflicts */

/* CSS Variables */
:root {
  --w7ee5-primary: #FFAA00;
  --w7ee5-secondary: #FFCC02;
  --w7ee5-dark: #0F0F23;
  --w7ee5-purple: #7B68EE;
  --w7ee5-accent: #FF4500;
  --w7ee5-light: #FFFFFF;
  --w7ee5-gradient: linear-gradient(135deg, #FFAA00, #FFCC02);
  --w7ee5-shadow: rgba(255, 170, 0, 0.2);
  --w7ee5-border-radius: 0.8rem;
  --w7ee5-transition: all 0.3s ease;
  font-size: 62.5%;
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1.6rem;
  line-height: 1.5;
  color: var(--w7ee5-light);
  background: var(--w7ee5-dark);
  overflow-x: hidden;
}

/* Layout Components */
.w7ee5-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
  position: relative;
}

.w7ee5-wrapper {
  min-height: 100vh;
  padding-top: 7rem;
  padding-bottom: 8rem;
}

.w7ee5-grid {
  display: grid;
  gap: 1rem;
}

.w7ee5-flex {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Header and Navigation */
.w7ee5-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--w7ee5-gradient);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1rem;
  box-shadow: 0 2px 20px var(--w7ee5-shadow);
}

.w7ee5-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 430px;
  margin: 0 auto;
}

.w7ee5-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--w7ee5-dark);
  font-weight: bold;
  font-size: 1.8rem;
  text-decoration: none;
}

.w7ee5-logo-icon {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  background: var(--w7ee5-light);
  padding: 0.4rem;
}

.w7ee5-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.w7ee5-btn {
  padding: 0.8rem 1.6rem;
  background: var(--w7ee5-accent);
  color: var(--w7ee5-light);
  border: none;
  border-radius: var(--w7ee5-border-radius);
  font-weight: 600;
  font-size: 1.4rem;
  cursor: pointer;
  transition: var(--w7ee5-transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 4.4rem;
}

.w7ee5-btn:hover, .w7ee5-btn:focus {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px var(--w7ee5-shadow);
}

.w7ee5-btn-primary {
  background: var(--w7ee5-primary);
  color: var(--w7ee5-dark);
}

.w7ee5-btn-secondary {
  background: var(--w7ee5-secondary);
  color: var(--w7ee5-dark);
}

.w7ee5-hamburger {
  background: none;
  border: none;
  font-size: 2.4rem;
  color: var(--w7ee5-dark);
  cursor: pointer;
  padding: 0.5rem;
  min-height: 4.4rem;
  min-width: 4.4rem;
}

/* Mobile Menu */
.w7ee5-mobile-menu {
  position: fixed;
  top: 7rem;
  left: 0;
  right: 0;
  width: 100%;
  background: var(--w7ee5-light);
  transform: translateY(-100%);
  transition: var(--w7ee5-transition);
  z-index: 999;
  max-height: calc(100vh - 7rem);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
}

.w7ee5-menu-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  box-shadow: 0 5px 25px var(--w7ee5-shadow);
}

.w7ee5-menu-closed {
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  box-shadow: none;
}

.w7ee5-menu-list {
  list-style: none;
  padding: 2rem 0;
}

.w7ee5-menu-item {
  border-bottom: 1px solid #f0f0f0;
}

.w7ee5-menu-link {
  display: block;
  padding: 1.5rem 2rem;
  color: var(--w7ee5-dark);
  text-decoration: none;
  font-size: 1.6rem;
  transition: var(--w7ee5-transition);
}

.w7ee5-menu-link:hover {
  background: var(--w7ee5-gradient);
  color: var(--w7ee5-dark);
}

/* Carousel/Slider */
.w7ee5-carousel {
  position: relative;
  border-radius: var(--w7ee5-border-radius);
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: 0 5px 25px var(--w7ee5-shadow);
  cursor: pointer;
}

.w7ee5-slide {
  display: none;
  width: 100%;
  height: 20rem;
  background-size: cover;
  background-position: center;
  position: relative;
}

.w7ee5-slide.w7ee5-active {
  display: block;
}

.w7ee5-slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
}

.w7ee5-slide-content {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  color: var(--w7ee5-light);
  z-index: 2;
}

.w7ee5-dots {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

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

.w7ee5-dot.w7ee5-active, .w7ee5-dot:hover {
  background: var(--w7ee5-primary);
}

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

.w7ee5-section-title {
  font-size: 2.4rem;
  font-weight: bold;
  color: var(--w7ee5-primary);
  margin-bottom: 2rem;
  text-align: center;
  background: var(--w7ee5-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.w7ee5-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 1rem 0;
}

.w7ee5-game-item {
  background: var(--w7ee5-light);
  border-radius: var(--w7ee5-border-radius);
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  transition: var(--w7ee5-transition);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  min-height: 12rem;
}

.w7ee5-game-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 25px var(--w7ee5-shadow);
}

.w7ee5-game-image {
  width: 6rem;
  height: 6rem;
  border-radius: var(--w7ee5-border-radius);
  object-fit: cover;
  margin-bottom: 0.8rem;
  transition: var(--w7ee5-transition);
  opacity: 0;
}

.w7ee5-game-image.w7ee5-loaded {
  opacity: 1;
}

.w7ee5-game-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--w7ee5-dark);
  line-height: 1.3;
}

/* Content Sections */
.w7ee5-content-section {
  background: rgba(255, 170, 0, 0.1);
  border-radius: var(--w7ee5-border-radius);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 170, 0, 0.2);
}

.w7ee5-content-title {
  font-size: 2rem;
  font-weight: bold;
  color: var(--w7ee5-primary);
  margin-bottom: 1.5rem;
}

.w7ee5-content-text {
  color: var(--w7ee5-light);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.w7ee5-feature-list {
  list-style: none;
  margin-bottom: 2rem;
}

.w7ee5-feature-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1rem;
  background: linear-gradient(135deg, rgba(255, 170, 0, 0.1), rgba(255, 204, 2, 0.1));
  border-radius: var(--w7ee5-border-radius);
}

.w7ee5-feature-icon {
  font-size: 2rem;
  color: var(--w7ee5-primary);
}

/* Promotional Elements */
.w7ee5-promo-btn, .w7ee5-play-btn {
  background: var(--w7ee5-gradient);
  color: var(--w7ee5-dark);
  padding: 1.2rem 2.4rem;
  border-radius: var(--w7ee5-border-radius);
  font-weight: 600;
  font-size: 1.6rem;
  text-decoration: none;
  display: inline-block;
  transition: var(--w7ee5-transition);
  margin: 1rem 0;
  text-align: center;
  min-height: 4.4rem;
  line-height: 1.2;
  border: none;
  cursor: pointer;
}

.w7ee5-promo-btn:hover, .w7ee5-play-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px var(--w7ee5-shadow);
}

.w7ee5-promo-link {
  color: var(--w7ee5-primary);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--w7ee5-primary);
  transition: var(--w7ee5-transition);
  cursor: pointer;
}

.w7ee5-promo-link:hover {
  color: var(--w7ee5-secondary);
  border-color: var(--w7ee5-secondary);
}

/* Bottom Navigation */
.w7ee5-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--w7ee5-dark);
  border-top: 1px solid rgba(255, 170, 0, 0.3);
  z-index: 1000;
  padding: 0.8rem 0;
  box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.3);
}

.w7ee5-bottom-nav-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  max-width: 430px;
  margin: 0 auto;
}

.w7ee5-bottom-nav-item {
  flex: 1;
  text-align: center;
  transition: var(--w7ee5-transition);
}

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

.w7ee5-bottom-nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: inherit;
  text-decoration: none;
  padding: 0.5rem;
  min-height: 4.4rem;
  justify-content: center;
}

.w7ee5-bottom-nav-icon {
  font-size: 2.4rem;
}

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

/* Footer */
.w7ee5-footer {
  background: var(--w7ee5-dark);
  color: var(--w7ee5-light);
  padding: 3rem 1rem 2rem;
  margin-top: 4rem;
  border-top: 2px solid var(--w7ee5-primary);
}

.w7ee5-footer-content {
  max-width: 430px;
  margin: 0 auto;
}

.w7ee5-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.w7ee5-footer-link {
  color: var(--w7ee5-secondary);
  text-decoration: none;
  font-size: 1.4rem;
  transition: var(--w7ee5-transition);
}

.w7ee5-footer-link:hover {
  color: var(--w7ee5-primary);
}

.w7ee5-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.w7ee5-partner-icon {
  width: 4rem;
  height: 4rem;
  border-radius: var(--w7ee5-border-radius);
  opacity: 0.7;
  transition: var(--w7ee5-transition);
}

.w7ee5-partner-icon:hover {
  opacity: 1;
}

.w7ee5-copyright {
  text-align: center;
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Loading Animation */
.w7ee5-loader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--w7ee5-gradient);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  color: var(--w7ee5-dark);
}

.w7ee5-spinner {
  width: 4rem;
  height: 4rem;
  border: 3px solid rgba(15, 15, 35, 0.3);
  border-top: 3px solid var(--w7ee5-dark);
  border-radius: 50%;
  animation: w7ee5-spin 1s linear infinite;
  margin-bottom: 1rem;
}

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

/* Touch Device Optimizations */
.w7ee5-touch-device .w7ee5-btn,
.w7ee5-touch-device .w7ee5-game-item,
.w7ee5-touch-device .w7ee5-promo-btn {
  transition: none;
}

.w7ee5-touch-device .w7ee5-btn:active {
  transform: scale(0.95);
}

/* Responsive Design */
@media (max-width: 375px) {
  .w7ee5-container {
    padding: 0 0.8rem;
  }
  
  .w7ee5-game-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .w7ee5-btn {
    padding: 0.6rem 1.2rem;
    font-size: 1.3rem;
  }
}

@media (max-width: 320px) {
  .w7ee5-game-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .w7ee5-game-image {
    width: 5rem;
    height: 5rem;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  :root {
    --w7ee5-shadow: rgba(0, 0, 0, 0.8);
  }
  
  .w7ee5-btn, .w7ee5-game-item {
    border: 2px solid var(--w7ee5-primary);
  }
}