/* PH11 Gaming Platform - Design System CSS */
/* Author: PH11 Development Team */
/* Version: 1.0.0 */

/* CSS Custom Properties */
:root {
  --g7a6-primary: #00695C;
  --g7a6-secondary: #0097A7;
  --g7a6-accent: #9932CC;
  --g7a6-light: #F0F0F0;
  --g7a6-purple: #DDA0DD;
  --g7a6-dark: #0E1621;
  --g7a6-success: #00695C;
  --g7a6-warning: #FF6F00;
  --g7a6-danger: #D32F2F;
  
  --g7a6-bg-primary: var(--g7a6-dark);
  --g7a6-bg-secondary: rgba(14, 22, 33, 0.95);
  --g7a6-bg-card: rgba(240, 240, 240, 0.05);
  --g7a6-bg-overlay: rgba(14, 22, 33, 0.8);
  
  --g7a6-text-primary: var(--g7a6-light);
  --g7a6-text-secondary: rgba(240, 240, 240, 0.8);
  --g7a6-text-muted: rgba(240, 240, 240, 0.6);
  
  --g7a6-border: rgba(240, 240, 240, 0.1);
  --g7a6-border-light: rgba(240, 240, 240, 0.05);
  
  --g7a6-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --g7a6-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
  --g7a6-shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
  --g7a6-shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.25);
  
  --g7a6-gradient-primary: linear-gradient(135deg, var(--g7a6-primary), var(--g7a6-secondary));
  --g7a6-gradient-accent: linear-gradient(135deg, var(--g7a6-accent), var(--g7a6-purple));
  --g7a6-gradient-dark: linear-gradient(180deg, var(--g7a6-dark), rgba(14, 22, 33, 0.9));
  
  --g7a6-border-radius-sm: 0.5rem;
  --g7a6-border-radius: 1rem;
  --g7a6-border-radius-lg: 1.5rem;
  --g7a6-border-radius-xl: 2rem;
  
  --g7a6-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --g7a6-transition-fast: all 0.15s ease;
  
  --g7a6-header-height: 60px;
  --g7a6-bottom-nav-height: 64px;
  
  --vh: 1vh;
}

/* Reset and Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
  height: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--g7a6-text-primary);
  background: var(--g7a6-bg-primary);
  min-height: 100vh;
  min-height: calc(var(--vh) * 100);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.g7a6-menu-open {
  overflow: hidden;
}

body.g7a6-touch-device * {
  -webkit-tap-highlight-color: transparent;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--g7a6-text-primary);
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.4rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.8rem; }
h5 { font-size: 1.6rem; }
h6 { font-size: 1.4rem; }

p {
  margin-bottom: 1rem;
  color: var(--g7a6-text-secondary);
}

a {
  color: var(--g7a6-primary);
  text-decoration: none;
  transition: var(--g7a6-transition-fast);
}

a:hover, a:focus {
  color: var(--g7a6-secondary);
  text-decoration: underline;
}

/* Layout Components */
.g7a6-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: calc(var(--vh) * 100);
}

.g7a6-container {
  max-width: 430px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.g7a6-main {
  flex: 1;
  padding-top: var(--g7a6-header-height);
  padding-bottom: var(--g7a6-bottom-nav-height);
}

.g7a6-section {
  padding: 2rem 0;
}

.g7a6-grid {
  display: grid;
  gap: 1.5rem;
}

.g7a6-flex {
  display: flex;
}

.g7a6-text-center { text-align: center; }
.g7a6-text-left { text-align: left; }
.g7a6-text-right { text-align: right; }

/* Header Styles */
.g7a6-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--g7a6-header-height);
  background: var(--g7a6-bg-secondary);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--g7a6-border);
  z-index: 1000;
}

.g7a6-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 1.5rem;
}

.g7a6-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--g7a6-text-primary);
  text-decoration: none;
}

.g7a6-logo img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.g7a6-nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.g7a6-hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.g7a6-hamburger span {
  width: 20px;
  height: 2px;
  background: var(--g7a6-text-primary);
  transition: var(--g7a6-transition);
  transform-origin: center;
}

.g7a6-hamburger span:not(:last-child) {
  margin-bottom: 4px;
}

.g7a6-hamburger.g7a6-active span:first-child {
  transform: rotate(45deg) translate(6px, 6px);
}

.g7a6-hamburger.g7a6-active span:nth-child(2) {
  opacity: 0;
}

