/* LuckyMax Casino Theme - Mobile-First Responsive Design */
/* Copyright (c) 2025 LuckyMax. All rights reserved. */

/* ===== CSS RESET & BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%; /* 1rem = 10px */
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  font-size: 1.4rem;
  line-height: 1.5;
  color: #ffffff;
  background: linear-gradient(135deg, #0C0C0C 0%, #1a1a1a 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ===== CSS VARIABLES ===== */
:root {
  --v6f2-primary: #FF0000;
  --v6f2-secondary: #4DB6AC;
  --v6f2-accent: #DC143C;
  --v6f2-bg-dark: #0C0C0C;
  --v6f2-bg-light: #1a1a1a;
  --v6f2-text-primary: #ffffff;
  --v6f2-text-secondary: #cccccc;
  --v6f2-text-muted: #888888;
  --v6f2-border-radius: 0.8rem;
  --v6f2-shadow: 0 0.4rem 1.6rem rgba(255, 0, 0, 0.15);
  --v6f2-shadow-hover: 0 0.8rem 2.4rem rgba(255, 0, 0, 0.25);
  --v6f2-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --v6f2-max-width: 430px;
}

/* ===== LOADING SCREEN ===== */
.v6f2-loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--v6f2-bg-dark);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.3s ease;
}

.v6f2-spinner {
  width: 4rem;
  height: 4rem;
  border: 0.4rem solid rgba(255, 0, 0, 0.1);
  border-left: 0.4rem solid var(--v6f2-primary);
  border-radius: 50%;
  animation: v6f2-spin 1s linear infinite;
}

@keyframes v6f2-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ===== LAYOUT CONTAINERS ===== */
.v6f2-container {
  width: 100%;
  max-width: var(--v6f2-max-width);
  margin: 0 auto;
  padding: 0 1.6rem;
}

.v6f2-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.v6f2-main {
  flex: 1;
  padding-top: 7rem;
  padding-bottom: 10rem;
}

/* ===== HEADER & NAVIGATION ===== */
.v6f2-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(12, 12, 12, 0.95);
  backdrop-filter: blur(1rem);
  border-bottom: 0.1rem solid rgba(255, 0, 0, 0.2);
  z-index: 1000;
  height: 6rem;
}

.v6f2-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 6rem;
  padding: 0 1.6rem;
  max-width: var(--v6f2-max-width);
  margin: 0 auto;
}

.v6f2-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--v6f2-text-primary);
  font-weight: 700;
  font-size: 1.8rem;
}

.v6f2-logo-icon img {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.4rem;
}

.v6f2-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.v6f2-menu-toggle {
  background: none;
  border: none;
  color: var(--v6f2-text-primary);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.8rem;
  border-radius: 0.4rem;
  transition: var(--v6f2-transition);
}

.v6f2-menu-toggle:hover {
  background: rgba(255, 0, 0, 0.1);
  color: var(--v6f2-primary);
}

/* ===== MOBILE NAVIGATION ===== */
.v6f2-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  z-index: 1500;
}

.v6f2-mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 28rem;
  height: 100vh;
  background: var(--v6f2-bg-light);
  border-left: 0.1rem solid rgba(255, 0, 0, 0.2);
  transition: right 0.3s ease;
  z-index: 1600;
  overflow-y: auto;
}

.v6f2-mobile-nav.v6f2-nav-open {
  right: 0;
}

.v6f2-mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 1.6rem;
  border-bottom: 0.1rem solid rgba(255, 0, 0, 0.1);
}

.v6f2-nav-close {
  background: none;
  border: none;
  color: var(--v6f2-text-primary);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.8rem;
  border-radius: 0.4rem;
  transition: var(--v6f2-transition);
}

.v6f2-nav-close:hover {
  background: rgba(255, 0, 0, 0.1);
  color: var(--v6f2-primary);
}

.v6f2-nav-menu {
  list-style: none;
  padding: 1rem 0;
}

.v6f2-nav-item {
  border-bottom: 0.1rem solid rgba(255, 255, 255, 0.05);
}

.v6f2-nav-link {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.6rem;
  text-decoration: none;
  color: var(--v6f2-text-secondary);
  transition: var(--v6f2-transition);
  font-size: 1.5rem;
}

