/* Casino Plus App - Theme Stylesheet */
/* Version: 1.0.0 */
/* Mobile-first responsive design */

/* CSS Variables - Color Palette */
:root {
  --vb41-primary: #4682B4;
  --vb41-secondary: #FFFFBA;
  --vb41-dark: #0D1117;
  --vb41-accent: #FFDFBA;
  --vb41-highlight: #48D1CC;

  /* Color variations */
  --vb41-primary-light: #5A92C4;
  --vb41-primary-dark: #3A6C94;
  --vb41-secondary-light: #FFFFE6;
  --vb41-secondary-dark: #CCCC8A;
  --vb41-highlight-light: #6EDDD8;
  --vb41-highlight-dark: #38B5B0;

  /* Neutral colors */
  --vb41-white: #FFFFFF;
  --vb41-gray-50: #F9FAFB;
  --vb41-gray-100: #F3F4F6;
  --vb41-gray-200: #E5E7EB;
  --vb41-gray-300: #D1D5DB;
  --vb41-gray-400: #9CA3AF;
  --vb41-gray-500: #6B7280;
  --vb41-gray-600: #4B5563;
  --vb41-gray-700: #374151;
  --vb41-gray-800: #1F2937;
  --vb41-gray-900: #111827;

  /* Typography */
  --vb41-font-family-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --vb41-font-family-secondary: 'Georgia', 'Times New Roman', serif;

  /* Spacing scale */
  --vb41-space-1: 0.25rem;
  --vb41-space-2: 0.5rem;
  --vb41-space-3: 0.75rem;
  --vb41-space-4: 1rem;
  --vb41-space-5: 1.25rem;
  --vb41-space-6: 1.5rem;
  --vb41-space-8: 2rem;
  --vb41-space-10: 2.5rem;
  --vb41-space-12: 3rem;
  --vb41-space-16: 4rem;
  --vb41-space-20: 5rem;

  /* Border radius */
  --vb41-radius-sm: 0.25rem;
  --vb41-radius-md: 0.5rem;
  --vb41-radius-lg: 1rem;
  --vb41-radius-xl: 1.5rem;
  --vb41-radius-full: 9999px;

  /* Shadows */
  --vb41-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --vb41-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --vb41-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --vb41-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  /* Z-index scale */
  --vb41-z-dropdown: 1000;
  --vb41-z-sticky: 1020;
  --vb41-z-fixed: 1030;
  --vb41-z-modal-backdrop: 1040;
  --vb41-z-modal: 1050;
  --vb41-z-popover: 1060;
  --vb41-z-tooltip: 1070;

  /* Transitions */
  --vb41-transition-fast: 150ms ease-in-out;
  --vb41-transition-normal: 250ms ease-in-out;
  --vb41-transition-slow: 350ms ease-in-out;
}

/* Reset and base styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 62.5%; /* 10px base */
  scroll-behavior: smooth;
}

body {
  font-family: var(--vb41-font-family-primary);
  font-size: 1.6rem;
  line-height: 1.5;
  color: var(--vb41-secondary);
  background-color: var(--vb41-dark);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Container */
.vb41-container {
  max-width: 430px;
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--vb41-space-4);
  position: relative;
}

/* Header */
.vb41-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--vb41-dark) 0%, #1A1F2E 100%);
  border-bottom: 1px solid rgba(72, 209, 204, 0.3);
  z-index: var(--vb41-z-fixed);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.vb41-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--vb41-space-3) 0;
  min-height: 60px;
}

.vb41-logo-section {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--vb41-secondary);
  transition: color var(--vb41-transition-fast);
}

.vb41-logo-section:hover {
  color: var(--vb41-highlight);
}

.vb41-logo {
  width: 32px;
  height: 32px;
  margin-right: var(--vb41-space-3);
  border-radius: var(--vb41-radius-md);
  box-shadow: var(--vb41-shadow-md);
}

.vb41-site-name {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--vb41-primary);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.vb41-header-actions {
  display: flex;
  align-items: center;
  gap: var(--vb41-space-3);
}

