/**
 * GamePHP - Main Stylesheet
 * Prefix: vd3d-
 * Color Palette: #0D1B2A (deep navy) | #E8A838 (warm gold) | #1B3A4B (teal dark)
 * Mobile-first design, max-width 430px
 */

/* === CSS Variables === */
:root {
  --vd3d-primary: #E8A838;
  --vd3d-bg: #0D1B2A;
  --vd3d-bg-light: #1B3A4B;
  --vd3d-text: #FFF8DC;
  --vd3d-text-muted: #9DB8C9;
  --vd3d-accent: #E8A838;
  --vd3d-accent-hover: #F0C05A;
  --vd3d-border: #2A4A5C;
  --vd3d-card-bg: #152838;
  --vd3d-danger: #E85D4A;
  --vd3d-success: #4AE88D;
  --vd3d-gradient: linear-gradient(135deg, #0D1B2A 0%, #1B3A4B 100%);
  --vd3d-radius: 8px;
  --vd3d-radius-lg: 12px;
  --vd3d-shadow: 0 4px 16px rgba(0,0,0,0.3);
  --vd3d-transition: all 0.3s ease;
  font-size: 62.5%;
}

/* === Reset & Base === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', sans-serif;
  background: var(--vd3d-bg);
  color: var(--vd3d-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  overflow-x: hidden;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
}

a {
  color: var(--vd3d-accent);
  text-decoration: none;
  transition: var(--vd3d-transition);
}

a:hover {
  color: var(--vd3d-accent-hover);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* === Container === */
.vd3d-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.2rem;
}

.vd3d-wrapper {
  padding: 1.2rem;
}

/* === Header === */
.vd3d-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 1000;
  background: rgba(13, 27, 42, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--vd3d-border);
  padding: 0.8rem 1.2rem;
  transition: var(--vd3d-transition);
}

.vd3d-header-scrolled {
  background: rgba(13, 27, 42, 0.98);
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.vd3d-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.vd3d-logo-area {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.vd3d-logo-img {
  width: 28px;
  height: 28px;
  border-radius: 4px;
}

.vd3d-logo-text {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--vd3d-primary);
  letter-spacing: 0.5px;
}

.vd3d-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.vd3d-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.2rem;
  border-radius: var(--vd3d-radius);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--vd3d-transition);
  text-align: center;
  min-height: 36px;
}

.vd3d-btn-register {
  background: var(--vd3d-primary);
  color: var(--vd3d-bg);
}

.vd3d-btn-register:hover {
  background: var(--vd3d-accent-hover);
  transform: scale(1.05);
}

.vd3d-btn-login {
  background: transparent;
  color: var(--vd3d-primary);
  border: 1.5px solid var(--vd3d-primary);
}

.vd3d-btn-login:hover {
  background: rgba(232, 168, 56, 0.1);
}

.vd3d-menu-toggle {
  background: none;
  border: none;
  color: var(--vd3d-text);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* === Mobile Menu === */
.vd3d-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: var(--vd3d-transition);
}

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

.vd3d-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100%;
  background: var(--vd3d-bg);
  z-index: 9999;
  transition: right 0.3s ease;
  padding: 2rem 1.5rem;
  overflow-y: auto;
  border-left: 1px solid var(--vd3d-border);
}

.vd3d-menu-active {
  right: 0;
}

.vd3d-menu-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--vd3d-text);
  font-size: 2.4rem;
  cursor: pointer;
}

.vd3d-menu-nav {
  margin-top: 3rem;
  list-style: none;
}

.vd3d-menu-nav li {
  margin-bottom: 0.5rem;
}

.vd3d-menu-nav a {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem;
  color: var(--vd3d-text);
  font-size: 1.4rem;
  border-radius: var(--vd3d-radius);
  transition: var(--vd3d-transition);
}

.vd3d-menu-nav a:hover {
  background: var(--vd3d-bg-light);
  color: var(--vd3d-primary);
}

/* === Carousel === */
.vd3d-carousel {
  position: relative;
  width: 100%;
  border-radius: var(--vd3d-radius-lg);
  overflow: hidden;
  margin-top: 1rem;
}

.vd3d-carousel-slide {
  display: none;
  width: 100%;
  cursor: pointer;
}

.vd3d-slide-active {
  display: block;
}

.vd3d-carousel-slide img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/7;
  object-fit: cover;
}

.vd3d-carousel-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.vd3d-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  border: none;
  transition: var(--vd3d-transition);
}

.vd3d-dot-active {
  background: var(--vd3d-primary);
  transform: scale(1.3);
}

/* === Section Titles === */
.vd3d-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--vd3d-text);
  margin: 2rem 0 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--vd3d-primary);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.vd3d-section-title i,
