/**
 * phil168 Universal CSS Styles
 * Mobile-first responsive design with vcc9- prefix
 * @version 1.0.0
 */

/* CSS Variables with vcc9- prefix */
:root {
  --vcc9-primary: #3CB371;
  --vcc9-secondary: #7CFC00;
  --vcc9-dark: #2D2D2D;
  --vcc9-light: #ffffff;
  --vcc9-bg: #1a1a1a;
  --vcc9-text: #ffffff;
  --vcc9-text-muted: #cccccc;
  --vcc9-border: #444444;
  --vcc9-shadow: rgba(60, 179, 113, 0.2);
  --vcc9-gradient: linear-gradient(135deg, #3CB371, #7CFC00);
  --vcc9-radius: 8px;
  --vcc9-radius-lg: 12px;
  --vcc9-transition: all 0.3s ease;
}

/* Root font size for rem calculations */
html {
  font-size: 62.5%; /* 1rem = 10px */
  scroll-behavior: smooth;
}

/* Global reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--vcc9-text);
  background-color: var(--vcc9-bg);
  overflow-x: hidden;
}

/* Container and layout classes */
.vcc9-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.6rem;
  width: 100%;
}

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

.vcc9-grid {
  display: grid;
  gap: 1.6rem;
}

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

.vcc9-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.6rem;
  height: 6rem;
}

.vcc9-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--vcc9-text);
  text-decoration: none;
  font-weight: bold;
  font-size: 1.8rem;
}

.vcc9-logo-icon {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
  object-fit: cover;
}

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

.vcc9-btn {
  padding: 0.8rem 1.6rem;
  border: none;
  border-radius: var(--vcc9-radius);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--vcc9-transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 4.4rem;
  min-width: 4.4rem;
}

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

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

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

.vcc9-btn-outline:hover {
  background: var(--vcc9-primary);
  color: var(--vcc9-dark);
}

.vcc9-menu-btn {
  background: none;
  border: none;
  color: var(--vcc9-text);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.8rem;
  border-radius: var(--vcc9-radius);
  transition: var(--vcc9-transition);
}

.vcc9-menu-btn:hover {
  background: var(--vcc9-border);
}

/* Mobile menu */
.vcc9-mobile-menu {
  position: fixed;
  top: 6rem;
  left: 0;
  right: 0;
  background: var(--vcc9-dark);
  border-bottom: 1px solid var(--vcc9-border);
  display: none;
  z-index: 999;
  max-height: calc(100vh - 6rem);
  overflow-y: auto;
}

.vcc9-menu-active {
  display: block !important;
}

.vcc9-menu-list {
  list-style: none;
  padding: 1.6rem;
}

.vcc9-menu-item {
  margin-bottom: 0.8rem;
}

.vcc9-menu-link {
  display: block;
  padding: 1.2rem;
  color: var(--vcc9-text);
  text-decoration: none;
  border-radius: var(--vcc9-radius);
  transition: var(--vcc9-transition);
  border-left: 3px solid transparent;
}

.vcc9-menu-link:hover {
  background: var(--vcc9-border);
  border-left-color: var(--vcc9-primary);
}

/* Main content */
.vcc9-main {
  flex: 1;
  margin-top: 6rem;
  margin-bottom: 6.4rem;
  padding: 2rem 0;
}

/* Carousel/Slider */
.vcc9-carousel {
  position: relative;
  margin-bottom: 3rem;
  border-radius: var(--vcc9-radius-lg);
  overflow: hidden;
}

.vcc9-slide {
  display: none;
  width: 100%;
  height: 20rem;
  position: relative;
  cursor: pointer;
}

.vcc9-slide:first-child {
  display: block;
}

.vcc9-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vcc9-slide-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  padding: 2rem 1.6rem;
  color: white;
}

.vcc9-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
}

.vcc9-dot {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: var(--vcc9-transition);
}

.vcc9-dot-active {
  background: var(--vcc9-primary);
}

/* Game sections */
.vcc9-section {
  margin-bottom: 3rem;
}

.vcc9-section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.6rem;
  color: var(--vcc9-text);
  text-align: center;
  position: relative;
}

.vcc9-section-title::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 4rem;
  height: 3px;
  background: var(--vcc9-gradient);
  border-radius: 2px;
}

/* Game grid */
.vcc9-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.vcc9-game-item {
  background: var(--vcc9-dark);
  border-radius: var(--vcc9-radius);
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  transition: var(--vcc9-transition);
  border: 1px solid var(--vcc9-border);
  text-decoration: none;
  color: var(--vcc9-text);
}

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

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