.vb41-desktop-nav {
  display: none;
}

.vb41-hamburger-btn {
  background: none;
  border: none;
  color: var(--vb41-secondary);
  font-size: 2.4rem;
  cursor: pointer;
  padding: var(--vb41-space-2);
  border-radius: var(--vb41-radius-md);
  transition: all var(--vb41-transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.vb41-hamburger-btn:hover {
  background-color: rgba(72, 209, 204, 0.1);
  color: var(--vb41-highlight);
}

.vb41-hamburger-btn.vb41-menu-active {
  background-color: var(--vb41-primary);
  color: var(--vb41-white);
}

/* Mobile Menu */
.vb41-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: var(--vb41-z-modal-backdrop);
  opacity: 0;
  visibility: hidden;
  transition: all var(--vb41-transition-normal);
}

.vb41-menu-overlay.vb41-overlay-show {
  opacity: 1;
  visibility: visible;
}

.vb41-mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 100vh;
  background: linear-gradient(180deg, var(--vb41-dark) 0%, #1A1F2E 100%);
  z-index: var(--vb41-z-modal);
  transform: translateX(-100%);
  transition: transform var(--vb41-transition-normal);
  overflow-y: auto;
  box-shadow: var(--vb41-shadow-xl);
}

.vb41-mobile-menu.vb41-menu-open {
  transform: translateX(0);
}

.vb41-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--vb41-space-4);
  border-bottom: 1px solid rgba(72, 209, 204, 0.2);
}

.vb41-menu-close {
  background: none;
  border: none;
  color: var(--vb41-secondary);
  font-size: 2.4rem;
  cursor: pointer;
  padding: var(--vb41-space-2);
  border-radius: var(--vb41-radius-md);
  transition: all var(--vb41-transition-fast);
}

.vb41-menu-close:hover {
  background-color: rgba(72, 209, 204, 0.1);
  color: var(--vb41-highlight);
}

.vb41-menu-nav {
  padding: var(--vb41-space-4);
}

.vb41-menu-nav a {
  display: flex;
  align-items: center;
  color: var(--vb41-secondary);
  text-decoration: none;
  padding: var(--vb41-space-3) var(--vb41-space-4);
  margin-bottom: var(--vb41-space-2);
  border-radius: var(--vb41-radius-md);
  transition: all var(--vb41-transition-fast);
  font-size: 1.6rem;
}

.vb41-menu-nav a:hover {
  background-color: rgba(72, 209, 204, 0.1);
  color: var(--vb41-highlight);
  transform: translateX(4px);
}

.vb41-menu-nav i {
  width: 24px;
  margin-right: var(--vb41-space-3);
  font-size: 1.8rem;
}

/* Main Content */
.vb41-main-content {
  margin-top: 80px;
  padding-bottom: 100px; /* Space for bottom navigation */
}

.vb41-content {
  padding: var(--vb41-space-4) 0;
}

/* Buttons */
.vb41-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--vb41-space-3) var(--vb41-space-6);
  border: none;
  border-radius: var(--vb41-radius-lg);
  font-size: 1.4rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--vb41-transition-fast);
  min-height: 44px;
  min-width: 44px;
  gap: var(--vb41-space-2);
  position: relative;
  overflow: hidden;
}

.vb41-btn:active {
  transform: scale(0.98);
}

.vb41-btn-primary {
  background: linear-gradient(135deg, var(--vb41-primary) 0%, var(--vb41-primary-light) 100%);
  color: var(--vb41-white);
  box-shadow: 0 4px 15px rgba(70, 130, 180, 0.3);
}

.vb41-btn-primary:hover {
  background: linear-gradient(135deg, var(--vb41-primary-light) 0%, var(--vb41-primary) 100%);
  box-shadow: 0 6px 20px rgba(70, 130, 180, 0.4);
  transform: translateY(-2px);
}

.vb41-btn-secondary {
  background: linear-gradient(135deg, var(--vb41-highlight) 0%, var(--vb41-highlight-light) 100%);
  color: var(--vb41-dark);
  box-shadow: 0 4px 15px rgba(72, 209, 204, 0.3);
}

