/**
 * Lucky Cola - CSS Stylesheet
 * Author: Lucky Cola Team
 * Version: 1.0.0
 * Mobile-first responsive design
 */

/* CSS Variables */
:root {
  --v437-primary: #006400;
  --v437-secondary: #ADD8E6;
  --v437-accent: #66CDAA;
  --v437-highlight: #7CFC00;
  --v437-dark: #262626;
  --v437-light: #E0E0E0;
  --v437-text: #E0E0E0;
  --v437-text-dark: #262626;
  --v437-border: #444444;
  --v437-shadow: rgba(0, 0, 0, 0.3);
  --v437-gradient: linear-gradient(135deg, var(--v437-primary), var(--v437-accent));
  --v437-border-radius: 8px;
  --v437-transition: all 0.3s ease;
  --v437-header-height: 60px;
  --v437-bottom-nav-height: 64px;
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 1.6rem;
  line-height: 1.5;
  color: var(--v437-text);
  background-color: var(--v437-dark);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Container and layout */
.v437-container {
  max-width: 430px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
}

.v437-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.v437-main {
  flex: 1;
  padding-bottom: 80px; /* Space for bottom navigation on mobile */
}

/* Header */
.v437-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--v437-header-height);
  background: var(--v437-dark);
  border-bottom: 1px solid var(--v437-border);
  z-index: 1000;
  transition: var(--v437-transition);
}

.v437-header.v437-scrolled {
  box-shadow: 0 2px 10px var(--v437-shadow);
}

.v437-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 1.5rem;
}

.v437-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--v437-text);
  font-weight: 600;
  font-size: 1.8rem;
}

.v437-logo img {
  width: 2.4rem;
  height: 2.4rem;
  margin-right: 0.8rem;
}

.v437-header-actions {
  display: flex;
  gap: 1rem;
}

.v437-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.6rem;
  border: none;
  border-radius: var(--v437-border-radius);
  font-size: 1.4rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: var(--v437-transition);
  min-height: 44px; /* Touch-friendly */
}

.v437-btn-primary {
  background: var(--v437-primary);
  color: var(--v437-text);
}

.v437-btn-primary:hover {
  background: var(--v437-accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--v437-shadow);
}

.v437-btn-secondary {
  background: transparent;
  color: var(--v437-secondary);
  border: 1px solid var(--v437-secondary);
}

.v437-btn-secondary:hover {
  background: var(--v437-secondary);
  color: var(--v437-text);
}

.v437-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--v437-text);
  font-size: 2.4rem;
  cursor: pointer;
  padding: 0.5rem;
  transition: var(--v437-transition);
}

.v437-menu-toggle.v437-menu-active {
  color: var(--v437-highlight);
  transform: rotate(90deg);
}

/* Mobile Menu */
.v437-mobile-menu {
  position: fixed;
  top: var(--v437-header-height);
  left: -100%;
  width: 80%;
  max-width: 300px;
  height: calc(100vh - var(--v437-header-height));
  background: var(--v437-dark);
  border-right: 1px solid var(--v437-border);
  transition: left 0.3s ease;
  z-index: 9999;
  overflow-y: auto;
}

.v437-mobile-menu.v437-active,
.v437-mobile-menu.v437-menu-open {
  left: 0;
}

.v437-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 9998;
}

.v437-menu-overlay.v437-active {
  opacity: 1;
  visibility: visible;
}

.v437-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9997;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.v437-menu-nav {
  padding: 2rem 0;
}

.v437-menu-item {
  display: block;
  padding: 1rem 2rem;
  color: var(--v437-text);
  text-decoration: none;
  transition: var(--v437-transition);
  border-bottom: 1px solid var(--v437-border);
}

.v437-menu-item:hover {
  background: var(--v437-accent);
  color: var(--v437-dark);
}

/* Bottom Navigation */
.v437-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--v437-bottom-nav-height);
  background: var(--v437-dark);
  border-top: 1px solid var(--v437-border);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-around;
  box-shadow: 0 -2px 10px var(--v437-shadow);
}