.g7a6-hamburger.g7a6-active span:last-child {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu */
.g7a6-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--g7a6-bg-overlay);
  opacity: 0;
  visibility: hidden;
  transition: var(--g7a6-transition);
  z-index: 999;
}

.g7a6-menu-overlay.g7a6-active {
  opacity: 1;
  visibility: visible;
}

.g7a6-mobile-menu {
  position: fixed;
  top: var(--g7a6-header-height);
  right: -100%;
  width: 280px;
  height: calc(100vh - var(--g7a6-header-height));
  height: calc(calc(var(--vh) * 100) - var(--g7a6-header-height));
  background: var(--g7a6-bg-secondary);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: var(--g7a6-transition);
  z-index: 1001;
  overflow-y: auto;
}

.g7a6-mobile-menu.g7a6-active {
  right: 0;
}

.g7a6-menu-list {
  list-style: none;
  padding: 2rem 0;
}

.g7a6-menu-list li {
  border-bottom: 1px solid var(--g7a6-border);
}

.g7a6-nav-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 2rem;
  color: var(--g7a6-text-secondary);
  text-decoration: none;
  transition: var(--g7a6-transition-fast);
}

.g7a6-nav-link:hover,
.g7a6-nav-link.g7a6-active {
  color: var(--g7a6-primary);
  background: rgba(0, 105, 92, 0.1);
}

.g7a6-menu-actions {
  padding: 2rem;
  border-top: 1px solid var(--g7a6-border);
}

/* Button Styles */
.g7a6-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  font-size: 1.4rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: var(--g7a6-border-radius);
  cursor: pointer;
  transition: var(--g7a6-transition);
  min-height: 44px;
  min-width: 44px;
}

.g7a6-btn-primary {
  background: var(--g7a6-gradient-primary);
  color: var(--g7a6-light);
  box-shadow: var(--g7a6-shadow-sm);
}

.g7a6-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--g7a6-shadow-md);
}

.g7a6-btn-secondary {
  background: var(--g7a6-bg-card);
  color: var(--g7a6-text-primary);
  border: 1px solid var(--g7a6-border);
}

.g7a6-btn-secondary:hover {
  background: var(--g7a6-primary);
  color: var(--g7a6-light);
}

.g7a6-btn-outline {
  background: transparent;
  color: var(--g7a6-primary);
  border: 2px solid var(--g7a6-primary);
}

.g7a6-btn-outline:hover {
  background: var(--g7a6-primary);
  color: var(--g7a6-light);
}

.g7a6-btn-sm {
  padding: 0.8rem 1.2rem;
  font-size: 1.2rem;
}

.g7a6-btn-lg {
  padding: 1.5rem 2rem;
  font-size: 1.6rem;
}

.g7a6-btn:active {
  transform: scale(0.98);
}

.g7a6-promo-btn {
  background: var(--g7a6-gradient-accent);
  color: var(--g7a6-light);
  font-weight: 700;
  box-shadow: var(--g7a6-shadow-md);
  position: relative;
  overflow: hidden;
}

.g7a6-promo-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.g7a6-promo-btn:hover::before {
  left: 100%;
}

.g7a6-promo-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--g7a6-shadow-lg);
}

/* Card Styles */
.g7a6-card {
  background: var(--g7a6-bg-card);
  border: 1px solid var(--g7a6-border);
  border-radius: var(--g7a6-border-radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--g7a6-shadow-sm);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.g7a6-card-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--g7a6-text-primary);
}

.g7a6-card-text {
  color: var(--g7a6-text-secondary);
  line-height: 1.6;
}

/* Carousel Styles */
.g7a6-carousel {
  position: relative;
  width: 100%;
  height: 200px;
  border-radius: var(--g7a6-border-radius-lg);
  overflow: hidden;
  margin-bottom: 2rem;
}

.g7a6-carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  cursor: pointer;
}

.g7a6-carousel-slide.g7a6-active {
  opacity: 1;
}

.g7a6-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.g7a6-carousel-indicators {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
}

.g7a6-carousel-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: var(--g7a6-transition-fast);
}

.g7a6-carousel-indicator.g7a6-active {
  background: var(--g7a6-light);
  transform: scale(1.2);
}

/* Game Grid */
.g7a6-games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.g7a6-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  background: var(--g7a6-bg-card);
  border: 1px solid var(--g7a6-border);
  border-radius: var(--g7a6-border-radius);
  cursor: pointer;
  transition: var(--g7a6-transition);
  min-height: 100px;
}

