/* PH678 Gaming Platform - Universal CSS Design System */
/* Copyright 2024-2025 PH678.click - Mobile-First Responsive Design */

/* Root Configuration - CSS Custom Properties */
:root {
  --vdac-primary: #FFBF00;
  --vdac-secondary: #20B2AA;
  --vdac-success: #008000;
  --vdac-bg-dark: #1A1A2E;
  --vdac-bg-light: #D3D3D3;
  --vdac-text-light: #FFFFFF;
  --vdac-text-dark: #1A1A2E;
  --vdac-text-muted: #808080;
  --vdac-shadow: rgba(0,0,0,0.1);
  --vdac-border: rgba(255,255,255,0.1);
  --vdac-gradient: linear-gradient(135deg, var(--vdac-primary), var(--vdac-secondary));
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

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

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

/* Container System */
.vdac-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
}

.vdac-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.vdac-main {
  flex: 1;
  padding-bottom: 112px;
}

/* Header Navigation */
.vdac-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--vdac-bg-dark);
  border-bottom: 1px solid var(--vdac-border);
  z-index: 1000;
  padding: 16px 0;
  backdrop-filter: blur(10px);
}

.vdac-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
}

.vdac-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: bold;
  color: var(--vdac-primary);
  text-decoration: none;
}

.vdac-logo img {
  width: 32px;
  height: 32px;
  border-radius: 4px;
}

.vdac-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.vdac-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 36px;
  text-align: center;
}

.vdac-btn-primary {
  background: var(--vdac-gradient);
  color: var(--vdac-text-dark);
}

.vdac-btn-secondary {
  background: transparent;
  color: var(--vdac-text-light);
  border: 1px solid var(--vdac-primary);
}

.vdac-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--vdac-shadow);
}

.vdac-menu-toggle {
  background: none;
  border: none;
  color: var(--vdac-text-light);
  font-size: 18px;
  cursor: pointer;
  padding: 5px;
  border-radius: 4px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile Menu */
.vdac-mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  max-width: 90vw;
  height: 100vh;
  background: var(--vdac-bg-dark);
  transition: transform 0.3s ease;
  z-index: 1001;
  padding: 80px 20px 20px;
  border-left: 1px solid var(--vdac-border);
  transform: translateX(100%);
  overflow-y: auto;
  will-change: transform;
}

.vdac-mobile-menu.vdac-active {
  transform: translateX(0);
}

.vdac-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

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

.vdac-menu-links {
  list-style: none;
}

.vdac-menu-links li {
  margin-bottom: 10px;
}

.vdac-menu-links a {
  color: var(--vdac-text-light);
  text-decoration: none;
  font-size: 14px;
  padding: 10px 0;
  display: block;
  border-bottom: 1px solid var(--vdac-border);
  transition: color 0.3s ease;
}

.vdac-menu-links a:hover {
  color: var(--vdac-primary);
}

/* Carousel/Slider */
.vdac-carousel {
  margin: 80px 0 20px;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
}

.vdac-carousel-container {
  position: relative;
  height: 200px;
}

.vdac-carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  cursor: pointer;
}

.vdac-carousel-slide:first-child {
  display: block;
}

.vdac-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

/* Game Sections */
.vdac-game-section {
  margin: 30px 0;
}

.vdac-section-title {
  font-size: 20px;
  font-weight: bold;
  color: var(--vdac-primary);
  margin-bottom: 15px;
  padding: 0 16px;
}

.vdac-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 0 16px;
}

.vdac-game-card {
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid var(--vdac-border);
}

.vdac-game-card:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,0.1);
  border-color: var(--vdac-primary);
}

.vdac-game-card img {
  width: 100%;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 8px;
}

.vdac-game-card h3 {
  font-size: 11px;
  color: var(--vdac-text-light);
  margin: 0;
  line-height: 1.3;
}

/* Content Sections */
.vdac-content-section {
  margin: 30px 0;
  padding: 20px 16px;
  background: rgba(255,255,255,0.03);
  border-radius: 10px;
  border: 1px solid var(--vdac-border);
}

.vdac-content-section h1 {
  font-size: 22px;
  color: var(--vdac-primary);
  margin-bottom: 15px;
}

.vdac-content-section h2 {
  font-size: 20px;
  color: var(--vdac-primary);
  margin-bottom: 15px;
}

