/* DailyJili Mobile Gaming Platform - Core CSS */
/* Prefix: w9482- */

/* CSS Variables */
:root {
  --w9482-primary: #3CB371;
  --w9482-secondary: #20B2AA;
  --w9482-accent: #FFFFBA;
  --w9482-dark: #0A0A0A;
  --w9482-light: #F5F5F5;
  --w9482-text-primary: #F5F5F5;
  --w9482-text-secondary: #FFFFBA;
  --w9482-bg-primary: #0A0A0A;
  --w9482-bg-secondary: #1a1a1a;
  --w9482-border: #333;
  --w9482-shadow: rgba(60, 179, 113, 0.2);
  --w9482-gradient: linear-gradient(135deg, #3CB371, #20B2AA);
  --w9482-font-size-base: 1.6rem;
  --w9482-font-size-small: 1.2rem;
  --w9482-font-size-large: 2rem;
  --w9482-border-radius: 0.8rem;
  --w9482-spacing-small: 0.8rem;
  --w9482-spacing-medium: 1.6rem;
  --w9482-spacing-large: 2.4rem;
}

/* Base Styles */
html {
  font-size: 62.5%;
}

body {
  font-family: 'Roboto', 'Arial', sans-serif;
  font-size: var(--w9482-font-size-base);
  line-height: 1.5;
  color: var(--w9482-text-primary);
  background-color: var(--w9482-bg-primary);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

* {
  box-sizing: border-box;
}

/* Container and Layout */
.w9482-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 var(--w9482-spacing-small);
  position: relative;
}

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

.w9482-main {
  flex: 1;
  padding-top: 7rem;
  padding-bottom: 8rem;
}

/* Header and Navigation */
.w9482-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, var(--w9482-dark), #1a1a1a);
  border-bottom: 1px solid var(--w9482-border);
  backdrop-filter: blur(10px);
}

.w9482-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem var(--w9482-spacing-small);
  height: 6rem;
}

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

.w9482-logo-img {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
}

.w9482-logo-text {
  font-size: 1.8rem;
  font-weight: bold;
  background: var(--w9482-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.w9482-nav-actions {
  display: flex;
  align-items: center;
  gap: var(--w9482-spacing-small);
}

.w9482-btn {
  padding: 0.8rem 1.6rem;
  border: none;
  border-radius: var(--w9482-border-radius);
  font-size: var(--w9482-font-size-small);
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 44px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.w9482-btn-primary {
  background: var(--w9482-gradient);
  color: var(--w9482-dark);
  box-shadow: 0 4px 15px var(--w9482-shadow);
}

.w9482-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--w9482-shadow);
}

.w9482-btn-secondary {
  background: transparent;
  color: var(--w9482-text-primary);
  border: 1px solid var(--w9482-primary);
}

.w9482-btn-secondary:hover {
  background: var(--w9482-primary);
  color: var(--w9482-dark);
}

.w9482-menu-toggle {
  background: none;
  border: none;
  color: var(--w9482-text-primary);
  font-size: 2.4rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--w9482-border-radius);
  transition: all 0.3s ease;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.w9482-menu-toggle:hover {
  background: var(--w9482-bg-secondary);
  color: var(--w9482-primary);
}

/* Mobile Menu Overlay */
.w9482-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.w9482-menu-overlay.w9482-active {
  opacity: 1;
  visibility: visible;
}

.w9482-menu-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 90%;
  max-width: 350px;
}

.w9482-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--w9482-spacing-medium);
}

.w9482-menu-item a {
  color: var(--w9482-text-primary);
  text-decoration: none;
  font-size: 1.8rem;
  font-weight: 500;
  padding: var(--w9482-spacing-small);
  border-radius: var(--w9482-border-radius);
  transition: all 0.3s ease;
  display: block;
  border: 1px solid transparent;
}

.w9482-menu-item a:hover {
  color: var(--w9482-primary);
  border-color: var(--w9482-primary);
  background: rgba(60, 179, 113, 0.1);
}

/* Carousel */
.w9482-carousel-container {
  position: relative;
  margin: var(--w9482-spacing-medium) 0;
  border-radius: var(--w9482-border-radius);
  overflow: hidden;
  height: 200px;
}

.w9482-carousel {
  position: relative;
  width: 100%;
  height: 100%;
}

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

.w9482-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--w9482-border-radius);
}

.w9482-carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  border: none;
  color: white;
  font-size: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.w9482-carousel-prev {
  left: 1rem;
}

.w9482-carousel-next {
  right: 1rem;
}

.w9482-carousel-nav:hover {
  background: var(--w9482-primary);
}

/* Game Grid */
.w9482-games-section {
  margin: var(--w9482-spacing-large) 0;
}

.w9482-section-title {
  font-size: var(--w9482-font-size-large);
  font-weight: bold;
  margin-bottom: var(--w9482-spacing-medium);
  text-align: center;
  background: var(--w9482-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.w9482-games-category {
  margin-bottom: var(--w9482-spacing-large);
}

.w9482-category-title {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: var(--w9482-spacing-small);
  color: var(--w9482-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.w9482-games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: var(--w9482-spacing-small);
  padding: var(--w9482-spacing-small);
  background: var(--w9482-bg-secondary);
  border-radius: var(--w9482-border-radius);
  border: 1px solid var(--w9482-border);
}

.w9482-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--w9482-text-primary);
  padding: var(--w9482-spacing-small);
  border-radius: var(--w9482-border-radius);
  transition: all 0.3s ease;
  background: var(--w9482-bg-primary);
  border: 1px solid transparent;
  cursor: pointer;
  min-height: 100px;
}

.w9482-game-item:hover {
  transform: translateY(-3px);
  border-color: var(--w9482-primary);
  box-shadow: 0 5px 15px var(--w9482-shadow);
  background: rgba(60, 179, 113, 0.1);
}

.w9482-game-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--w9482-border-radius);
  margin-bottom: 0.5rem;
  object-fit: cover;
  border: 2px solid var(--w9482-border);
}

