/* ph222.my Main CSS - Mobile-First Design */
/* All classes use v8bc- prefix to avoid conflicts */

/* CSS Variables */
:root {
  --v8bc-primary: #FFCCCB;
  --v8bc-secondary: #A9A9A9;
  --v8bc-bg: #2C2C2C;
  --v8bc-bg-light: #3a3a3a;
  --v8bc-text: #FFB74D;
  --v8bc-text-muted: #FFCCCB;
  --v8bc-accent: #FF6347;
  --v8bc-border: #4a4a4a;
  --v8bc-shadow: rgba(255, 204, 203, 0.2);
  --v8bc-gradient: linear-gradient(135deg, #FFCCCB, #FFB74D);
  --v8bc-hover: rgba(255, 183, 77, 0.8);
}

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

html {
  font-size: 62.5%; /* 1rem = 10px */
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: var(--v8bc-bg);
  color: var(--v8bc-text);
  line-height: 1.5;
  font-size: 1.4rem;
  overflow-x: hidden;
}

/* Container */
.v8bc-container {
  max-width: 43rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

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

.v8bc-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  height: 6rem;
}

.v8bc-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--v8bc-text);
}

.v8bc-logo-icon {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 0.6rem;
}

.v8bc-logo-text {
  font-size: 2rem;
  font-weight: 700;
  color: var(--v8bc-primary);
}

/* Navigation */
.v8bc-nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.v8bc-menu-toggle {
  background: none;
  border: none;
  color: var(--v8bc-text);
  font-size: 2.4rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.4rem;
  transition: all 0.2s ease;
}

.v8bc-menu-toggle:hover {
  background: var(--v8bc-bg-light);
  color: var(--v8bc-primary);
}

.v8bc-nav-menu {
  position: fixed;
  top: 6rem;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--v8bc-bg);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  z-index: 999;
}

.v8bc-nav-menu.v8bc-active {
  transform: translateX(0);
}

.v8bc-nav-list {
  list-style: none;
  padding: 2rem 0;
}

.v8bc-nav-item {
  border-bottom: 1px solid var(--v8bc-border);
}

.v8bc-nav-link {
  display: block;
  padding: 1.5rem 2rem;
  color: var(--v8bc-text);
  text-decoration: none;
  font-size: 1.6rem;
  transition: all 0.2s ease;
}

.v8bc-nav-link:hover {
  background: var(--v8bc-bg-light);
  color: var(--v8bc-primary);
}

/* Overlay */
.v8bc-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 998;
}

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

/* Main Content */
.v8bc-main {
  flex: 1;
  padding-top: 6rem;
  padding-bottom: 8rem;
}

/* Buttons */
.v8bc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem 2.4rem;
  background: var(--v8bc-gradient);
  color: var(--v8bc-bg);
  text-decoration: none;
  border-radius: 0.8rem;
  font-weight: 600;
  font-size: 1.4rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 4.4rem;
  gap: 0.8rem;
}

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

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

.v8bc-btn-outline:hover {
  background: var(--v8bc-primary);
  color: var(--v8bc-bg);
}

.v8bc-btn-small {
  padding: 0.8rem 1.6rem;
  font-size: 1.2rem;
  min-height: 3.6rem;
}

/* Touch feedback */
.v8bc-touch-active {
  transform: scale(0.98);
  opacity: 0.8;
}

/* Slider/Carousel */
.v8bc-slider {
  position: relative;
  overflow: hidden;
  border-radius: 1.2rem;
  margin: 2rem 0;
}

.v8bc-slides-container {
  display: flex;
  transition: transform 0.4s ease;
}

.v8bc-slide {
  min-width: 100%;
  position: relative;
  cursor: pointer;
}

.v8bc-slide img {
  width: 100%;
  height: 20rem;
  object-fit: cover;
  display: block;
}

.v8bc-slide-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(44, 44, 44, 0.9));
  padding: 2rem;
  color: var(--v8bc-text);
}

.v8bc-slide-indicators {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 1rem;
}

.v8bc-slide-indicator {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: var(--v8bc-text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

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

/* Game Grid */
.v8bc-games-section {
  margin: 3rem 0;
}

.v8bc-section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--v8bc-primary);
  margin-bottom: 2rem;
  text-align: center;
}

.v8bc-games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.v8bc-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--v8bc-text);
  padding: 1rem;
  border-radius: 1rem;
  background: var(--v8bc-bg-light);
  border: 1px solid var(--v8bc-border);
  transition: all 0.2s ease;
  cursor: pointer;
}

.v8bc-game-item:hover,
.v8bc-game-hover {
  transform: translateY(-2px);
  border-color: var(--v8bc-primary);
  box-shadow: 0 4px 12px var(--v8bc-shadow);
}

.v8bc-game-icon {
  width: 4.8rem;
  height: 4.8rem;
  border-radius: 0.8rem;
  object-fit: cover;
  margin-bottom: 0.8rem;
}

.v8bc-game-name {
  font-size: 1.1rem;
  text-align: center;
  line-height: 1.3;
  font-weight: 500;
}

/* Content Sections */
.v8bc-content-section {
  margin: 4rem 0;
  padding: 3rem 2rem;
  background: var(--v8bc-bg-light);
  border-radius: 1.2rem;
  border: 1px solid var(--v8bc-border);
}

.v8bc-content-title {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--v8bc-primary);
  margin-bottom: 2rem;
  text-align: center;
}

.v8bc-content-text {
  font-size: 1.4rem;
  line-height: 1.6;
  color: var(--v8bc-text);
  margin-bottom: 1.5rem;
}