.vdac-content-section h3 {
  font-size: 18px;
  color: var(--vdac-secondary);
  margin: 20px 0 10px;
}

.vdac-content-section p {
  margin-bottom: 15px;
  line-height: 1.6;
  font-size: 14px;
}

.vdac-content-section ul,
.vdac-content-section ol {
  margin: 15px 0;
  padding-left: 20px;
}

.vdac-content-section li {
  margin-bottom: 8px;
  font-size: 14px;
}

/* Promotional Links */
.vdac-promo-link {
  color: var(--vdac-primary);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

.vdac-promo-link:hover {
  color: var(--vdac-secondary);
  border-bottom-color: var(--vdac-secondary);
}

/* RTP Analysis Table */
.vdac-rtp-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  overflow: hidden;
}

.vdac-rtp-table th,
.vdac-rtp-table td {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid var(--vdac-border);
  font-size: 12px;
}

.vdac-rtp-table th {
  background: var(--vdac-primary);
  color: var(--vdac-text-dark);
  font-weight: 600;
}

.vdac-rtp-table tr:last-child td {
  border-bottom: none;
}

/* Bottom Navigation */
.vdac-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--vdac-bg-dark);
  border-top: 1px solid var(--vdac-border);
  z-index: 1000;
  padding: 8px 0;
  backdrop-filter: blur(10px);
}

.vdac-bottom-nav-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  max-width: 430px;
  margin: 0 auto;
}

.vdac-bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--vdac-text-muted);
  transition: all 0.3s ease;
  padding: 5px;
  border-radius: 4px;
  min-width: 60px;
}

.vdac-bottom-nav a.vdac-active,
.vdac-bottom-nav a:hover {
  color: var(--vdac-primary);
  transform: translateY(-2px);
}

.vdac-bottom-nav i {
  font-size: 24px;
  margin-bottom: 4px;
}

.vdac-bottom-nav span {
  font-size: 10px;
  font-weight: 500;
}

/* Footer */
.vdac-footer {
  background: rgba(0,0,0,0.3);
  padding: 30px 0 100px;
  margin-top: 40px;
  border-top: 1px solid var(--vdac-border);
}

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

.vdac-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
}

.vdac-footer-links a {
  color: var(--vdac-text-light);
  text-decoration: none;
  font-size: 12px;
  transition: color 0.3s ease;
}

.vdac-footer-links a:hover {
  color: var(--vdac-primary);
}

.vdac-partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 20px 0;
}

.vdac-partners img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.vdac-partners img:hover {
  opacity: 1;
}

.vdac-copyright {
  font-size: 12px;
  color: var(--vdac-text-muted);
  margin-top: 20px;
}

/* Animations */
.vdac-fade-in {
  animation: vdacFadeIn 0.6s ease-out;
}

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

.vdac-animate-on-scroll {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.6s ease-out;
}

/* Touch Device Optimizations */
.vdac-touch-device .vdac-btn {
  -webkit-tap-highlight-color: transparent;
}

.vdac-touch-device .vdac-game-card {
  -webkit-tap-highlight-color: transparent;
}

/* Responsive Design */
@media (max-width: 360px) {
  .vdac-game-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .vdac-nav-actions {
    gap: 5px;
  }
  
  .vdac-btn {
    padding: 6px 12px;
    font-size: 11px;
  }
  
  .vdac-mobile-menu {
    width: 260px;
  }
  
  .vdac-menu-toggle {
    font-size: 16px;
    width: 24px;
    height: 24px;
  }
}

@media (min-width: 431px) {
  .vdac-container {
    max-width: 430px;
  }
}

/* Loading States */
.vdac-loading {
  position: relative;
  overflow: hidden;
}

.vdac-loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,191,0,0.2), transparent);
  animation: vdacLoading 1.5s infinite;
}

@keyframes vdacLoading {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* Accessibility */
.vdac-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;
}

/* Focus Styles */
.vdac-btn:focus,
.vdac-game-card:focus,
.vdac-menu-toggle:focus {
  outline: 2px solid var(--vdac-primary);
  outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  :root {
    --vdac-border: rgba(255,255,255,0.3);
  }
  
  .vdac-game-card {
    border-width: 2px;
  }
}

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