.vb41-btn-secondary:hover {
  background: linear-gradient(135deg, var(--vb41-highlight-light) 0%, var(--vb41-highlight) 100%);
  box-shadow: 0 6px 20px rgba(72, 209, 204, 0.4);
  transform: translateY(-2px);
}

.vb41-btn-accent {
  background: linear-gradient(135deg, var(--vb41-accent) 0%, #FFE8CC 100%);
  color: var(--vb41-dark);
  box-shadow: 0 4px 15px rgba(255, 223, 186, 0.3);
}

.vb41-btn-accent:hover {
  background: linear-gradient(135deg, #FFE8CC 0%, var(--vb41-accent) 100%);
  box-shadow: 0 6px 20px rgba(255, 223, 186, 0.4);
  transform: translateY(-2px);
}

/* Cards */
.vb41-card {
  background: linear-gradient(135deg, rgba(26, 31, 46, 0.9) 0%, rgba(26, 31, 46, 0.8) 100%);
  border: 1px solid rgba(72, 209, 204, 0.2);
  border-radius: var(--vb41-radius-lg);
  padding: var(--vb41-space-6);
  margin-bottom: var(--vb41-space-6);
  box-shadow: var(--vb41-shadow-lg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all var(--vb41-transition-normal);
}

.vb41-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--vb41-shadow-xl);
  border-color: rgba(72, 209, 204, 0.4);
}

/* Sections */
.vb41-section {
  margin-bottom: var(--vb41-space-8);
}

.vb41-section h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--vb41-primary);
  margin-bottom: var(--vb41-space-4);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.vb41-text-center {
  text-align: center;
}

/* Typography */
h1 {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--vb41-secondary);
  margin-bottom: var(--vb41-space-6);
  text-align: center;
  line-height: 1.3;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

h2 {
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--vb41-primary);
  margin-bottom: var(--vb41-space-4);
  line-height: 1.3;
}

h3 {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--vb41-highlight);
  margin-bottom: var(--vb41-space-3);
  line-height: 1.4;
}

p {
  margin-bottom: var(--vb41-space-4);
  line-height: 1.6;
}

strong, b {
  color: var(--vb41-primary);
  font-weight: 600;
}

/* Game Grid */
.vb41-game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: var(--vb41-space-3);
  margin-bottom: var(--vb41-space-6);
}

.vb41-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--vb41-secondary);
  padding: var(--vb41-space-3);
  border-radius: var(--vb41-radius-lg);
  background: rgba(26, 31, 46, 0.6);
  border: 1px solid rgba(72, 209, 204, 0.2);
  transition: all var(--vb41-transition-fast);
  cursor: pointer;
}

.vb41-game-item:hover {
  background: rgba(72, 209, 204, 0.1);
  border-color: var(--vb41-highlight);
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(72, 209, 204, 0.3);
}

.vb41-game-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--vb41-radius-md);
  margin-bottom: var(--vb41-space-2);
  object-fit: cover;
  box-shadow: var(--vb41-shadow-md);
}

.vb41-game-name {
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.3;
  color: var(--vb41-secondary-light);
}

/* Bottom Navigation */
.vb41-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, rgba(13, 17, 23, 0.95) 0%, rgba(13, 17, 23, 1) 100%);
  border-top: 2px solid var(--vb41-primary);
  z-index: var(--vb41-z-fixed);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.vb41-bottom-nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 64px;
  padding: 0;
}

.vb41-bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--vb41-secondary);
  text-decoration: none;
  min-width: 60px;
  min-height: 60px;
  transition: all var(--vb41-transition-fast);
  position: relative;
  cursor: pointer;
}

.vb41-bottom-nav a:hover,
.vb41-bottom-nav a.active {
  color: var(--vb41-primary);
  background: rgba(72, 209, 204, 0.1);
}

.vb41-bottom-nav i {
  font-size: 24px;
  margin-bottom: 4px;
  transition: all var(--vb41-transition-fast);
}

