/* LuckyMax Casino Theme CSS - Mobile First Design */
/* Copyright 2025 LuckyMax - All rights reserved */
/* Version: 1.0.0 */

/* ===== ROOT VARIABLES ===== */
:root {
  --vd50-primary: #212F3D;
  --vd50-light: #E0FFFF;
  --vd50-light-blue: #ADD8E6;
  --vd50-orange: #D2691E;
  --vd50-cream: #FFEFD5;
  --vd50-text-dark: #2C3E50;
  --vd50-text-light: #FFFFFF;
  --vd50-bg-gradient: linear-gradient(135deg, var(--vd50-primary) 0%, var(--vd50-light-blue) 50%, var(--vd50-cream) 100%);
  --vd50-shadow: 0 4px 15px rgba(33, 47, 61, 0.15);
  --vd50-shadow-hover: 0 8px 25px rgba(33, 47, 61, 0.25);
  --vd50-radius: 12px;
  --vd50-radius-small: 8px;
  --vd50-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --vd50-font-size-base: 16px;
  --vd50-line-height-base: 1.5;
}

/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

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

/* ===== CONTAINER & LAYOUT ===== */
.vd50-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  max-width: 430px;
  margin: 0 auto;
  background: var(--vd50-light);
  position: relative;
}

.vd50-container {
  padding: 0 1.5rem;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
}

.vd50-main {
  flex: 1;
  margin-top: 7rem;
  margin-bottom: 7rem;
  padding: 1rem 0;
}

.vd50-section {
  margin-bottom: 3rem;
}

/* ===== HEADER & NAVIGATION ===== */
.vd50-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(33, 47, 61, 0.1);
  z-index: 1000;
  padding: 1rem 0;
}

.vd50-navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1.5rem;
}

.vd50-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  font-size: 2rem;
  font-weight: bold;
  color: var(--vd50-primary);
}

.vd50-logo-img {
  width: 3rem;
  height: 3rem;
  margin-right: 0.8rem;
  border-radius: var(--vd50-radius-small);
}

.vd50-nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.vd50-menu-toggle {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  padding: 0.5rem;
  border: none;
  background: transparent;
  width: 4.4rem;
  height: 4.4rem;
  justify-content: center;
  align-items: center;
}

.vd50-menu-toggle span {
  width: 2.5rem;
  height: 0.3rem;
  background: var(--vd50-primary);
  margin: 0.2rem 0;
  transition: var(--vd50-transition);
  border-radius: 2px;
}

.vd50-menu-toggle.vd50-menu-open span:nth-child(1) {
  transform: rotate(45deg) translate(0.5rem, 0.5rem);
}

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

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

/* Mobile Menu */
.vd50-mobile-menu {
  position: fixed;
  top: 7rem;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(15px);
  transition: var(--vd50-transition);
  z-index: 999;
  border-radius: 0 0 var(--vd50-radius) var(--vd50-radius);
  box-shadow: var(--vd50-shadow);
  transform: translateY(-100%);
}

.vd50-mobile-menu.vd50-menu-active {
  transform: translateY(0);
}

.vd50-nav-menu {
  list-style: none;
  padding: 2rem;
}

.vd50-nav-item {
  margin-bottom: 1.5rem;
}

.vd50-nav-link {
  display: block;
  padding: 1.2rem 1.5rem;
  color: var(--vd50-text-dark);
  text-decoration: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  font-weight: 500;
  border-radius: var(--vd50-radius-small);
  transition: var(--vd50-transition);
  cursor: pointer;
  width: 100%;
  text-align: left;
}

.vd50-nav-link:hover {
  background: var(--vd50-light-blue);
  transform: translateX(0.5rem);
}

.vd50-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: var(--vd50-transition);
  z-index: 998;
}

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

/* ===== BUTTONS ===== */
.vd50-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem 2rem;
  border: none;
  border-radius: var(--vd50-radius-small);
  font-size: 1.4rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--vd50-transition);
  text-decoration: none;
  min-height: 4.4rem;
  gap: 0.8rem;
}

.vd50-btn-primary {
  background: linear-gradient(135deg, var(--vd50-primary) 0%, var(--vd50-orange) 100%);
  color: var(--vd50-text-light);
  box-shadow: var(--vd50-shadow);
}