.v437-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  text-decoration: none;
  color: var(--v437-text);
  transition: var(--v437-transition);
  cursor: pointer;
  border: none;
  background: none;
  padding: 0.5rem;
}

.v437-nav-item:hover,
.v437-nav-item.v437-active {
  color: var(--v437-highlight);
  transform: scale(1.1);
}

.v437-nav-icon {
  font-size: 2.4rem;
  margin-bottom: 0.4rem;
}

.v437-nav-text {
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
}

/* Carousel */
.v437-carousel {
  position: relative;
  width: 100%;
  height: 200px;
  margin: var(--v437-header-height) 0 2rem;
  overflow: hidden;
  border-radius: var(--v437-border-radius);
}

.v437-carousel-inner {
  position: relative;
  width: 100%;
  height: 100%;
}

.v437-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.v437-slide.v437-active {
  opacity: 1;
}

.v437-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.v437-carousel-controls {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 1rem;
  pointer-events: none;
}

.v437-prev,
.v437-next {
  width: 4rem;
  height: 4rem;
  background: rgba(0, 0, 0, 0.5);
  color: var(--v437-text);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: all;
  transition: var(--v437-transition);
}

.v437-prev:hover,
.v437-next:hover {
  background: var(--v437-primary);
  transform: scale(1.1);
}

.v437-carousel-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.8rem;
}

.v437-dot {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: var(--v437-transition);
}

.v437-dot.v437-active {
  background: var(--v437-highlight);
  transform: scale(1.2);
}

/* Games Grid */
.v437-games-section {
  margin: 2rem 0;
}

.v437-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--v437-primary);
}

.v437-section-title {
  font-size: 2rem;
  font-weight: 600;
  color: var(--v437-highlight);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.v437-games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.v437-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--v437-text);
  transition: var(--v437-transition);
  cursor: pointer;
}

.v437-game-item:hover {
  transform: translateY(-4px);
  color: var(--v437-highlight);
}

.v437-game-icon {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--v437-border-radius);
  overflow: hidden;
  margin-bottom: 0.5rem;
  box-shadow: 0 2px 8px var(--v437-shadow);
}

.v437-game-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--v437-transition);
}

.v437-game-item:hover .v437-game-icon img {
  transform: scale(1.1);
}

.v437-game-name {
  font-size: 1.2rem;
  text-align: center;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Content Sections */
.v437-section {
  background: linear-gradient(135deg, var(--v437-dark), #1a1a1a);
  border-radius: var(--v437-border-radius);
  padding: 2rem;
  margin: 2rem 0;
  border: 1px solid var(--v437-border);
  box-shadow: 0 4px 12px var(--v437-shadow);
}

.v437-section-title {
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--v437-highlight);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.v437-section-content {
  color: var(--v437-text);
  line-height: 1.6;
}

.v437-section-content p {
  margin-bottom: 1.2rem;
}

.v437-section-content ul,
.v437-section-content ol {
  margin-bottom: 1.2rem;
  padding-left: 2rem;
}

.v437-section-content li {
  margin-bottom: 0.5rem;
}

/* Cards */
.v437-card {
  background: linear-gradient(135deg, #2a2a2a, #1f1f1f);
  border-radius: var(--v437-border-radius);
  padding: 1.5rem;
  margin: 1rem 0;
  border: 1px solid var(--v437-border);
  box-shadow: 0 2px 8px var(--v437-shadow);
  transition: var(--v437-transition);
}

.v437-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px var(--v437-shadow);
  border-color: var(--v437-accent);
}

.v437-card-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--v437-highlight);
  margin-bottom: 0.8rem;
}

.v437-card-content {
  color: var(--v437-text);
  line-height: 1.5;
}

/* Features Grid */
.v437-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

.v437-feature-item {
  text-align: center;
  padding: 1.5rem;
  background: linear-gradient(135deg, #2a2a2a, #1f1f1f);
  border-radius: var(--v437-border-radius);
  border: 1px solid var(--v437-border);
  transition: var(--v437-transition);
}

.v437-feature-item:hover {
  transform: translateY(-4px);
  border-color: var(--v437-accent);
  box-shadow: 0 8px 16px var(--v437-shadow);
}

.v437-feature-icon {
  font-size: 3.2rem;
  color: var(--v437-highlight);
  margin-bottom: 1rem;
}

.v437-feature-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--v437-secondary);
  margin-bottom: 0.5rem;
}

