/* 68win app - Main CSS Styles */
/* Version: 1.0 - Mobile-first responsive design */

/* Root variables with prefix */
:root {
  --wae2b-primary: #F5DEB3;
  --wae2b-secondary: #26A69A;
  --wae2b-accent: #00695C;
  --wae2b-light: #80CBC4;
  --wae2b-dark: #3A3A3A;
  --wae2b-white: #FFFFFF;
  --wae2b-text-primary: #2C2C2C;
  --wae2b-text-secondary: #666666;
  --wae2b-border: #E0E0E0;
  --wae2b-shadow: rgba(0, 0, 0, 0.1);
  --wae2b-gradient: linear-gradient(135deg, var(--wae2b-secondary), var(--wae2b-accent));
  --wae2b-transition: all 0.3s ease;
}

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

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

body {
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--wae2b-text-primary);
  background-color: var(--wae2b-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Container and layout */
.wae2b-container {
  max-width: 43rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

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

/* Header styles */
.wae2b-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001;
  background: linear-gradient(90deg, var(--wae2b-accent), var(--wae2b-secondary));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--wae2b-transition);
}

.wae2b-header.wae2b-scrolled {
  background: rgba(58, 58, 58, 0.95);
  box-shadow: 0 2px 20px var(--wae2b-shadow);
}

.wae2b-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 6rem;
  padding: 0 1.5rem;
}

.wae2b-logo {
  display: flex;
  align-items: center;
  color: var(--wae2b-white);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.8rem;
}

.wae2b-logo img {
  width: 3.2rem;
  height: 3.2rem;
  margin-right: 1rem;
  border-radius: 0.8rem;
}

.wae2b-header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.wae2b-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.6rem;
  border: none;
  border-radius: 2.5rem;
  font-size: 1.3rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: var(--wae2b-transition);
  min-height: 4.4rem;
  line-height: 1;
}

.wae2b-btn-primary {
  background: var(--wae2b-gradient);
  color: var(--wae2b-white);
  box-shadow: 0 4px 15px rgba(38, 166, 154, 0.3);
}

.wae2b-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(38, 166, 154, 0.4);
}

.wae2b-btn-secondary {
  background: transparent;
  color: var(--wae2b-white);
  border: 2px solid var(--wae2b-white);
}

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

.wae2b-menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.wae2b-menu-toggle span {
  display: block;
  width: 2.5rem;
  height: 0.3rem;
  background: var(--wae2b-white);
  margin: 0.3rem 0;
  transition: var(--wae2b-transition);
  border-radius: 0.15rem;
}

.wae2b-menu-toggle.wae2b-active span:nth-child(1) {
  transform: rotate(45deg) translate(0.6rem, 0.6rem);
}

.wae2b-menu-toggle.wae2b-active span:nth-child(2) {
  opacity: 0;
}

.wae2b-menu-toggle.wae2b-active span:nth-child(3) {
  transform: rotate(-45deg) translate(0.6rem, -0.6rem);
}

/* Mobile navigation */
.wae2b-mobile-menu {
  position: fixed;
  top: 6rem;
  left: 0;
  right: 0;
  background: var(--wae2b-dark);
  transform: translateY(-100%);
  transition: transform 0.3s ease-in-out;
  z-index: 999;
  max-height: calc(100vh - 6rem);
  overflow-y: auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  visibility: hidden;
}

.wae2b-mobile-menu.wae2b-active {
  transform: translateY(0);
  visibility: visible;
}

.wae2b-mobile-menu-list {
  list-style: none;
  padding: 1rem 0;
  margin: 0;
}

.wae2b-mobile-menu-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.wae2b-mobile-menu-item:last-child {
  border-bottom: none;
}

.wae2b-mobile-menu-link {
  display: flex;
  align-items: center;
  padding: 1.2rem 2rem;
  color: var(--wae2b-white);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.4rem;
  transition: all 0.2s ease;
  gap: 1rem;
}