.vd3d-section-title .material-icons {
  color: var(--vd3d-primary);
  font-size: 2rem;
}

/* === Game Grid === */
.vd3d-game-section {
  padding: 0.5rem 0;
}

.vd3d-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  padding: 0.5rem 0;
}

.vd3d-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: var(--vd3d-transition);
  border-radius: var(--vd3d-radius);
  padding: 0.4rem;
}

.vd3d-game-item:hover {
  transform: translateY(-3px);
  background: var(--vd3d-bg-light);
}

.vd3d-game-img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--vd3d-radius);
  object-fit: cover;
  border: 2px solid var(--vd3d-border);
  transition: var(--vd3d-transition);
}

.vd3d-game-item:hover .vd3d-game-img {
  border-color: var(--vd3d-primary);
}

.vd3d-game-name {
  font-size: 1rem;
  color: var(--vd3d-text-muted);
  text-align: center;
  margin-top: 0.3rem;
  line-height: 1.2rem;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* === Content Cards === */
.vd3d-card {
  background: var(--vd3d-card-bg);
  border-radius: var(--vd3d-radius-lg);
  padding: 1.5rem;
  margin: 1rem 0;
  border: 1px solid var(--vd3d-border);
}

.vd3d-card-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--vd3d-primary);
  margin-bottom: 0.8rem;
}

.vd3d-card p {
  color: var(--vd3d-text-muted);
  line-height: 1.8rem;
  font-size: 1.3rem;
}

/* === Promo Banner === */
.vd3d-promo-banner {
  background: linear-gradient(135deg, var(--vd3d-bg-light), #2A5A3C);
  border-radius: var(--vd3d-radius-lg);
  padding: 1.5rem;
  margin: 1.2rem 0;
  text-align: center;
  border: 1px solid var(--vd3d-border);
}

.vd3d-promo-banner h3 {
  color: var(--vd3d-primary);
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.vd3d-promo-banner p {
  color: var(--vd3d-text-muted);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.vd3d-btn-promo {
  background: var(--vd3d-primary);
  color: var(--vd3d-bg);
  padding: 0.8rem 2rem;
  border-radius: 2rem;
  font-weight: 700;
  font-size: 1.3rem;
  display: inline-block;
  transition: var(--vd3d-transition);
}

.vd3d-btn-promo:hover {
  background: var(--vd3d-accent-hover);
  transform: scale(1.05);
}

/* === Footer === */
.vd3d-footer {
  background: var(--vd3d-card-bg);
  border-top: 1px solid var(--vd3d-border);
  padding: 2rem 1.2rem 8rem;
  margin-top: 2rem;
}

.vd3d-footer-desc {
  color: var(--vd3d-text-muted);
  font-size: 1.2rem;
  line-height: 1.6rem;
  margin-bottom: 1.5rem;
}

.vd3d-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.vd3d-footer-links a {
  color: var(--vd3d-text-muted);
  font-size: 1.1rem;
  padding: 0.3rem 0;
  transition: var(--vd3d-transition);
}

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

.vd3d-footer-promos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.vd3d-footer-promo-btn {
  background: var(--vd3d-bg-light);
  color: var(--vd3d-primary);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--vd3d-border);
  transition: var(--vd3d-transition);
}

.vd3d-footer-promo-btn:hover {
  background: var(--vd3d-primary);
  color: var(--vd3d-bg);
}

.vd3d-footer-copy {
  color: var(--vd3d-text-muted);
  font-size: 1rem;
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid var(--vd3d-border);
}

/* === Bottom Navigation === */
.vd3d-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 60px;
  background: rgba(13, 27, 42, 0.97);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--vd3d-border);
  z-index: 1000;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 0.4rem;
}

.vd3d-bottom-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 56px;
  background: none;
  border: none;
  color: var(--vd3d-text-muted);
  cursor: pointer;
  transition: var(--vd3d-transition);
  padding: 0.3rem;
  border-radius: 8px;
}

.vd3d-bottom-btn:hover,
.vd3d-bottom-btn:focus {
  color: var(--vd3d-primary);
  background: rgba(232, 168, 56, 0.08);
}

.vd3d-bottom-btn:active {
  transform: scale(0.92);
}

.vd3d-bottom-btn i,
.vd3d-bottom-btn .material-icons {
  font-size: 22px;
  margin-bottom: 2px;
}

.vd3d-bottom-btn span {
  font-size: 1rem;
  line-height: 1;
}

.vd3d-bottom-active {
  color: var(--vd3d-primary) !important;
}

.vd3d-bottom-active i,
.vd3d-bottom-active .material-icons {
  filter: drop-shadow(0 0 4px rgba(232, 168, 56, 0.5));
}