.v6f2-nav-link:hover {
  background: rgba(255, 0, 0, 0.05);
  color: var(--v6f2-primary);
}

.v6f2-nav-cta {
  padding: 2rem 1.6rem;
}

/* ===== BUTTONS ===== */
.v6f2-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 1rem 2rem;
  border: none;
  border-radius: var(--v6f2-border-radius);
  font-size: 1.4rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: var(--v6f2-transition);
  min-height: 4.4rem;
  white-space: nowrap;
}

.v6f2-btn-primary {
  background: linear-gradient(135deg, var(--v6f2-primary), var(--v6f2-accent));
  color: white;
  box-shadow: var(--v6f2-shadow);
}

.v6f2-btn-primary:hover {
  transform: translateY(-0.2rem);
  box-shadow: var(--v6f2-shadow-hover);
}

.v6f2-btn-secondary {
  background: linear-gradient(135deg, var(--v6f2-secondary), #26a69a);
  color: white;
}

.v6f2-btn-secondary:hover {
  transform: translateY(-0.2rem);
  background: linear-gradient(135deg, #26a69a, var(--v6f2-secondary));
}

.v6f2-btn-accent {
  background: linear-gradient(135deg, var(--v6f2-accent), var(--v6f2-primary));
  color: white;
}

.v6f2-btn-sm {
  padding: 0.8rem 1.6rem;
  font-size: 1.2rem;
  min-height: 3.6rem;
}

.v6f2-btn-lg {
  padding: 1.4rem 2.8rem;
  font-size: 1.6rem;
  min-height: 5.2rem;
}

/* ===== HERO SECTION ===== */
.v6f2-hero {
  padding: 4rem 0;
  background: linear-gradient(135deg, rgba(255, 0, 0, 0.1), rgba(220, 20, 60, 0.1));
  border-bottom: 0.1rem solid rgba(255, 0, 0, 0.1);
}

.v6f2-hero-content {
  text-align: center;
}

.v6f2-hero-title {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--v6f2-text-primary);
  margin-bottom: 1.6rem;
  line-height: 1.2;
}

.v6f2-hero-text {
  font-size: 1.6rem;
  color: var(--v6f2-text-secondary);
  margin-bottom: 2.4rem;
  line-height: 1.5;
}

.v6f2-cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  align-items: center;
}

/* ===== CAROUSEL ===== */
.v6f2-carousel-container {
  position: relative;
  margin: 2rem 0;
  border-radius: var(--v6f2-border-radius);
  overflow: hidden;
}

.v6f2-carousel {
  display: flex;
  transition: transform 0.5s ease;
}

.v6f2-carousel-slide {
  min-width: 100%;
  cursor: pointer;
}

.v6f2-carousel-img {
  width: 100%;
  height: 20rem;
  object-fit: cover;
  display: block;
}

.v6f2-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  padding: 1.6rem;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

.v6f2-carousel-dot {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: var(--v6f2-transition);
}

.v6f2-carousel-dot.active {
  background: var(--v6f2-primary);
  transform: scale(1.2);
}

/* ===== SECTIONS ===== */
.v6f2-section {
  padding: 3rem 0;
}

.v6f2-section-alt {
  background: rgba(255, 255, 255, 0.02);
}

.v6f2-section-title {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--v6f2-text-primary);
  text-align: center;
  margin-bottom: 2.4rem;
}

/* ===== CARDS & COMPONENTS ===== */
.v6f2-card {
  background: rgba(255, 255, 255, 0.05);
  border: 0.1rem solid rgba(255, 0, 0, 0.1);
  border-radius: var(--v6f2-border-radius);
  padding: 2.4rem 2rem;
  box-shadow: var(--v6f2-shadow);
  backdrop-filter: blur(1rem);
}

.v6f2-features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.v6f2-feature-card {
  background: rgba(255, 255, 255, 0.03);
  border: 0.1rem solid rgba(255, 0, 0, 0.1);
  border-radius: var(--v6f2-border-radius);
  padding: 2rem;
  text-align: center;
  transition: var(--v6f2-transition);
}

.v6f2-feature-card:hover {
  transform: translateY(-0.4rem);
  box-shadow: var(--v6f2-shadow-hover);
  border-color: var(--v6f2-primary);
}

