/**
 * BossJL Gaming Platform - Design System CSS
 * Mobile-first responsive design with pga9- prefixed classes
 * Color palette: #CC99FF | #191970 | #BDC3C7 | #87CEEB | #1A1A1A
 * @version 1.0.0
 */

/* CSS Custom Properties with pga9 prefix */
:root {
  --pga9-primary: #CC99FF;
  --pga9-secondary: #87CEEB;
  --pga9-accent: #191970;
  --pga9-bg: #1A1A1A;
  --pga9-bg-light: #2A2A2A;
  --pga9-text: #BDC3C7;
  --pga9-text-light: #FFFFFF;
  --pga9-border: #3A3A3A;
  --pga9-success: #4CAF50;
  --pga9-warning: #FF9800;
  --pga9-error: #F44336;
  --pga9-gradient: linear-gradient(135deg, var(--pga9-primary), var(--pga9-secondary));
  --pga9-shadow: 0 4px 20px rgba(204, 153, 255, 0.1);
  --pga9-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

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

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

.pga9-main {
  flex: 1;
  padding-top: 7rem;
  padding-bottom: 8rem;
}

.pga9-section {
  margin-bottom: 3rem;
  padding: 2rem 0;
}

/* Header Navigation */
.pga9-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--pga9-bg);
  border-bottom: 1px solid var(--pga9-border);
  z-index: 1000;
  transition: var(--pga9-transition);
}

.pga9-header-scrolled {
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--pga9-shadow);
}

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

.pga9-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: var(--pga9-text-light);
  font-weight: bold;
  font-size: 2rem;
}

.pga9-logo-icon img {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
}

.pga9-header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Buttons */
.pga9-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  font-size: 1.3rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0.8rem;
  border: none;
  cursor: pointer;
  transition: var(--pga9-transition);
  min-height: 4.4rem;
  white-space: nowrap;
}

.pga9-btn-primary {
  background: var(--pga9-gradient);
  color: var(--pga9-text-light);
  box-shadow: 0 4px 15px rgba(204, 153, 255, 0.3);
}

.pga9-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(204, 153, 255, 0.4);
}

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

.pga9-btn-secondary:hover {
  background: var(--pga9-primary);
  color: var(--pga9-text-light);
}

/* Mobile Menu Toggle */
.pga9-menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.pga9-menu-toggle span {
  display: block;
  height: 0.3rem;
  width: 100%;
  background: var(--pga9-primary);
  margin: 0.3rem 0;
  transition: var(--pga9-transition);
  border-radius: 0.2rem;
}

.pga9-toggle-active span:nth-child(1) {
  transform: rotate(45deg) translate(0.7rem, 0.7rem);
}

.pga9-toggle-active span:nth-child(2) {
  opacity: 0;
}

.pga9-toggle-active span:nth-child(3) {
  transform: rotate(-45deg) translate(0.7rem, -0.7rem);
}

/* Mobile Navigation Menu */
.pga9-mobile-menu {
  position: fixed;
  top: 6rem;
  left: -100%;
  width: 100%;
  height: calc(100vh - 6rem);
  background: var(--pga9-bg);
  transition: var(--pga9-transition);
  z-index: 999;
  overflow-y: auto;
}

.pga9-menu-active {
  left: 0;
}

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

.pga9-nav-item {
  margin-bottom: 1rem;
}

.pga9-nav-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  color: var(--pga9-text);
  text-decoration: none;
  border-radius: 0.8rem;
  transition: var(--pga9-transition);
  font-size: 1.6rem;
}

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

.pga9-nav-link i {
  width: 2rem;
  text-align: center;
}

/* Menu Overlay */
.pga9-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: var(--pga9-transition);
}

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

/* Typography */
.pga9-section-title {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--pga9-text-light);
  margin-bottom: 1.5rem;
  text-align: center;
  line-height: 1.2;
}

.pga9-section h2 {
  font-size: 2rem;
  font-weight: 600;
  color: var(--pga9-text-light);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.pga9-section h3 {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--pga9-primary);
  margin: 2rem 0 1rem;
}

.pga9-section h4 {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--pga9-text-light);
  margin-bottom: 1rem;
}

.pga9-section p {
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.pga9-section ul, .pga9-section ol {
  margin-left: 2rem;
  margin-bottom: 1.5rem;
}

.pga9-section li {
  margin-bottom: 0.8rem;
  line-height: 1.5;
}

/* Text Utilities */
.pga9-text-center {
  text-align: center;
}

.pga9-text-primary {
  color: var(--pga9-primary);
}

.pga9-text-secondary {
  color: var(--pga9-secondary);
}

.pga9-text-light {
  color: var(--pga9-text-light);
}

/* Carousel */
.pga9-carousel {
  position: relative;
  margin-bottom: 3rem;
  border-radius: 1.2rem;
  overflow: hidden;
}

.pga9-slide {
  display: none;
  position: relative;
}

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

.pga9-slide img {
  width: 100%;
  height: 20rem;
  object-fit: cover;
  border-radius: 1.2rem;
}

.pga9-slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.7));
  display: flex;
  align-items: flex-end;
  padding: 2rem;
}