/* === Help Page Styles === */
.vd3d-help-content {
  padding: 1rem 0;
}

.vd3d-help-content h2 {
  font-size: 1.7rem;
  color: var(--vd3d-primary);
  margin: 1.5rem 0 0.8rem;
}

.vd3d-help-content h3 {
  font-size: 1.4rem;
  color: var(--vd3d-text);
  margin: 1.2rem 0 0.6rem;
}

.vd3d-help-content p {
  color: var(--vd3d-text-muted);
  line-height: 1.8rem;
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
}

.vd3d-help-content ul,
.vd3d-help-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.vd3d-help-content li {
  color: var(--vd3d-text-muted);
  font-size: 1.3rem;
  line-height: 1.7rem;
  margin-bottom: 0.4rem;
}

.vd3d-tip-box {
  background: var(--vd3d-card-bg);
  border-left: 3px solid var(--vd3d-primary);
  padding: 1rem 1.2rem;
  margin: 1rem 0;
  border-radius: 0 var(--vd3d-radius) var(--vd3d-radius) 0;
}

.vd3d-tip-box p {
  color: var(--vd3d-text);
  font-size: 1.3rem;
  margin: 0;
}

/* === Utility Classes === */
.vd3d-text-center { text-align: center; }
.vd3d-text-gold { color: var(--vd3d-primary); }
.vd3d-text-muted { color: var(--vd3d-text-muted); }
.vd3d-mt-1 { margin-top: 1rem; }
.vd3d-mt-2 { margin-top: 2rem; }
.vd3d-mb-1 { margin-bottom: 1rem; }
.vd3d-mb-2 { margin-bottom: 2rem; }
.vd3d-p-1 { padding: 1rem; }

/* === Responsive === */
@media (min-width: 769px) {
  .vd3d-bottom-nav {
    display: none;
  }
}

@media (max-width: 768px) {
  main,
  .vd3d-main-content {
    padding-bottom: 80px;
  }
}

/* === Animations === */
@keyframes vd3d-fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.vd3d-fade-in {
  animation: vd3d-fadeIn 0.4s ease forwards;
}

/* === RTP Table === */
.vd3d-rtp-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.8rem 0;
  font-size: 1.2rem;
}

.vd3d-rtp-table th {
  background: var(--vd3d-bg-light);
  color: var(--vd3d-primary);
  padding: 0.6rem 0.8rem;
  text-align: left;
  font-weight: 600;
}

.vd3d-rtp-table td {
  padding: 0.5rem 0.8rem;
  border-bottom: 1px solid var(--vd3d-border);
  color: var(--vd3d-text-muted);
}

.vd3d-rtp-table tr:hover td {
  background: rgba(232, 168, 56, 0.05);
}

/* === Testimonial === */
.vd3d-testimonial {
  background: var(--vd3d-card-bg);
  border-radius: var(--vd3d-radius-lg);
  padding: 1.2rem;
  margin: 0.8rem 0;
  border: 1px solid var(--vd3d-border);
}

.vd3d-testimonial-text {
  color: var(--vd3d-text-muted);
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.6rem;
  margin-bottom: 0.6rem;
}

.vd3d-testimonial-author {
  color: var(--vd3d-primary);
  font-weight: 600;
  font-size: 1.1rem;
}

/* === Winner Badge === */
.vd3d-winner-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--vd3d-bg-light);
  padding: 0.4rem 0.8rem;
  border-radius: 2rem;
  font-size: 1.1rem;
  margin: 0.3rem;
}

.vd3d-winner-badge .vd3d-amount {
  color: var(--vd3d-primary);
  font-weight: 700;
}

/* === Feature List === */
.vd3d-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
  margin: 1rem 0;
}

.vd3d-feature-item {
  background: var(--vd3d-card-bg);
  border-radius: var(--vd3d-radius);
  padding: 1rem;
  text-align: center;
  border: 1px solid var(--vd3d-border);
  transition: var(--vd3d-transition);
}

.vd3d-feature-item:hover {
  border-color: var(--vd3d-primary);
}

.vd3d-feature-item i,
.vd3d-feature-item .material-icons {
  font-size: 2.4rem;
  color: var(--vd3d-primary);
  margin-bottom: 0.4rem;
}

.vd3d-feature-item p {
  font-size: 1.1rem;
  color: var(--vd3d-text-muted);
}

/* === Payment Methods === */
.vd3d-payment-row {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1rem 0;
}

.vd3d-payment-icon {
  background: var(--vd3d-bg-light);
  padding: 0.6rem 1.2rem;
  border-radius: var(--vd3d-radius);
  color: var(--vd3d-text);
  font-size: 1.2rem;
  font-weight: 600;
  border: 1px solid var(--vd3d-border);
}
