/* VIPPH Click - Mobile-First Casino CSS Framework */
/* Core Variables and Color Scheme */
:root {
  --v4d1-primary: #FFB3FF;
  --v4d1-secondary: #2C2C2C;
  --v4d1-accent: #ADFF2F;
  --v4d1-success: #006400;
  --v4d1-text: #228B22;
  --v4d1-bg: #1A1A1A;
  --v4d1-surface: #2C2C2C;
  --v4d1-card: #333333;
  --v4d1-border: #444444;
  --v4d1-shadow: rgba(255, 179, 255, 0.2);
  --v4d1-overlay: rgba(0, 0, 0, 0.8);
  --v4d1-gradient-1: linear-gradient(135deg, #FFB3FF, #ADFF2F);
  --v4d1-gradient-2: linear-gradient(45deg, #006400, #228B22);
  --v4d1-gradient-3: linear-gradient(90deg, #2C2C2C, #FFB3FF);
}

/* Global Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--v4d1-bg);
  color: var(--v4d1-text);
  line-height: 1.6;
  font-size: 14px;
  overflow-x: hidden;
}

/* Container and Layout */
.v4d1-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  max-width: 430px;
  margin: 0 auto;
  background: var(--v4d1-bg);
  position: relative;
}

.v4d1-container {
  padding: 0 1rem;
  max-width: 100%;
  margin: 0 auto;
}

.v4d1-main {
  flex: 1;
  padding-bottom: 5rem;
  padding-top: 1rem;
}

/* Header Styles */
.v4d1-header {
  background: var(--v4d1-gradient-3);
  padding: 0.8rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px var(--v4d1-shadow);
}

.v4d1-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
}

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

.v4d1-logo-icon {
  width: 32px;
  height: 32px;
  margin-right: 0.5rem;
  border-radius: 6px;
}

.v4d1-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.v4d1-menu-toggle {
  background: none;
  border: none;
  color: var(--v4d1-primary);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.v4d1-menu-toggle:hover {
  background: var(--v4d1-card);
  transform: scale(1.1);
}

/* Mobile Navigation */
.v4d1-mobile-nav {
  position: fixed;
  top: 0;
  left: -100%;
  width: 280px;
  height: 100vh;
  background: var(--v4d1-surface);
  z-index: 200;
  transition: left 0.3s ease;
  padding: 2rem 0;
  box-shadow: 2px 0 15px var(--v4d1-shadow);
}

.v4d1-mobile-nav.v4d1-nav-active {
  left: 0;
}

.v4d1-nav-list {
  list-style: none;
  padding: 0;
}

.v4d1-nav-item {
  margin: 0;
}

.v4d1-nav-link {
  display: block;
  padding: 1rem 2rem;
  color: var(--v4d1-primary);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.v4d1-nav-link:hover {
  background: var(--v4d1-card);
  border-left-color: var(--v4d1-accent);
  transform: translateX(5px);
}

.v4d1-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--v4d1-overlay);
  z-index: 150;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.v4d1-nav-overlay.v4d1-overlay-active {
  opacity: 1;
  visibility: visible;
}

/* Button Styles */
.v4d1-btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background: var(--v4d1-gradient-1);
  color: var(--v4d1-secondary);
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  box-shadow: 0 4px 12px var(--v4d1-shadow);
}

.v4d1-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--v4d1-shadow);
}

.v4d1-btn-small {
  padding: 0.6rem 1rem;
  font-size: 0.8rem;
}

.v4d1-btn-large {
  padding: 1rem 2rem;
  font-size: 1rem;
}

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

.v4d1-btn-outline:hover {
  background: var(--v4d1-primary);
  color: var(--v4d1-secondary);
}

/* Content Sections */
.v4d1-content-title {
  font-size: 1.6rem;
  font-weight: bold;
  color: var(--v4d1-primary);
  text-align: center;
  margin: 1.5rem 0;
  text-shadow: 0 2px 4px var(--v4d1-shadow);
}

.v4d1-content-section {
  background: var(--v4d1-card);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  box-shadow: 0 4px 15px var(--v4d1-shadow);
  border: 1px solid var(--v4d1-border);
}

.v4d1-section-title {
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--v4d1-accent);
  margin-bottom: 1rem;
  text-align: center;
}

.v4d1-content-text {
  color: var(--v4d1-text);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.v4d1-content-text strong {
  color: var(--v4d1-primary);
}

/* Carousel Styles */
.v4d1-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  margin: 1.5rem 0;
}

.v4d1-carousel-slide {
  display: none;
  position: relative;
}