.wae2b-mobile-menu-link i {
  font-size: 1.6rem;
  width: 2rem;
  text-align: center;
  opacity: 0.8;
}

.wae2b-mobile-menu-link:hover,
.wae2b-mobile-menu-link:active {
  background: rgba(38, 166, 154, 0.1);
  color: var(--wae2b-primary);
  transform: translateX(0.5rem);
}

.wae2b-mobile-menu-link:hover i,
.wae2b-mobile-menu-link:active i {
  opacity: 1;
  color: var(--wae2b-primary);
}

/* Hero section */
.wae2b-hero {
  background: var(--wae2b-gradient);
  color: var(--wae2b-white);
  padding: 3rem 0;
  text-align: center;
}

.wae2b-hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.wae2b-hero p {
  font-size: 1.6rem;
  margin-bottom: 2.5rem;
  opacity: 0.9;
}

/* Slider styles */
.wae2b-slider {
  position: relative;
  margin: 2rem 0;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 8px 30px var(--wae2b-shadow);
}

.wae2b-slider-container {
  position: relative;
  height: 20rem;
}

.wae2b-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
  cursor: pointer;
}

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

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

.wae2b-slider-indicators {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.8rem;
}

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

.wae2b-indicator.wae2b-active {
  background: var(--wae2b-white);
  transform: scale(1.2);
}

/* Section styles */
.wae2b-section {
  padding: 3rem 0;
}

.wae2b-section-title {
  font-size: 2.4rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2.5rem;
  color: var(--wae2b-accent);
  position: relative;
}

.wae2b-section-title::after {
  content: '';
  position: absolute;
  bottom: -0.8rem;
  left: 50%;
  transform: translateX(-50%);
  width: 6rem;
  height: 0.4rem;
  background: var(--wae2b-gradient);
  border-radius: 0.2rem;
}

/* Game grid */
.wae2b-games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.wae2b-game-card {
  background: var(--wae2b-white);
  border-radius: 1.2rem;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 4px 15px var(--wae2b-shadow);
  transition: var(--wae2b-transition);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.wae2b-game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.wae2b-game-card img {
  width: 100%;
  height: 6rem;
  object-fit: cover;
  border-radius: 0.8rem;
  margin-bottom: 0.8rem;
}

.wae2b-game-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--wae2b-text-primary);
  line-height: 1.3;
}

/* Category sections */
.wae2b-category {
  margin-bottom: 3rem;
}

.wae2b-category-title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--wae2b-accent);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.wae2b-category-title i {
  font-size: 2.4rem;
  color: var(--wae2b-secondary);
}

/* Content sections */
.wae2b-content {
  background: var(--wae2b-white);
  border-radius: 1.5rem;
  padding: 2.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 15px var(--wae2b-shadow);
}

.wae2b-content h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--wae2b-accent);
}

.wae2b-content h3 {
  font-size: 1.8rem;
  font-weight: 600;
  margin: 2rem 0 1rem;
  color: var(--wae2b-secondary);
}

