/* PH85 Core Stylesheet */
/* All classes use vc51- prefix for namespace isolation */

/* CSS Variables */
:root {
  --vc51-primary: #FFF176;
  --vc51-secondary: #9AFF9A;
  --vc51-accent: #90EE90;
  --vc51-dark: #3A3A3A;
  --vc51-darker: #2A2A2A;
  --vc51-light: #FFFFFF;
  --vc51-text: #9AFF9A;
  --vc51-text-muted: #B8FFB8;
  --vc51-border: #4A4A4A;
  --vc51-overlay: rgba(58, 58, 58, 0.95);
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  font-size: 1.4rem;
  line-height: 1.6;
  background-color: var(--vc51-dark);
  color: var(--vc51-text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Container */
.vc51-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header Styles */
.vc51-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--vc51-darker) 0%, var(--vc51-dark) 100%);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  padding: 0.8rem 0;
}

.vc51-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.vc51-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--vc51-primary);
  font-weight: 700;
  font-size: 1.8rem;
}

.vc51-logo img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.vc51-header-buttons {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

.vc51-btn {
  padding: 0.6rem 1.2rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.vc51-btn:active {
  transform: scale(0.95);
}

.vc51-btn-primary {
  background: linear-gradient(135deg, var(--vc51-primary) 0%, #FFD54F 100%);
  color: var(--vc51-dark);
  box-shadow: 0 2px 8px rgba(255, 241, 118, 0.4);
}

.vc51-btn-primary:hover {
  box-shadow: 0 4px 12px rgba(255, 241, 118, 0.6);
  transform: translateY(-2px);
}

.vc51-btn-secondary {
  background: transparent;
  color: var(--vc51-secondary);
  border: 2px solid var(--vc51-secondary);
}

.vc51-btn-secondary:hover {
  background: var(--vc51-secondary);
  color: var(--vc51-dark);
}

/* Mobile Menu */
.vc51-menu-toggle {
  display: block;
  background: none;
  border: none;
  color: var(--vc51-primary);
  font-size: 2.4rem;
  cursor: pointer;
  padding: 0.5rem;
}

@media (min-width: 769px) {
  .vc51-menu-toggle {
    display: none;
  }
}

.vc51-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.vc51-menu-overlay.vc51-active {
  display: block;
  opacity: 1;
}

.vc51-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  max-width: 80%;
  height: 100%;
  background: var(--vc51-overlay);
  backdrop-filter: blur(10px);
  z-index: 9999;
  transition: right 0.3s ease;
  padding: 2rem;
  overflow-y: auto;
}

.vc51-mobile-menu.vc51-active {
  right: 0;
}

.vc51-menu-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--vc51-primary);
  font-size: 2.4rem;
  cursor: pointer;
}

.vc51-menu-links {
  list-style: none;
  margin-top: 3rem;
}

.vc51-menu-links li {
  margin-bottom: 1.5rem;
}