.v4d1-carousel-slide.v4d1-slide-active {
  display: block;
}

.v4d1-carousel-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
}

.v4d1-carousel-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--v4d1-gradient-2);
  color: white;
  padding: 1rem;
  border-radius: 0 0 12px 12px;
}

.v4d1-carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.v4d1-carousel-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--v4d1-border);
  cursor: pointer;
  transition: all 0.3s ease;
}

.v4d1-carousel-indicator.v4d1-indicator-active {
  background: var(--v4d1-primary);
  transform: scale(1.2);
}

/* Game Grid */
.v4d1-game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(85px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.v4d1-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  background: var(--v4d1-surface);
  border-radius: 12px;
  padding: 0.8rem;
  transition: all 0.3s ease;
  border: 1px solid var(--v4d1-border);
}

.v4d1-game-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px var(--v4d1-shadow);
  border-color: var(--v4d1-primary);
}

.v4d1-game-icon {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  object-fit: cover;
}

.v4d1-game-name {
  font-size: 0.75rem;
  color: var(--v4d1-primary);
  text-align: center;
  font-weight: 500;
  line-height: 1.2;
}

/* Stats Grid */
.v4d1-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.v4d1-stat-card {
  background: var(--v4d1-gradient-1);
  border-radius: 12px;
  padding: 1.2rem;
  text-align: center;
  box-shadow: 0 4px 15px var(--v4d1-shadow);
}

.v4d1-stat-number {
  display: block;
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--v4d1-secondary);
  margin-bottom: 0.3rem;
}

.v4d1-stat-label {
  font-size: 0.8rem;
  color: var(--v4d1-secondary);
  font-weight: 500;
}

/* Bottom Navigation */
.v4d1-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: var(--v4d1-surface);
  display: flex;
  justify-content: space-around;
  padding: 0.8rem 0.5rem;
  box-shadow: 0 -4px 15px var(--v4d1-shadow);
  border-top: 1px solid var(--v4d1-border);
  z-index: 90;
}

.v4d1-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  padding: 0.3rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  min-width: 50px;
}

.v4d1-bottom-nav-item:hover {
  background: var(--v4d1-card);
  transform: translateY(-2px);
}

.v4d1-bottom-nav-item.v4d1-nav-active {
  background: var(--v4d1-primary);
  color: var(--v4d1-secondary);
}

.v4d1-bottom-nav-icon {
  font-size: 1.2rem;
  color: var(--v4d1-primary);
  margin-bottom: 0.2rem;
}

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

.v4d1-bottom-nav-text {
  font-size: 0.7rem;
  color: var(--v4d1-primary);
  font-weight: 500;
}

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

/* Footer */
.v4d1-footer {
  background: var(--v4d1-surface);
  padding: 1.5rem 0;
  margin-top: 2rem;
  border-top: 1px solid var(--v4d1-border);
}

.v4d1-copyright {
  text-align: center;
  color: var(--v4d1-text);
  font-size: 0.8rem;
}

/* Utility Classes */
.v4d1-text-center {
  text-align: center;
}

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

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

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

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

.v4d1-loading {
  opacity: 0.5;
  pointer-events: none;
}

/* Special Effects */
.v4d1-glow {
  box-shadow: 0 0 20px var(--v4d1-primary);
}

.v4d1-pulse {
  animation: v4d1Pulse 2s infinite;
}

@keyframes v4d1Pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.v4d1-fade-in {
  animation: v4d1FadeIn 0.6s ease-in;
}

@keyframes v4d1FadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.v4d1-slide-up {
  animation: v4d1SlideUp 0.4s ease-out;
}

@keyframes v4d1SlideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

/* Responsive Design Enhancements */
@media (max-width: 380px) {
  .v4d1-container {
    padding: 0 0.8rem;
  }
  
  .v4d1-content-title {
    font-size: 1.4rem;
  }
  
  .v4d1-game-grid {
    grid-template-columns: repeat(auto-fit, minmax(75px, 1fr));
    gap: 0.8rem;
  }
  
  .v4d1-game-icon {
    width: 50px;
    height: 50px;
  }
  
  .v4d1-game-name {
    font-size: 0.7rem;
  }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  :root {
    --v4d1-border: #666666;
    --v4d1-shadow: rgba(255, 255, 255, 0.3);
  }
}

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

/* Print Styles */
@media print {
  .v4d1-header,
  .v4d1-bottom-nav,
  .v4d1-mobile-nav,
  .v4d1-nav-overlay {
    display: none !important;
  }
  
  .v4d1-main {
    padding-bottom: 0;
  }
}