.vcc9-game-name {
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Content sections */
.vcc9-content-section {
  background: var(--vcc9-dark);
  border-radius: var(--vcc9-radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px solid var(--vcc9-border);
}

.vcc9-content-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  color: var(--vcc9-primary);
}

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

.vcc9-content-list {
  list-style: none;
  margin: 1.6rem 0;
}

.vcc9-content-list li {
  padding: 0.8rem 0;
  padding-left: 2rem;
  position: relative;
  border-bottom: 1px solid var(--vcc9-border);
}

.vcc9-content-list li:last-child {
  border-bottom: none;
}

.vcc9-content-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--vcc9-primary);
  font-weight: bold;
}

/* Cards */
.vcc9-card {
  background: var(--vcc9-dark);
  border-radius: var(--vcc9-radius-lg);
  padding: 2rem;
  border: 1px solid var(--vcc9-border);
  transition: var(--vcc9-transition);
}

.vcc9-card:hover {
  border-color: var(--vcc9-primary);
  box-shadow: 0 4px 16px var(--vcc9-shadow);
}

/* Bottom navigation */
.vcc9-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--vcc9-dark);
  border-top: 1px solid var(--vcc9-border);
  display: flex;
  justify-content: space-around;
  padding: 0.8rem;
  z-index: 1000;
  height: 6.4rem;
}

.vcc9-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--vcc9-text-muted);
  transition: var(--vcc9-transition);
  border-radius: var(--vcc9-radius);
  position: relative;
  min-height: 4.4rem;
}

.vcc9-nav-item:hover,
.vcc9-nav-active {
  color: var(--vcc9-primary);
  background: rgba(60, 179, 113, 0.1);
}

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

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

/* Footer */
.vcc9-footer {
  background: var(--vcc9-dark);
  padding: 3rem 0 8rem;
  border-top: 1px solid var(--vcc9-border);
}

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

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

.vcc9-footer-link {
  color: var(--vcc9-text-muted);
  text-decoration: none;
  font-size: 1.2rem;
  padding: 0.8rem;
  border-radius: var(--vcc9-radius);
  transition: var(--vcc9-transition);
}

.vcc9-footer-link:hover {
  color: var(--vcc9-primary);
  background: rgba(60, 179, 113, 0.1);
}

.vcc9-partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem;
  margin: 2rem 0;
  opacity: 0.7;
}

.vcc9-partner-icon {
  width: 4rem;
  height: 4rem;
  opacity: 0.6;
  transition: var(--vcc9-transition);
  border-radius: 4px;
}

.vcc9-partner-icon:hover {
  opacity: 1;
}

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

/* Utilities */
.vcc9-text-center { text-align: center; }
.vcc9-text-left { text-align: left; }
.vcc9-text-right { text-align: right; }

.vcc9-mb-1 { margin-bottom: 0.8rem; }
.vcc9-mb-2 { margin-bottom: 1.6rem; }
.vcc9-mb-3 { margin-bottom: 2.4rem; }

.vcc9-mt-1 { margin-top: 0.8rem; }
.vcc9-mt-2 { margin-top: 1.6rem; }
.vcc9-mt-3 { margin-top: 2.4rem; }

.vcc9-p-1 { padding: 0.8rem; }
.vcc9-p-2 { padding: 1.6rem; }
.vcc9-p-3 { padding: 2.4rem; }

.vcc9-hidden { display: none; }
.vcc9-visible { display: block; }

/* Responsive adjustments */
@media (max-width: 320px) {
  .vcc9-container {
    padding: 0 1.2rem;
  }
  
  .vcc9-game-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .vcc9-nav {
    padding: 1rem 1.2rem;
  }
}

@media (min-width: 431px) {
  .vcc9-container {
    max-width: 100%;
    padding: 0 2rem;
  }
  
  .vcc9-game-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (min-width: 768px) {
  html {
    font-size: 65%;
  }
  
  .vcc9-container {
    max-width: 768px;
  }
  
  .vcc9-game-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  
  .vcc9-bottom-nav {
    display: none;
  }
  
  .vcc9-main {
    margin-bottom: 0;
  }
  
  .vcc9-mobile-menu {
    position: static;
    display: block !important;
    max-height: none;
    background: transparent;
    border: none;
  }
  
  .vcc9-menu-list {
    display: flex;
    gap: 2rem;
    padding: 0;
  }
  
  .vcc9-menu-item {
    margin-bottom: 0;
  }
  
  .vcc9-menu-btn {
    display: none;
  }
}