/**
 * Bet100 App - Core Theme Styles
 * Mobile-first responsive design for bet100app.sbs
 * Author: bet100 app
 */

/* CSS Variables */
:root {
  --w6df7-primary: #5F9EA0;
  --w6df7-secondary: #DB7093;
  --w6df7-accent: #E9967A;
  --w6df7-accent2: #CD853F;
  --w6df7-dark: #262626;
  --w6df7-light: #ffffff;
  --w6df7-gray: #f5f5f5;
  --w6df7-border: #e0e0e0;
  --w6df7-shadow: rgba(0, 0, 0, 0.1);
  --w6df7-gradient: linear-gradient(135deg, var(--w6df7-primary), var(--w6df7-secondary));
  --w6df7-transition: all 0.3s ease;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%; /* 10px base for rem calculations */
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.5;
  color: var(--w6df7-dark);
  background-color: var(--w6df7-light);
  font-size: 1.4rem;
  overflow-x: hidden;
}

/* Layout Containers */
.w6df7-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.w6df7-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.w6df7-main {
  flex: 1;
  padding-top: 7rem;
  padding-bottom: 7rem;
}

/* Header Styles */
.w6df7-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--w6df7-gradient);
  padding: 1rem 0;
  z-index: 1000;
  box-shadow: 0 2px 10px var(--w6df7-shadow);
}

.w6df7-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.w6df7-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--w6df7-light);
  font-weight: bold;
  font-size: 1.8rem;
}

.w6df7-logo img {
  width: 3.2rem;
  height: 3.2rem;
  margin-right: 0.8rem;
  border-radius: 0.4rem;
}

.w6df7-nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.w6df7-menu-toggle {
  background: none;
  border: none;
  color: var(--w6df7-light);
  font-size: 2.4rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.4rem;
  transition: var(--w6df7-transition);
}

.w6df7-menu-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Button Styles */
.w6df7-btn {
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--w6df7-gradient);
  color: var(--w6df7-light);
  text-decoration: none;
  border-radius: 0.8rem;
  font-weight: 600;
  font-size: 1.4rem;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: var(--w6df7-transition);
  min-height: 4.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.w6df7-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px var(--w6df7-shadow);
}

.w6df7-btn-sm {
  padding: 0.8rem 1.6rem;
  font-size: 1.2rem;
  min-height: 3.6rem;
}

.w6df7-btn-lg {
  padding: 1.5rem 3rem;
  font-size: 1.6rem;
  min-height: 5.6rem;
}

.w6df7-btn-outline {
  background: transparent;
  border: 2px solid var(--w6df7-primary);
  color: var(--w6df7-primary);
}

.w6df7-btn-outline:hover {
  background: var(--w6df7-primary);
  color: var(--w6df7-light);
}

/* Mobile Navigation */
.w6df7-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1998;
  opacity: 0;
  visibility: hidden;
  transition: var(--w6df7-transition);
}

.w6df7-nav-overlay.w6df7-active {
  opacity: 1;
  visibility: visible;
}

.w6df7-mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 28rem;
  height: 100vh;
  background: var(--w6df7-light);
  z-index: 1999;
  transition: var(--w6df7-transition);
  box-shadow: -5px 0 20px var(--w6df7-shadow);
  overflow-y: auto;
}

.w6df7-mobile-nav.w6df7-active {
  right: 0;
}

.w6df7-mobile-nav-header {
  padding: 2rem;
  background: var(--w6df7-gradient);
  color: var(--w6df7-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.w6df7-mobile-nav-close {
  background: none;
  border: none;
  color: var(--w6df7-light);
  font-size: 2.4rem;
  cursor: pointer;
  padding: 0.5rem;
}

.w6df7-mobile-nav-menu {
  padding: 2rem 0;
}

.w6df7-mobile-nav-item {
  display: block;
  padding: 1.5rem 2rem;
  color: var(--w6df7-dark);
  text-decoration: none;
  border-bottom: 1px solid var(--w6df7-border);
  transition: var(--w6df7-transition);
}

.w6df7-mobile-nav-item:hover {
  background: var(--w6df7-gray);
  color: var(--w6df7-primary);
}

/* Carousel Styles */
.w6df7-carousel-container {
  position: relative;
  overflow: hidden;
  border-radius: 1.2rem;
  margin: 2rem 0;
  height: 20rem;
}

.w6df7-carousel {
  display: flex;
  transition: transform 0.5s ease;
  height: 100%;
}

.w6df7-carousel-slide {
  min-width: 100%;
  position: relative;
  cursor: pointer;
}

.w6df7-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.w6df7-carousel-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: var(--w6df7-light);
  padding: 2rem;
}

/* Game Grid Styles */
.w6df7-game-section {
  margin: 3rem 0;
}

.w6df7-section-title {
  font-size: 2.4rem;
  font-weight: bold;
  margin-bottom: 2rem;
  text-align: center;
  color: var(--w6df7-dark);
}

.w6df7-game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.w6df7-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--w6df7-dark);
  padding: 1rem;
  border-radius: 0.8rem;
  border: 1px solid var(--w6df7-border);
  transition: var(--w6df7-transition);
  background: var(--w6df7-light);
}