.v437-feature-description {
  font-size: 1.2rem;
  color: var(--v437-text);
  line-height: 1.4;
}

/* Footer */
.v437-footer {
  background: linear-gradient(135deg, #1a1a1a, #0f0f0f);
  border-top: 2px solid var(--v437-primary);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
}

.v437-footer-content {
  margin-bottom: 2rem;
}

.v437-footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.v437-footer-link {
  color: var(--v437-secondary);
  text-decoration: none;
  padding: 0.5rem 0;
  transition: var(--v437-transition);
  font-size: 1.4rem;
}

.v437-footer-link:hover {
  color: var(--v437-highlight);
  transform: translateX(4px);
}

.v437-partners {
  margin: 2rem 0;
}

.v437-partners-title {
  font-size: 1.6rem;
  color: var(--v437-secondary);
  margin-bottom: 1rem;
  text-align: center;
}

.v437-partners-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.v437-partner-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 4rem;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: var(--v437-transition);
}

.v437-partner-item:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.1);
}

.v437-partner-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.v437-copyright {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--v437-border);
  color: var(--v437-text);
  font-size: 1.2rem;
}

/* Utility classes */
.v437-text-center {
  text-align: center;
}

.v437-text-left {
  text-align: left;
}

.v437-text-right {
  text-align: right;
}

.v437-mt-1 { margin-top: 1rem; }
.v437-mt-2 { margin-top: 2rem; }
.v437-mt-3 { margin-top: 3rem; }

.v437-mb-1 { margin-bottom: 1rem; }
.v437-mb-2 { margin-bottom: 2rem; }
.v437-mb-3 { margin-bottom: 3rem; }

.v437-p-1 { padding: 1rem; }
.v437-p-2 { padding: 2rem; }
.v437-p-3 { padding: 3rem; }

.v437-hidden {
  display: none;
}

.v437-visible {
  display: block;
}

/* Loading state */
.v437-loading {
  opacity: 0.6;
  pointer-events: none;
}

.v437-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2rem;
  height: 2rem;
  margin: -1rem 0 0 -1rem;
  border: 2px solid var(--v437-light);
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: v437-spin 1s linear infinite;
}

/* Animations */
@keyframes v437-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes v437-fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes v437-slideIn {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}

/* Responsive design */
@media (min-width: 769px) {
  .v437-container {
    max-width: 100%;
    padding: 0 2rem;
  }

  .v437-main {
    padding-bottom: 0;
  }

  .v437-header-actions {
    gap: 1.5rem;
  }

  .v437-bottom-nav {
    display: none; /* Hide bottom navigation on desktop */
  }

  .v437-games-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 1.2rem;
  }

  .v437-features-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .v437-footer-links {
    grid-template-columns: repeat(4, 1fr);
  }

  .v437-partners-grid {
    grid-template-columns: repeat(10, 1fr);
  }

  .v437-carousel {
    height: 300px;
  }
}

@media (max-width: 768px) {
  .v437-menu-toggle {
    display: block;
  }

  .v437-header-actions {
    display: none; /* Hide register/login buttons on mobile, use mobile menu instead */
  }

  .v437-games-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .v437-features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .v437-section {
    padding: 1.5rem;
  }

  .v437-footer-links {
    grid-template-columns: 1fr;
  }

  .v437-partners-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 480px) {
  .v437-container {
    padding: 0 1rem;
  }

  .v437-games-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
  }

  .v437-section {
    padding: 1rem;
  }

  .v437-features-grid {
    grid-template-columns: 1fr;
  }

  .v437-footer-links {
    grid-template-columns: 1fr;
  }

  .v437-partners-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --v437-dark: #000000;
    --v437-text: #FFFFFF;
    --v437-border: #FFFFFF;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Additional styles for advanced functionality */