.g7a6-game-item:hover {
  background: var(--g7a6-bg-secondary);
  transform: translateY(-2px);
  box-shadow: var(--g7a6-shadow-md);
}

.g7a6-game-item img {
  width: 40px;
  height: 40px;
  border-radius: var(--g7a6-border-radius-sm);
  margin-bottom: 0.5rem;
}

.g7a6-game-name {
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
  color: var(--g7a6-text-primary);
  line-height: 1.2;
}

/* Game Category Headers */
.g7a6-category-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0 1rem 0;
  padding: 1rem;
  background: var(--g7a6-bg-card);
  border-radius: var(--g7a6-border-radius);
  border-left: 4px solid var(--g7a6-primary);
}

.g7a6-category-header h3 {
  margin: 0;
  color: var(--g7a6-text-primary);
  font-size: 1.6rem;
}

.g7a6-category-icon {
  font-size: 2rem;
  color: var(--g7a6-primary);
}

/* Bottom Navigation */
.g7a6-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--g7a6-bottom-nav-height);
  background: var(--g7a6-bg-secondary);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--g7a6-border);
  z-index: 1000;
}

.g7a6-bottom-nav-container {
  display: flex;
  height: 100%;
  max-width: 430px;
  margin: 0 auto;
}

.g7a6-bottom-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  padding: 0.5rem;
  color: var(--g7a6-text-muted);
  text-decoration: none;
  transition: var(--g7a6-transition-fast);
  font-size: 1rem;
  min-height: 44px;
}

.g7a6-bottom-nav a:hover,
.g7a6-bottom-nav a.g7a6-active {
  color: var(--g7a6-primary);
  transform: scale(1.05);
}

.g7a6-bottom-nav i {
  font-size: 2rem;
}

/* Footer */
.g7a6-footer {
  background: var(--g7a6-bg-secondary);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
  border-top: 1px solid var(--g7a6-border);
}

.g7a6-footer-content {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.g7a6-footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.g7a6-footer-link {
  color: var(--g7a6-text-secondary);
  text-decoration: none;
  padding: 0.5rem 0;
  transition: var(--g7a6-transition-fast);
}

.g7a6-footer-link:hover {
  color: var(--g7a6-primary);
}

.g7a6-partners {
  margin-bottom: 2rem;
}

.g7a6-partners h4 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--g7a6-text-secondary);
}

.g7a6-partners-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  align-items: center;
}

.g7a6-partner-logo {
  width: 100%;
  height: 30px;
  object-fit: contain;
  filter: grayscale(1) opacity(0.7);
  transition: var(--g7a6-transition-fast);
}

.g7a6-partner-logo:hover {
  filter: grayscale(0) opacity(1);
}

.g7a6-copyright {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--g7a6-border);
  color: var(--g7a6-text-muted);
  font-size: 1.2rem;
}

/* Loader */
.g7a6-loader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--g7a6-bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.3s ease;
}

.g7a6-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--g7a6-border);
  border-top: 3px solid var(--g7a6-primary);
  border-radius: 50%;
  animation: g7a6-spin 1s linear infinite;
}

@keyframes g7a6-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Animations */
.g7a6-animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.g7a6-animate-on-scroll.g7a6-animated {
  opacity: 1;
  transform: translateY(0);
}

/* Utility Classes */
.g7a6-mb-2 { margin-bottom: 2rem; }
.g7a6-mt-2 { margin-top: 2rem; }
.g7a6-p-2 { padding: 2rem; }

.g7a6-hidden { display: none; }
.g7a6-visible { display: block; }

/* Responsive Design */
@media (max-width: 380px) {
  .g7a6-container {
    padding: 0 1rem;
  }
  
  .g7a6-games-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .g7a6-nav {
    padding: 0 1rem;
  }
  
  .g7a6-section {
    padding: 1.5rem 0;
  }
}

@media (min-width: 431px) {
  .g7a6-container {
    max-width: 430px;
  }
}

/* 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 {
    --g7a6-border: rgba(255, 255, 255, 0.3);
    --g7a6-bg-card: rgba(255, 255, 255, 0.1);
  }
}

/* Dark mode (already default, but ensuring consistency) */
@media (prefers-color-scheme: dark) {
  :root {
    --g7a6-bg-primary: var(--g7a6-dark);
    --g7a6-text-primary: var(--g7a6-light);
  }
}