.v6f2-feature-icon {
  font-size: 3rem;
  margin-bottom: 1.2rem;
  display: block;
}

.v6f2-feature-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--v6f2-text-primary);
  margin-bottom: 1rem;
}

.v6f2-feature-text {
  color: var(--v6f2-text-secondary);
  line-height: 1.6;
}

/* ===== GAMES GRID ===== */
.v6f2-games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr));
  gap: 1.2rem;
  padding: 1rem 0;
}

.v6f2-game-card {
  background: rgba(255, 255, 255, 0.05);
  border: 0.1rem solid rgba(255, 0, 0, 0.1);
  border-radius: var(--v6f2-border-radius);
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  transition: var(--v6f2-transition);
}

.v6f2-game-card:hover {
  transform: translateY(-0.2rem);
  box-shadow: var(--v6f2-shadow);
  border-color: var(--v6f2-primary);
}

.v6f2-game-img {
  width: 4.8rem;
  height: 4.8rem;
  border-radius: 0.6rem;
  object-fit: cover;
  margin-bottom: 0.8rem;
}

.v6f2-game-name {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--v6f2-text-primary);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* ===== BOTTOM NAVIGATION ===== */
.v6f2-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(12, 12, 12, 0.95);
  backdrop-filter: blur(1rem);
  border-top: 0.1rem solid rgba(255, 0, 0, 0.2);
  z-index: 999;
  height: 6.4rem;
}

.v6f2-bottom-nav-content {
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 100%;
  max-width: var(--v6f2-max-width);
  margin: 0 auto;
  padding: 0 0.8rem;
}

.v6f2-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 4.4rem;
  height: 4.4rem;
  text-decoration: none;
  color: var(--v6f2-text-muted);
  transition: var(--v6f2-transition);
  border-radius: 0.8rem;
  padding: 0.4rem;
}

.v6f2-bottom-nav-item:hover,
.v6f2-bottom-nav-item.active {
  color: var(--v6f2-primary);
  transform: scale(1.1);
}

.v6f2-bottom-nav-icon {
  font-size: 2rem;
  margin-bottom: 0.2rem;
}

.v6f2-bottom-nav-text {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1;
}

/* ===== FOOTER ===== */
.v6f2-footer {
  background: var(--v6f2-bg-light);
  border-top: 0.1rem solid rgba(255, 0, 0, 0.1);
  padding: 3rem 0 1.5rem;
}

.v6f2-footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.4rem;
  margin-bottom: 2.4rem;
}

.v6f2-footer-section h3 {
  color: var(--v6f2-primary);
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
}

.v6f2-footer-links {
  list-style: none;
}

.v6f2-footer-links li {
  margin-bottom: 0.8rem;
}

.v6f2-footer-links a {
  color: var(--v6f2-text-secondary);
  text-decoration: none;
  font-size: 1.3rem;
  transition: var(--v6f2-transition);
}

.v6f2-footer-links a:hover {
  color: var(--v6f2-primary);
}

.v6f2-partners-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.v6f2-partner-logo {
  width: 100%;
  height: 3rem;
  object-fit: contain;
  filter: grayscale(1) opacity(0.6);
  transition: var(--v6f2-transition);
}

.v6f2-partner-logo:hover {
  filter: grayscale(0) opacity(1);
}

.v6f2-footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 0.1rem solid rgba(255, 255, 255, 0.1);
  color: var(--v6f2-text-muted);
  font-size: 1.2rem;
  line-height: 1.5;
}

/* ===== RESPONSIVE BREAKPOINTS ===== */
@media (min-width: 375px) {
  .v6f2-games-grid {
    grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
  }
}

@media (min-width: 414px) {
  .v6f2-games-grid {
    grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
  }
  
  .v6f2-cta-buttons {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus styles */
.v6f2-btn:focus,
.v6f2-nav-link:focus,
.v6f2-game-card:focus {
  outline: 0.2rem solid var(--v6f2-primary);
  outline-offset: 0.2rem;
}

/* Loading state */
.v6f2-loading {
  opacity: 0.7;
  pointer-events: none;
}

/* Text selection */
::selection {
  background: rgba(255, 0, 0, 0.3);
  color: white;
}