/* Header scrolled state */
.v437-header.v437-header-scrolled {
  box-shadow: 0 4px 20px var(--v437-shadow);
  background: linear-gradient(135deg, var(--v437-dark), #1a1a1a);
}

/* Image lazy loading */
.v437-loaded {
  animation: v437-fadeIn 0.5s ease;
}

/* Form validation styles */
.v437-error {
  border-color: #ff4444 !important;
  box-shadow: 0 0 8px rgba(255, 68, 68, 0.3) !important;
}

.v437-error-message {
  color: #ff4444;
  font-size: 1.2rem;
  margin-top: 0.5rem;
  display: block;
}

/* Toast notifications */
.v437-toast {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: var(--v437-dark);
  color: var(--v437-text);
  padding: 1rem 2rem;
  border-radius: var(--v437-border-radius);
  border: 1px solid var(--v437-border);
  box-shadow: 0 4px 20px var(--v437-shadow);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  max-width: calc(100vw - 4rem);
  text-align: center;
}

.v437-toast.v437-toast-show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.v437-toast.v437-toast-success {
  background: linear-gradient(135deg, #2d5a2d, #3a7a3a);
  border-color: var(--v437-primary);
}

.v437-toast.v437-toast-error {
  background: linear-gradient(135deg, #7a2d2d, #7a3a3a);
  border-color: #ff4444;
}

.v437-toast.v437-toast-info {
  background: linear-gradient(135deg, #2d4a7a, #3a4a7a);
  border-color: var(--v437-secondary);
}

/* Game icon loaded state */
.v437-game-icon.v437-loaded img {
  animation: v437-fadeIn 0.3s ease;
}

/* Enhanced button states */
.v437-btn:active {
  transform: scale(0.98);
}

.v437-btn.v437-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

.v437-btn.v437-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1.6rem;
  height: 1.6rem;
  margin: -0.8rem 0 0 -0.8rem;
  border: 2px solid currentColor;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: v437-spin 1s linear infinite;
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
  .v437-nav-item:hover,
  .v437-game-item:hover,
  .v437-card:hover,
  .v437-feature-item:hover {
    transform: none;
  }

  .v437-nav-item:active,
  .v437-game-item:active,
  .v437-card:active,
  .v437-feature-item:active {
    transform: scale(0.95);
    transition: transform 0.1s ease;
  }
}

/* Keyboard focus styles */
.v437-btn:focus,
.v437-nav-item:focus,
.v437-menu-item:focus,
.v437-game-item:focus {
  outline: 2px solid var(--v437-highlight);
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .v437-header,
  .v437-bottom-nav,
  .v437-mobile-menu,
  .v437-menu-overlay,
  .v437-overlay,
  .v437-carousel,
  .v437-toast {
    display: none !important;
  }

  body {
    background: white !important;
    color: black !important;
    font-size: 12pt;
  }

  .v437-container {
    max-width: none;
    padding: 0;
  }

  .v437-main {
    padding-bottom: 0;
  }

  .v437-section {
    break-inside: avoid;
    page-break-inside: avoid;
    border: 1px solid #ccc;
    margin: 1rem 0;
  }
}

/* Enhanced carousel styles for better touch support */
.v437-carousel {
  touch-action: pan-y;
}

.v437-carousel-inner {
  touch-action: pan-y;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--v437-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--v437-accent);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--v437-highlight);
}

/* Mobile-specific optimizations */
@media (max-width: 768px) {
  .v437-games-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
  }

  .v437-game-name {
    font-size: 1rem;
    line-height: 1.1;
  }

  .v437-section-title {
    font-size: 1.8rem;
  }

  .v437-card-title {
    font-size: 1.4rem;
  }

  .v437-btn {
    padding: 0.6rem 1.2rem;
    font-size: 1.3rem;
  }

  .v437-carousel {
    height: 180px;
  }
}

/* Ultra small screens */
@media (max-width: 360px) {
  .v437-container {
    padding: 0 0.8rem;
  }

  .v437-games-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
  }

  .v437-game-name {
    font-size: 0.9rem;
  }

  .v437-section {
    padding: 1rem;
  }

  .v437-section-title {
    font-size: 1.6rem;
  }
}