.pga9-slide-content h3 {
  color: var(--pga9-text-light);
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.pga9-slide-content p {
  color: var(--pga9-text);
  font-size: 1.4rem;
}

.pga9-carousel-controls {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
}

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

.pga9-indicator-active {
  background: var(--pga9-primary);
}

/* Game Grid */
.pga9-game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.pga9-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem;
  background: var(--pga9-bg-light);
  border-radius: 1.2rem;
  cursor: pointer;
  transition: var(--pga9-transition);
  border: 1px solid var(--pga9-border);
  position: relative;
  overflow: hidden;
}

.pga9-game-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--pga9-shadow);
  border-color: var(--pga9-primary);
}

.pga9-game-icon {
  width: 6rem;
  height: 6rem;
  border-radius: 1rem;
  margin-bottom: 1rem;
  object-fit: cover;
}

.pga9-game-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--pga9-text-light);
  line-height: 1.3;
}

/* Bottom Navigation */
.pga9-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--pga9-bg);
  border-top: 1px solid var(--pga9-border);
  z-index: 1000;
}

.pga9-bottom-nav-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  min-height: 6rem;
  padding: 0.5rem;
}

.pga9-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--pga9-text);
  padding: 0.8rem;
  border-radius: 0.8rem;
  transition: var(--pga9-transition);
  min-width: 4.4rem;
  position: relative;
}

.pga9-bottom-nav-item:hover,
.pga9-nav-active {
  color: var(--pga9-primary);
  background: rgba(204, 153, 255, 0.1);
}

.pga9-nav-icon {
  font-size: 2.4rem;
  margin-bottom: 0.2rem;
}

.pga9-nav-text {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1;
}

/* Footer */
.pga9-footer {
  background: var(--pga9-bg-light);
  padding: 3rem 0 8rem;
  margin-top: 4rem;
}

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

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

.pga9-footer-link {
  color: var(--pga9-text);
  text-decoration: none;
  font-size: 1.3rem;
  transition: var(--pga9-transition);
}

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

.pga9-partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0;
  opacity: 0.7;
}

.pga9-partner-logo {
  height: 3rem;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%);
  transition: var(--pga9-transition);
}

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

.pga9-copyright {
  font-size: 1.2rem;
  color: var(--pga9-text);
  opacity: 0.7;
}

/* Promotional Links */
.pga9-promo-link {
  color: var(--pga9-primary);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: var(--pga9-transition);
}

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

/* Animations */
.pga9-animate {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}

.pga9-animated {
  opacity: 1;
  transform: translateY(0);
}

/* Ripple Effect */
.pga9-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(204, 153, 255, 0.6);
  transform: scale(0);
  animation: pga9-ripple-animation 0.6s linear;
  pointer-events: none;
}

@keyframes pga9-ripple-animation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Utility Classes */
.pga9-grid {
  display: grid;
  gap: 1.5rem;
}

.pga9-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.pga9-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.pga9-flex {
  display: flex;
}

.pga9-flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.pga9-flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pga9-mt-1 { margin-top: 1rem; }
.pga9-mt-2 { margin-top: 2rem; }
.pga9-mb-1 { margin-bottom: 1rem; }
.pga9-mb-2 { margin-bottom: 2rem; }
.pga9-p-1 { padding: 1rem; }
.pga9-p-2 { padding: 2rem; }

/* Responsive Design */
@media (min-width: 48rem) {
  html {
    font-size: 65%;
  }
  
  .pga9-container {
    max-width: 48rem;
  }
  
  .pga9-game-grid {
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  }
  
  .pga9-header-actions .pga9-btn {
    font-size: 1.4rem;
  }
  
  .pga9-bottom-nav {
    display: none;
  }
  
  .pga9-main {
    padding-bottom: 4rem;
  }
  
  .pga9-footer {
    padding: 4rem 0 2rem;
  }
}

@media (min-width: 64rem) {
  html {
    font-size: 70%;
  }
  
  .pga9-container {
    max-width: 64rem;
  }
  
  .pga9-game-grid {
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  }
}

/* Dark theme enhancements */
@media (prefers-color-scheme: dark) {
  :root {
    --pga9-text: #E0E0E0;
    --pga9-border: #404040;
  }
}

/* Print styles */
@media print {
  .pga9-header,
  .pga9-bottom-nav,
  .pga9-footer {
    display: none;
  }
  
  .pga9-main {
    padding-top: 0;
    padding-bottom: 0;
  }
}

/* Focus styles for accessibility */
.pga9-btn:focus,
.pga9-nav-link:focus,
.pga9-bottom-nav-item:focus {
  outline: 2px solid var(--pga9-primary);
  outline-offset: 2px;
}

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

.pga9-spinner {
  border: 3px solid rgba(204, 153, 255, 0.3);
  border-top: 3px solid var(--pga9-primary);
  border-radius: 50%;
  width: 3rem;
  height: 3rem;
  animation: pga9-spin 1s linear infinite;
  margin: 2rem auto;
}

@keyframes pga9-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}