.vd50-btn-primary:hover {
  box-shadow: var(--vd50-shadow-hover);
  transform: translateY(-2px);
}

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

.vd50-btn-outline:hover {
  background: var(--vd50-primary);
  color: var(--vd50-text-light);
}

.vd50-btn-secondary {
  background: var(--vd50-light-blue);
  color: var(--vd50-primary);
}

.vd50-btn-secondary:hover {
  background: var(--vd50-orange);
  color: var(--vd50-text-light);
}

/* ===== CARDS ===== */
.vd50-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--vd50-radius);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--vd50-shadow);
  transition: var(--vd50-transition);
}

.vd50-card:hover {
  box-shadow: var(--vd50-shadow-hover);
  transform: translateY(-2px);
}

.vd50-card h2 {
  color: var(--vd50-primary);
  margin-bottom: 1.5rem;
  font-size: 2.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.vd50-card h3 {
  color: var(--vd50-orange);
  margin-bottom: 1rem;
  font-size: 1.8rem;
  font-weight: 600;
}

.vd50-card p {
  margin-bottom: 1.5rem;
  color: var(--vd50-text-dark);
  line-height: 1.6;
}

/* ===== CAROUSEL ===== */
.vd50-carousel-container {
  position: relative;
  overflow: hidden;
  border-radius: var(--vd50-radius);
  margin-bottom: 3rem;
  box-shadow: var(--vd50-shadow);
}

.vd50-carousel {
  display: flex;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.vd50-carousel-slide {
  min-width: 100%;
  cursor: pointer;
  position: relative;
}

.vd50-carousel-slide img {
  width: 100%;
  height: 20rem;
  object-fit: cover;
  display: block;
}

.vd50-carousel-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: white;
  padding: 2rem;
  text-align: center;
}

/* ===== GAME GRID ===== */
.vd50-game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.vd50-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  padding: 1rem;
  border-radius: var(--vd50-radius-small);
  transition: var(--vd50-transition);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 2px 8px rgba(33, 47, 61, 0.1);
}

.vd50-game-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--vd50-shadow);
  background: rgba(255, 255, 255, 0.95);
}

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

.vd50-game-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--vd50-primary);
  line-height: 1.3;
  text-overflow: ellipsis;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* ===== HERO SECTION ===== */
.vd50-hero {
  background: var(--vd50-bg-gradient);
  color: var(--vd50-text-light);
  text-align: center;
  padding: 4rem 2rem;
  border-radius: var(--vd50-radius);
  margin-bottom: 3rem;
  box-shadow: var(--vd50-shadow);
}

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

.vd50-hero p {
  font-size: 1.6rem;
  margin-bottom: 2.5rem;
  opacity: 0.9;
  line-height: 1.4;
}

/* ===== FEATURE GRID ===== */
.vd50-feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin: 2rem 0;
}

.vd50-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 2rem;
  background: rgba(224, 255, 255, 0.3);
  border-radius: var(--vd50-radius-small);
  transition: var(--vd50-transition);
}

.vd50-feature-item:hover {
  background: rgba(173, 216, 230, 0.4);
  transform: translateY(-2px);
}

.vd50-feature-icon {
  width: 5rem;
  height: 5rem;
  background: var(--vd50-orange);
  color: var(--vd50-text-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 2rem;
}

.vd50-feature-content h4 {
  color: var(--vd50-primary);
  margin-bottom: 0.8rem;
  font-size: 1.6rem;
  font-weight: 600;
}

.vd50-feature-content p {
  color: var(--vd50-text-dark);
  line-height: 1.5;
  margin: 0;
}

/* ===== STATS GRID ===== */
.vd50-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

.vd50-stat-item {
  text-align: center;
  padding: 2rem 1rem;
  background: rgba(255, 239, 213, 0.5);
  border-radius: var(--vd50-radius-small);
}

.vd50-stat-number {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--vd50-orange);
  margin-bottom: 0.5rem;
}

.vd50-stat-label {
  font-size: 1.3rem;
  color: var(--vd50-text-dark);
  font-weight: 500;
}