.w6df7-game-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px var(--w6df7-shadow);
  border-color: var(--w6df7-primary);
}

.w6df7-game-icon {
  width: 6rem;
  height: 6rem;
  border-radius: 0.8rem;
  object-fit: cover;
  margin-bottom: 0.8rem;
}

.w6df7-game-name {
  font-size: 1.2rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.3;
}

/* Content Sections */
.w6df7-section {
  margin: 4rem 0;
  padding: 3rem 2rem;
  background: var(--w6df7-light);
  border-radius: 1.2rem;
  box-shadow: 0 4px 20px var(--w6df7-shadow);
}

.w6df7-section h2 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  color: var(--w6df7-dark);
  text-align: center;
}

.w6df7-section h3 {
  font-size: 1.8rem;
  margin: 2rem 0 1rem;
  color: var(--w6df7-primary);
}

.w6df7-section p {
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.w6df7-section ul {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.w6df7-section li {
  margin-bottom: 0.8rem;
  line-height: 1.5;
}

/* Feature Cards */
.w6df7-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.w6df7-feature-card {
  background: var(--w6df7-light);
  padding: 2.5rem;
  border-radius: 1.2rem;
  text-align: center;
  border: 1px solid var(--w6df7-border);
  transition: var(--w6df7-transition);
}

.w6df7-feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px var(--w6df7-shadow);
}

.w6df7-feature-icon {
  font-size: 4rem;
  color: var(--w6df7-primary);
  margin-bottom: 1.5rem;
}

.w6df7-feature-title {
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: var(--w6df7-dark);
}

/* Stats Grid */
.w6df7-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.w6df7-stat-card {
  background: var(--w6df7-gradient);
  padding: 2rem;
  border-radius: 1rem;
  text-align: center;
  color: var(--w6df7-light);
}

.w6df7-stat-number {
  font-size: 3rem;
  font-weight: bold;
  display: block;
}

.w6df7-stat-label {
  font-size: 1.2rem;
  opacity: 0.9;
}

/* Footer Styles */
.w6df7-footer {
  background: var(--w6df7-dark);
  color: var(--w6df7-light);
  padding: 4rem 0 2rem;
  margin-top: auto;
}

.w6df7-footer-content {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.w6df7-footer-section {
  margin-bottom: 3rem;
}

.w6df7-footer-title {
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  color: var(--w6df7-light);
}

.w6df7-footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  gap: 1rem;
}

.w6df7-footer-link {
  color: var(--w6df7-light);
  text-decoration: none;
  padding: 0.8rem 0;
  border-bottom: 1px solid transparent;
  transition: var(--w6df7-transition);
}

.w6df7-footer-link:hover {
  color: var(--w6df7-accent);
  border-bottom-color: var(--w6df7-accent);
}

.w6df7-partners {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.w6df7-partner-logo {
  width: 100%;
  height: 4rem;
  object-fit: contain;
  opacity: 0.7;
  transition: var(--w6df7-transition);
}

.w6df7-partner-logo:hover {
  opacity: 1;
}

.w6df7-copyright {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 1.2rem;
  opacity: 0.8;
}

/* Bottom Navigation */
.w6df7-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--w6df7-light);
  border-top: 1px solid var(--w6df7-border);
  padding: 0.8rem 0;
  z-index: 999;
  box-shadow: 0 -2px 10px var(--w6df7-shadow);
}

.w6df7-bottom-nav-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  max-width: 430px;
  margin: 0 auto;
}

.w6df7-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--w6df7-dark);
  padding: 0.8rem;
  border-radius: 0.8rem;
  transition: var(--w6df7-transition);
  min-width: 5.6rem;
  min-height: 4.4rem;
}

.w6df7-bottom-nav-item:hover,
.w6df7-bottom-nav-item.w6df7-active {
  color: var(--w6df7-primary);
  background: rgba(95, 158, 160, 0.1);
}

.w6df7-bottom-nav-icon {
  font-size: 2rem;
  margin-bottom: 0.4rem;
}

.w6df7-bottom-nav-text {
  font-size: 1rem;
  font-weight: 500;
}

/* Animations */
.w6df7-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.w6df7-fade-in {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 480px) {
  .w6df7-container {
    padding: 0 1rem;
  }

  .w6df7-game-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }

  .w6df7-game-icon {
    width: 5rem;
    height: 5rem;
  }

  .w6df7-game-name {
    font-size: 1.1rem;
  }

  .w6df7-section {
    padding: 2rem 1.5rem;
  }

  .w6df7-feature-grid {
    grid-template-columns: 1fr;
  }

  .w6df7-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .w6df7-partners {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 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 {
    --w6df7-shadow: rgba(0, 0, 0, 0.3);
    --w6df7-border: #999999;
  }
}

/* Loading states */
.w6df7-loading {
  pointer-events: none;
  opacity: 0.6;
}

.w6df7-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2rem;
  height: 2rem;
  margin: -1rem 0 0 -1rem;
  border: 2px solid var(--w6df7-primary);
  border-top-color: transparent;
  border-radius: 50%;
  animation: w6df7-spin 1s linear infinite;
}

@keyframes w6df7-spin {
  to {
    transform: rotate(360deg);
  }
}