.w9482-game-name {
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Content Sections */
.w9482-content-section {
  margin: var(--w9482-spacing-large) 0;
  padding: var(--w9482-spacing-medium);
  background: var(--w9482-bg-secondary);
  border-radius: var(--w9482-border-radius);
  border: 1px solid var(--w9482-border);
}

.w9482-content-section h2 {
  color: var(--w9482-primary);
  margin-bottom: var(--w9482-spacing-medium);
  font-size: 2rem;
  font-weight: bold;
}

.w9482-content-section h3 {
  color: var(--w9482-secondary);
  margin: var(--w9482-spacing-medium) 0 var(--w9482-spacing-small) 0;
  font-size: 1.6rem;
}

.w9482-content-section p {
  line-height: 1.6;
  margin-bottom: var(--w9482-spacing-small);
  color: var(--w9482-text-primary);
}

.w9482-content-section ul {
  padding-left: var(--w9482-spacing-medium);
}

.w9482-content-section li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

/* Bottom Navigation */
.w9482-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--w9482-dark), #1a1a1a);
  border-top: 1px solid var(--w9482-border);
  z-index: 999;
  backdrop-filter: blur(10px);
}

.w9482-bottom-nav-list {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  height: 6.4rem;
}

.w9482-bottom-nav-item {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.w9482-bottom-nav-item a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--w9482-text-secondary);
  font-size: 1rem;
  font-weight: 500;
  padding: 0.8rem;
  transition: all 0.3s ease;
  min-width: 44px;
  min-height: 44px;
  border-radius: var(--w9482-border-radius);
}

.w9482-bottom-nav-item.w9482-active a,
.w9482-bottom-nav-item a:hover {
  color: var(--w9482-primary);
  background: rgba(60, 179, 113, 0.1);
}

.w9482-bottom-nav-icon {
  font-size: 2rem;
  margin-bottom: 0.2rem;
}

.w9482-bottom-nav-text {
  font-size: 1rem;
  line-height: 1;
}

/* Footer */
.w9482-footer {
  background: var(--w9482-bg-secondary);
  padding: var(--w9482-spacing-large) 0;
  margin-top: var(--w9482-spacing-large);
  border-top: 1px solid var(--w9482-border);
}

.w9482-footer-content {
  text-align: center;
}

.w9482-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--w9482-spacing-medium);
  margin-bottom: var(--w9482-spacing-medium);
}

.w9482-footer-links a {
  color: var(--w9482-text-secondary);
  text-decoration: none;
  font-size: var(--w9482-font-size-small);
  transition: color 0.3s ease;
}

.w9482-footer-links a:hover {
  color: var(--w9482-primary);
}

.w9482-partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--w9482-spacing-small);
  margin: var(--w9482-spacing-medium) 0;
}

.w9482-partner-logo {
  width: 40px;
  height: 40px;
  border-radius: var(--w9482-border-radius);
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

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

.w9482-copyright {
  font-size: var(--w9482-font-size-small);
  color: var(--w9482-text-secondary);
  margin-top: var(--w9482-spacing-medium);
}

/* Utility Classes */
.w9482-text-center {
  text-align: center;
}

.w9482-text-primary {
  color: var(--w9482-primary);
}

.w9482-text-secondary {
  color: var(--w9482-secondary);
}

.w9482-bg-gradient {
  background: var(--w9482-gradient);
}

.w9482-mt-small {
  margin-top: var(--w9482-spacing-small);
}

.w9482-mb-small {
  margin-bottom: var(--w9482-spacing-small);
}

.w9482-mt-medium {
  margin-top: var(--w9482-spacing-medium);
}

.w9482-mb-medium {
  margin-bottom: var(--w9482-spacing-medium);
}

.w9482-hidden {
  display: none;
}

.w9482-visible {
  display: block;
}

/* Loading Spinner */
.w9482-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--w9482-bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.w9482-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--w9482-border);
  border-top: 4px solid var(--w9482-primary);
  border-radius: 50%;
  animation: w9482-spin 1s linear infinite;
}

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

/* Scroll to Top Button */
.w9482-scroll-top {
  position: fixed;
  bottom: 8rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background: var(--w9482-gradient);
  color: var(--w9482-dark);
  border: none;
  border-radius: 50%;
  font-size: 2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}

.w9482-scroll-top.w9482-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.w9482-scroll-top:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px var(--w9482-shadow);
}

/* Responsive Design */
@media (max-width: 380px) {
  .w9482-container {
    padding: 0 0.5rem;
  }

  .w9482-nav {
    padding: 1rem 0.5rem;
  }

  .w9482-games-grid {
    grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
    gap: 0.5rem;
  }

  .w9482-game-icon {
    width: 40px;
    height: 40px;
  }

  .w9482-bottom-nav-icon {
    font-size: 1.8rem;
  }

  .w9482-bottom-nav-text {
    font-size: 0.9rem;
  }
}

/* Prevent body scroll when menu is open */
body.w9482-menu-open {
  overflow: hidden;
}