.vb41-bottom-nav span {
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.vb41-bottom-nav a:hover i,
.vb41-bottom-nav a.active i {
  transform: scale(1.1);
  color: var(--vb41-highlight);
}

/* Footer */
.vb41-footer {
  background: linear-gradient(180deg, rgba(26, 31, 46, 0.95) 0%, rgba(13, 17, 23, 1) 100%);
  border-top: 1px solid rgba(72, 209, 204, 0.3);
  padding: var(--vb41-space-8) 0 var(--vb41-space-6);
  margin-top: var(--vb41-space-12);
}

.vb41-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--vb41-space-4);
  margin-bottom: var(--vb41-space-6);
}

.vb41-footer-links a {
  color: var(--vb41-secondary);
  text-decoration: none;
  font-size: 1.4rem;
  padding: var(--vb41-space-2) var(--vb41-space-3);
  border-radius: var(--vb41-radius-md);
  transition: all var(--vb41-transition-fast);
}

.vb41-footer-links a:hover {
  background-color: rgba(72, 209, 204, 0.1);
  color: var(--vb41-highlight);
}

.vb41-partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--vb41-space-4);
  margin-bottom: var(--vb41-space-6);
}

.vb41-partner-logo {
  width: 60px;
  height: 30px;
  object-fit: contain;
  filter: grayscale(50%);
  opacity: 0.7;
  transition: all var(--vb41-transition-fast);
}

.vb41-partner-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
}

.vb41-copyright {
  text-align: center;
  color: var(--vb41-gray-500);
  font-size: 1.2rem;
  line-height: 1.5;
}

/* Loading States */
.vb41-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.7;
}

.vb41-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--vb41-gray-300);
  border-top: 2px solid var(--vb41-primary);
  border-radius: 50%;
  animation: vb41-spin 1s linear infinite;
  position: absolute;
  top: 50%;
  left: 50%;
  margin-top: -10px;
  margin-left: -10px;
}

@keyframes vb41-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Text utilities */
.vb41-text-primary {
  color: var(--vb41-primary);
  text-decoration: none;
  font-weight: 600;
}

.vb41-text-primary:hover {
  color: var(--vb41-highlight);
  text-decoration: underline;
}

/* Responsive Design */
@media (min-width: 769px) {
  .vb41-container {
    max-width: 1200px;
    padding: 0 var(--vb41-space-6);
  }

  .vb41-desktop-nav {
    display: flex;
    gap: var(--vb41-space-4);
  }

  .vb41-hamburger-btn {
    display: none;
  }

  .vb41-bottom-nav {
    display: none;
  }

  .vb41-main-content {
    padding-bottom: 0;
  }

  .vb41-game-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }

  .vb41-game-icon {
    width: 80px;
    height: 80px;
  }

  .vb41-game-name {
    font-size: 1.3rem;
  }
}

@media (max-width: 430px) {
  html {
    font-size: 50%;
  }

  .vb41-container {
    padding: 0 var(--vb41-space-2);
  }

  .vb41-game-grid {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: var(--vb41-space-2);
  }

  .vb41-game-icon {
    width: 50px;
    height: 50px;
  }

  .vb41-game-name {
    font-size: 1rem;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (prefers-contrast: high) {
  :root {
    --vb41-primary: #0066CC;
    --vb41-secondary: #FFFF00;
    --vb41-dark: #000000;
    --vb41-highlight: #00FFFF;
  }
}

/* Focus styles for accessibility */
.vb41-btn:focus,
.vb41-game-item:focus,
.vb41-bottom-nav a:focus {
  outline: 2px solid var(--vb41-highlight);
  outline-offset: 2px;
}

.vb41-hamburger-btn:focus,
.vb41-menu-close:focus {
  outline: 2px solid var(--vb41-highlight);
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .vb41-header,
  .vb41-bottom-nav,
  .vb41-footer {
    display: none;
  }

  .vb41-main-content {
    margin-top: 0;
    padding-bottom: 0;
  }

  body {
    background: white;
    color: black;
  }
}