/* ===== TEXT UTILITIES ===== */
.vd50-text-center {
  text-align: center;
}

.vd50-text-bold {
  font-weight: bold;
  color: var(--vd50-primary);
}

.vd50-link {
  color: var(--vd50-orange);
  text-decoration: none;
  font-weight: 600;
  transition: var(--vd50-transition);
}

.vd50-link:hover {
  color: var(--vd50-primary);
  text-decoration: underline;
}

/* ===== FOOTER ===== */
.vd50-footer {
  background: var(--vd50-primary);
  color: var(--vd50-text-light);
  padding: 3rem 0 2rem;
  margin-top: auto;
}

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

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

.vd50-footer-link {
  color: var(--vd50-light);
  text-decoration: none;
  font-size: 1.4rem;
  transition: var(--vd50-transition);
  background: none;
  border: none;
  cursor: pointer;
}

.vd50-footer-link:hover {
  color: var(--vd50-cream);
  text-decoration: underline;
}

.vd50-partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
  opacity: 0.7;
}

.vd50-partner-icon {
  width: 4rem;
  height: 4rem;
  opacity: 0.6;
  transition: var(--vd50-transition);
  border-radius: var(--vd50-radius-small);
}

.vd50-partner-icon:hover {
  opacity: 1;
  transform: scale(1.1);
}

.vd50-copyright {
  opacity: 0.8;
  font-size: 1.2rem;
  margin-top: 2rem;
}

/* ===== BOTTOM NAVIGATION ===== */
.vd50-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(15px);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0.8rem 0;
  border-top: 1px solid rgba(33, 47, 61, 0.1);
  z-index: 1000;
  height: 6rem;
}

.vd50-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--vd50-text-dark);
  font-size: 1rem;
  font-weight: 500;
  transition: var(--vd50-transition);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.5rem;
  min-width: 4.4rem;
  min-height: 4.4rem;
  justify-content: center;
}

.vd50-nav-icon {
  font-size: 2rem;
  margin-bottom: 0.3rem;
}

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

.vd50-bottom-nav-item:hover,
.vd50-bottom-nav-item.vd50-nav-active {
  color: var(--vd50-orange);
  transform: scale(1.1);
}

/* ===== ANIMATIONS ===== */
.vd50-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.vd50-animate-visible {
  opacity: 1;
  transform: translateY(0);
}

.vd50-loading {
  opacity: 0.6;
  pointer-events: none;
}

.vd50-loading-active {
  opacity: 1;
  pointer-events: auto;
}

.vd50-lazy {
  filter: blur(5px);
  transition: filter 0.3s ease;
}

/* ===== FAQ STYLES ===== */
.vd50-faq-item {
  margin-bottom: 1.5rem;
  border: 1px solid rgba(33, 47, 61, 0.1);
  border-radius: var(--vd50-radius-small);
  overflow: hidden;
}

.vd50-faq-question {
  background: var(--vd50-light-blue);
  padding: 1.5rem;
  font-weight: 600;
  color: var(--vd50-primary);
  margin: 0;
  font-size: 1.4rem;
}

.vd50-faq-answer {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.9);
  border-top: 1px solid rgba(33, 47, 61, 0.1);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (min-width: 374px) {
  .vd50-hero h1 {
    font-size: 3.2rem;
  }
  
  .vd50-game-grid {
    grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
  }
  
  .vd50-stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 390px) {
  .vd50-feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .vd50-stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  .vd50-header,
  .vd50-bottom-nav,
  .vd50-mobile-menu,
  .vd50-menu-overlay {
    display: none !important;
  }
  
  .vd50-main {
    margin-top: 0;
    margin-bottom: 0;
  }
  
  .vd50-wrapper {
    max-width: none;
  }
}

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

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --vd50-primary: #000000;
    --vd50-text-dark: #000000;
    --vd50-light-blue: #FFFFFF;
    --vd50-orange: #FF6600;
  }
}

/* Focus styles for accessibility */
button:focus,
a:focus,
input:focus {
  outline: 2px solid var(--vd50-orange);
  outline-offset: 2px;
}

/* Screen reader only content */
.vd50-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}