.wae2b-content p {
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.wae2b-content ul {
  padding-left: 2rem;
  margin-bottom: 1.5rem;
}

.wae2b-content li {
  margin-bottom: 0.8rem;
}

/* Promo link styles */
.wae2b-promo-link {
  color: var(--wae2b-secondary);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: var(--wae2b-transition);
  cursor: pointer;
}

.wae2b-promo-link:hover {
  color: var(--wae2b-accent);
  border-bottom-color: var(--wae2b-accent);
}

/* FAQ styles */
.wae2b-faq {
  margin-bottom: 2rem;
}

.wae2b-faq-item {
  background: var(--wae2b-white);
  border-radius: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 10px var(--wae2b-shadow);
}

.wae2b-faq-question {
  font-weight: 600;
  padding: 1.5rem;
  color: var(--wae2b-accent);
  border-bottom: 1px solid var(--wae2b-border);
}

.wae2b-faq-answer {
  padding: 1.5rem;
  line-height: 1.6;
}

/* Footer styles */
.wae2b-footer {
  background: var(--wae2b-dark);
  color: var(--wae2b-white);
  padding: 3rem 0 1rem;
  margin-top: auto;
}

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

.wae2b-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.wae2b-footer-link {
  color: var(--wae2b-light);
  text-decoration: none;
  font-size: 1.3rem;
  transition: var(--wae2b-transition);
}

.wae2b-footer-link:hover {
  color: var(--wae2b-white);
}

.wae2b-partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin: 2rem 0;
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.wae2b-partner-logo {
  width: 4rem;
  height: 4rem;
  object-fit: contain;
  opacity: 0.7;
  transition: var(--wae2b-transition);
}

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

.wae2b-copyright {
  font-size: 1.2rem;
  opacity: 0.7;
  text-align: center;
}

/* Bottom navigation */
.wae2b-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--wae2b-white);
  border-top: 1px solid var(--wae2b-border);
  z-index: 1000;
  box-shadow: 0 -2px 10px var(--wae2b-shadow);
}

.wae2b-bottom-nav-content {
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 6rem;
  max-width: 43rem;
  margin: 0 auto;
}

.wae2b-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 0.5rem;
  text-decoration: none;
  color: var(--wae2b-text-secondary);
  transition: var(--wae2b-transition);
  min-height: 4.4rem;
}

.wae2b-bottom-nav-item.wae2b-active {
  color: var(--wae2b-secondary);
}

.wae2b-bottom-nav-item:hover {
  color: var(--wae2b-accent);
}

.wae2b-bottom-nav-item i {
  font-size: 2.4rem;
  margin-bottom: 0.4rem;
}

.wae2b-bottom-nav-item span {
  font-size: 1rem;
  font-weight: 500;
}

/* Utility classes */
.wae2b-text-center {
  text-align: center;
}

.wae2b-text-left {
  text-align: left;
}

.wae2b-text-right {
  text-align: right;
}

.wae2b-hidden {
  display: none;
}

.wae2b-visible {
  display: block;
}

.wae2b-mb-1 {
  margin-bottom: 1rem;
}

.wae2b-mb-2 {
  margin-bottom: 2rem;
}

.wae2b-mb-3 {
  margin-bottom: 3rem;
}

.wae2b-mt-1 {
  margin-top: 1rem;
}

.wae2b-mt-2 {
  margin-top: 2rem;
}

.wae2b-mt-3 {
  margin-top: 3rem;
}

/* Loading states */
.wae2b-loading {
  text-align: center;
  padding: 2rem;
  color: var(--wae2b-text-secondary);
}

.wae2b-loading i {
  margin-right: 0.5rem;
}

/* Error states */
.wae2b-error {
  border-color: #e74c3c !important;
  background-color: rgba(231, 76, 60, 0.1);
}

/* Toast notifications */
.wae2b-toast {
  position: fixed;
  bottom: 8rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--wae2b-accent);
  color: var(--wae2b-white);
  padding: 1rem 2rem;
  border-radius: 2.5rem;
  font-size: 1.4rem;
  z-index: 10000;
  animation: wae2btoastIn 0.3s ease-out;
}

@keyframes wae2btoastIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(2rem);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* Lazy loading */
.wae2b-lazy {
  opacity: 0;
  transition: opacity 0.3s;
}

/* Responsive design for larger screens */
@media (min-width: 48rem) {
  .wae2b-container {
    max-width: 120rem;
    padding: 0 3rem;
  }
  
  .wae2b-games-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  
  .wae2b-hero h1 {
    font-size: 4rem;
  }
  
  .wae2b-bottom-nav {
    display: none;
  }
  
  .wae2b-main {
    padding-bottom: 3rem;
  }
}

@media (min-width: 76.8rem) {
  .wae2b-games-grid {
    grid-template-columns: repeat(8, 1fr);
  }
}