.v8bc-content-text:last-child {
  margin-bottom: 0;
}

/* FAQ */
.v8bc-faq-item {
  margin-bottom: 2rem;
  border: 1px solid var(--v8bc-border);
  border-radius: 0.8rem;
  overflow: hidden;
}

.v8bc-faq-question {
  background: var(--v8bc-bg-light);
  padding: 1.5rem 2rem;
  font-weight: 600;
  color: var(--v8bc-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.v8bc-faq-answer {
  padding: 1.5rem 2rem;
  color: var(--v8bc-text);
  line-height: 1.6;
  display: none;
}

.v8bc-faq-item.v8bc-active .v8bc-faq-answer {
  display: block;
}

/* Bottom Navigation */
.v8bc-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--v8bc-bg);
  border-top: 1px solid var(--v8bc-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 6rem;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.v8bc-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 0.4rem;
  text-decoration: none;
  color: var(--v8bc-text-muted);
  font-size: 1rem;
  min-width: 4.4rem;
  min-height: 4.4rem;
  border-radius: 0.6rem;
  transition: all 0.2s ease;
  cursor: pointer;
}

.v8bc-bottom-nav-item:hover,
.v8bc-bottom-nav-item.v8bc-active {
  color: var(--v8bc-primary);
  background: var(--v8bc-bg-light);
}

.v8bc-bottom-nav-icon {
  font-size: 2rem;
  margin-bottom: 0.2rem;
}

.v8bc-bottom-nav-text {
  font-size: 1rem;
  font-weight: 500;
}

/* Footer */
.v8bc-footer {
  background: var(--v8bc-bg-light);
  border-top: 1px solid var(--v8bc-border);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
}

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

.v8bc-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.v8bc-footer-link {
  color: var(--v8bc-text-muted);
  text-decoration: none;
  font-size: 1.3rem;
  transition: color 0.2s ease;
}

.v8bc-footer-link:hover {
  color: var(--v8bc-primary);
}

.v8bc-partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin: 2rem 0;
}

.v8bc-partner-icon {
  width: 4rem;
  height: 4rem;
  opacity: 0.6;
  filter: grayscale(100%);
  transition: all 0.2s ease;
}

.v8bc-partner-icon:hover {
  opacity: 1;
  filter: grayscale(0%);
}

.v8bc-copyright {
  color: var(--v8bc-text-muted);
  font-size: 1.2rem;
  margin-top: 2rem;
}

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

.v8bc-promo-link:hover {
  border-bottom-color: var(--v8bc-primary);
}

/* Cards */
.v8bc-card {
  background: var(--v8bc-bg-light);
  border: 1px solid var(--v8bc-border);
  border-radius: 1.2rem;
  padding: 2rem;
  margin: 2rem 0;
}

.v8bc-card-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--v8bc-primary);
  margin-bottom: 1.5rem;
}

.v8bc-card-content {
  color: var(--v8bc-text);
  line-height: 1.6;
}

/* Statistics */
.v8bc-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.v8bc-stat-item {
  text-align: center;
  padding: 2rem 1rem;
  background: var(--v8bc-bg-light);
  border-radius: 1rem;
  border: 1px solid var(--v8bc-border);
}

.v8bc-stat-number {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--v8bc-primary);
  display: block;
}

.v8bc-stat-label {
  font-size: 1.2rem;
  color: var(--v8bc-text-muted);
  margin-top: 0.5rem;
}

/* Lazy loading */
.v8bc-lazy {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.v8bc-lazy.loaded {
  opacity: 1;
}

/* Animations */
@keyframes v8bc-fadeIn {
  from {
    opacity: 0;
    transform: translateY(2rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.v8bc-fade-in {
  animation: v8bc-fadeIn 0.6s ease forwards;
}

/* Loading states */
.v8bc-loading {
  position: relative;
  opacity: 0.6;
  pointer-events: none;
}

.v8bc-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2rem;
  height: 2rem;
  margin: -1rem 0 0 -1rem;
  border: 2px solid var(--v8bc-primary);
  border-top-color: transparent;
  border-radius: 50%;
  animation: v8bc-spin 1s linear infinite;
}

@keyframes v8bc-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Responsive Design */
@media (min-width: 768px) {
  .v8bc-bottom-nav {
    display: none;
  }
  
  .v8bc-main {
    padding-bottom: 2rem;
  }
  
  .v8bc-games-grid {
    grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
    gap: 2rem;
  }
  
  .v8bc-nav-actions {
    gap: 1.5rem;
  }
  
  .v8bc-menu-toggle {
    display: none;
  }
  
  .v8bc-nav-menu {
    position: static;
    transform: none;
    background: none;
    display: flex;
    align-items: center;
  }
  
  .v8bc-nav-list {
    display: flex;
    padding: 0;
    gap: 2rem;
  }
  
  .v8bc-nav-item {
    border: none;
  }
  
  .v8bc-nav-link {
    padding: 1rem 1.5rem;
    font-size: 1.4rem;
    border-radius: 0.6rem;
  }
  
  .v8bc-overlay {
    display: none;
  }
}

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

/* High contrast mode */
@media (prefers-contrast: high) {
  :root {
    --v8bc-border: #6a6a6a;
    --v8bc-bg-light: #4a4a4a;
  }
}

/* Print styles */
@media print {
  .v8bc-header,
  .v8bc-bottom-nav,
  .v8bc-menu-toggle,
  .v8bc-btn {
    display: none !important;
  }
  
  .v8bc-main {
    padding-top: 0;
  }
  
  body {
    background: white;
    color: black;
  }
}