.vc51-menu-links a {
  color: var(--vc51-text);
  text-decoration: none;
  font-size: 1.6rem;
  display: block;
  padding: 0.8rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.vc51-menu-links a:hover {
  background: rgba(255, 241, 118, 0.1);
  color: var(--vc51-primary);
  padding-left: 1.5rem;
}

/* Main Content */
.vc51-main {
  padding-top: 80px;
  padding-bottom: 80px;
  min-height: 100vh;
}

/* Carousel */
.vc51-carousel {
  position: relative;
  margin: 1.5rem 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.vc51-carousel-wrapper {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.vc51-carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.vc51-carousel-slide.vc51-active {
  opacity: 1;
}

.vc51-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vc51-carousel-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.8rem;
}

.vc51-carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.vc51-carousel-dot.vc51-active {
  background: var(--vc51-primary);
  width: 30px;
  border-radius: 5px;
}

/* Section Styles */
.vc51-section {
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--vc51-darker);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.vc51-section-title {
  color: var(--vc51-primary);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.vc51-section-title i {
  color: var(--vc51-accent);
}

/* Game Grid */
.vc51-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}

.vc51-game-card {
  background: var(--vc51-darker);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  display: block;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.vc51-game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.vc51-game-card:active {
  transform: scale(0.98);
}

.vc51-game-card.vc51-touching {
  transform: scale(0.95);
}

.vc51-game-image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.vc51-game-name {
  padding: 0.8rem 0.6rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--vc51-text);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Text Content */
.vc51-content {
  color: var(--vc51-text);
  line-height: 1.8;
}

.vc51-content p {
  margin-bottom: 1rem;
}

.vc51-content h2 {
  color: var(--vc51-primary);
  font-size: 1.6rem;
  margin: 1.5rem 0 1rem;
}

.vc51-content h3 {
  color: var(--vc51-secondary);
  font-size: 1.4rem;
  margin: 1.2rem 0 0.8rem;
}

.vc51-link {
  color: var(--vc51-primary);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 2px solid var(--vc51-primary);
  transition: all 0.3s ease;
}

.vc51-link:hover {
  color: var(--vc51-accent);
  border-color: var(--vc51-accent);
}

/* Feature Cards */
.vc51-feature-card {
  background: linear-gradient(135deg, var(--vc51-darker) 0%, rgba(58, 58, 58, 0.8) 100%);
  padding: 1.5rem;
  border-radius: 12px;
  margin: 1rem 0;
  border-left: 4px solid var(--vc51-primary);
}

.vc51-feature-card h3 {
  color: var(--vc51-primary);
  margin-bottom: 0.8rem;
  font-size: 1.4rem;
}

/* FAQ Section */
.vc51-faq-item {
  background: var(--vc51-darker);
  padding: 1.2rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  border-left: 4px solid var(--vc51-secondary);
}

.vc51-faq-question {
  color: var(--vc51-primary);
  font-weight: 600;
  margin-bottom: 0.6rem;
  font-size: 1.3rem;
}

.vc51-faq-answer {
  color: var(--vc51-text);
  line-height: 1.7;
  font-size: 1.2rem;
}

/* Footer */
.vc51-footer {
  background: var(--vc51-darker);
  padding: 2rem 0 1rem;
  margin-top: 2rem;
  border-top: 3px solid var(--vc51-primary);
}

.vc51-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.vc51-footer-link {
  color: var(--vc51-text);
  text-decoration: none;
  font-size: 1.2rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: all 0.3s ease;
  background: rgba(154, 255, 154, 0.1);
}

.vc51-footer-link:hover {
  background: var(--vc51-secondary);
  color: var(--vc51-dark);
}

.vc51-partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin: 2rem 0;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
}

.vc51-partner-logo {
  width: 60px;
  height: 40px;
  object-fit: contain;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.vc51-partner-logo:hover {
  opacity: 1;
  transform: scale(1.1);
}

.vc51-copyright {
  text-align: center;
  color: var(--vc51-text-muted);
  font-size: 1.1rem;
  padding: 1rem;
  border-top: 1px solid var(--vc51-border);
}

/* Bottom Navigation */
.vc51-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, var(--vc51-darker) 0%, rgba(42, 42, 42, 0.98) 100%);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  padding: 0.5rem 0;
  border-top: 2px solid var(--vc51-primary);
}

@media (min-width: 769px) {
  .vc51-bottom-nav {
    display: none;
  }
}

.vc51-bottom-nav-inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
  max-width: 430px;
  margin: 0 auto;
}

.vc51-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  min-width: 60px;
  min-height: 60px;
  justify-content: center;
  text-decoration: none;
  color: var(--vc51-text);
  transition: all 0.3s ease;
  border-radius: 10px;
  padding: 0.5rem;
}

.vc51-nav-item:hover {
  background: rgba(255, 241, 118, 0.1);
  transform: translateY(-2px);
}

.vc51-nav-item.vc51-active {
  color: var(--vc51-primary);
}

.vc51-nav-item.vc51-active .vc51-nav-icon {
  color: var(--vc51-primary);
  transform: scale(1.1);
}

.vc51-nav-icon {
  font-size: 24px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vc51-nav-label {
  font-size: 10px;
  font-weight: 600;
  text-align: center;
}

/* Icon Mix */
.vc51-icon-mat {
  font-family: 'Material Icons';
  font-size: 24px;
}

/* Responsive */
@media (max-width: 768px) {
  .vc51-main {
    padding-bottom: 80px;
  }
}

/* Utility Classes */
.vc51-text-center {
  text-align: center;
}

.vc51-mt-1 {
  margin-top: 1rem;
}

.vc51-mb-1 {
  margin-bottom: 1rem;
}

.vc51-mt-2 {
  margin-top: 2rem;
}

.vc51-mb-2 {
  margin-bottom: 2rem;
}

/* Animation */
@keyframes vc51-fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.vc51-animate-in {
  animation: vc51-fadeIn 0.5s ease;
}
