/* Ph799 Gaming Platform - Mobile-First CSS Framework */
/* Version: 1.0.0 - Optimized for Gaming Experience */

/* === CSS CUSTOM PROPERTIES === */
:root {
  --gf9e-primary: #26A69A;
  --gf9e-secondary: #0E1621;
  --gf9e-accent: #F0FDFF;
  --gf9e-neutral: #DEE2E6;
  --gf9e-text: #0E1621;
  --gf9e-text-light: #F0FDFF;
  --gf9e-bg: #F0FDFF;
  --gf9e-bg-dark: #0E1621;
  --gf9e-success: #4CAF50;
  --gf9e-warning: #FF9800;
  --gf9e-error: #F44336;
  --gf9e-shadow: 0 4px 12px rgba(14, 22, 33, 0.15);
  --gf9e-shadow-hover: 0 8px 24px rgba(38, 166, 154, 0.25);
  --gf9e-border-radius: 12px;
  --gf9e-border-radius-small: 8px;
  --gf9e-border-radius-large: 20px;
  --gf9e-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --gf9e-font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --gf9e-z-header: 1000;
  --gf9e-z-modal: 1050;
  --gf9e-z-overlay: 1040;
  --gf9e-z-bottom-nav: 999;
}

/* === RESET AND BASE STYLES === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 62.5%; /* 1rem = 10px */
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--gf9e-font-primary);
  font-size: 1.6rem;
  line-height: 1.5;
  color: var(--gf9e-text);
  background-color: var(--gf9e-bg);
  overflow-x: hidden;
  position: relative;
}

/* === LAYOUT COMPONENTS === */
.gf9e-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  max-width: 430px;
  margin: 0 auto;
  background: var(--gf9e-bg);
  box-shadow: 0 0 30px rgba(14, 22, 33, 0.1);
}

.gf9e-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.6rem;
}

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

/* === HEADER NAVIGATION === */
.gf9e-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: linear-gradient(135deg, var(--gf9e-primary), var(--gf9e-secondary));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(240, 253, 255, 0.1);
  z-index: var(--gf9e-z-header);
  box-shadow: var(--gf9e-shadow);
}

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

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

.gf9e-logo-img {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: var(--gf9e-border-radius-small);
  object-fit: cover;
}

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

/* === BUTTONS === */
.gf9e-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 1.2rem 2rem;
  border: none;
  border-radius: var(--gf9e-border-radius);
  font-size: 1.4rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--gf9e-transition);
  min-height: 4.4rem;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.gf9e-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 ease;
}

.gf9e-btn:hover::before {
  left: 100%;
}

.gf9e-btn-primary {
  background: linear-gradient(135deg, var(--gf9e-primary), #2E7D8A);
  color: var(--gf9e-text-light);
  box-shadow: var(--gf9e-shadow);
}

.gf9e-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--gf9e-shadow-hover);
}

.gf9e-btn-secondary {
  background: rgba(240, 253, 255, 0.9);
  color: var(--gf9e-text);
  border: 2px solid var(--gf9e-primary);
}

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

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

.gf9e-btn-large {
  padding: 1.6rem 3.2rem;
  font-size: 1.8rem;
  min-height: 5.6rem;
  border-radius: var(--gf9e-border-radius-large);
}

/* === MOBILE MENU === */
.gf9e-menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.8rem;
  z-index: 1001;
}

.gf9e-menu-line {
  width: 2.4rem;
  height: 0.3rem;
  background: var(--gf9e-text-light);
  border-radius: 0.2rem;
  transition: var(--gf9e-transition);
}

.gf9e-toggle-active .gf9e-menu-line:nth-child(1) {
  transform: rotate(45deg) translate(0.6rem, 0.6rem);
}

.gf9e-toggle-active .gf9e-menu-line:nth-child(2) {
  opacity: 0;
}

.gf9e-toggle-active .gf9e-menu-line:nth-child(3) {
  transform: rotate(-45deg) translate(0.6rem, -0.6rem);
}

.gf9e-mobile-menu {
  position: fixed;
  top: 6rem;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: var(--gf9e-bg);
  border-radius: 0 0 var(--gf9e-border-radius-large) var(--gf9e-border-radius-large);
  box-shadow: var(--gf9e-shadow);
  z-index: var(--gf9e-z-modal);
  opacity: 0;
  transform: translateX(-50%) translateY(-2rem);
  visibility: hidden;
  transition: var(--gf9e-transition);
}

.gf9e-menu-active {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  visibility: visible;
}

.gf9e-menu-list {
  list-style: none;
  padding: 2rem 0;
}

.gf9e-menu-item {
  border-bottom: 1px solid var(--gf9e-neutral);
}

.gf9e-menu-item:last-child {
  border-bottom: none;
}

.gf9e-menu-link {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.6rem 2rem;
  color: var(--gf9e-text);
  text-decoration: none;
  font-weight: 500;
  transition: var(--gf9e-transition);
}

.gf9e-menu-link:hover {
  background: rgba(38, 166, 154, 0.1);
  color: var(--gf9e-primary);
}

.gf9e-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(14, 22, 33, 0.5);
  z-index: var(--gf9e-z-overlay);
  opacity: 0;
  visibility: hidden;
  transition: var(--gf9e-transition);
}

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

/* === CAROUSEL COMPONENT === */
.gf9e-carousel {
  position: relative;
  width: 100%;
  height: 20rem;
  margin: 2rem 0;
  border-radius: var(--gf9e-border-radius-large);
  overflow: hidden;
  box-shadow: var(--gf9e-shadow);
}

.gf9e-carousel-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.gf9e-carousel-active {
  opacity: 1;
}

.gf9e-carousel-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

.gf9e-carousel-dots {
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.8rem;
}

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

.gf9e-dot-active {
  background: var(--gf9e-text-light);
  transform: scale(1.2);
}

/* === GAME GRID === */
.gf9e-games-section {
  margin: 3rem 0;
}

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

.gf9e-section-title::after {
  content: '';
  position: absolute;
  bottom: -0.8rem;
  left: 50%;
  transform: translateX(-50%);
  width: 6rem;
  height: 0.4rem;
  background: linear-gradient(90deg, var(--gf9e-primary), var(--gf9e-secondary));
  border-radius: 0.2rem;
}

.gf9e-games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  margin: 2rem 0;
}

.gf9e-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  padding: 1rem;
  border-radius: var(--gf9e-border-radius);
  background: var(--gf9e-bg);
  box-shadow: 0 2px 8px rgba(14, 22, 33, 0.1);
  transition: var(--gf9e-transition);
  cursor: pointer;
}

.gf9e-game-item:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--gf9e-shadow-hover);
}

.gf9e-game-img {
  width: 5.6rem;
  height: 5.6rem;
  border-radius: var(--gf9e-border-radius-small);
  object-fit: cover;
  margin-bottom: 0.8rem;
}

.gf9e-game-name {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--gf9e-text);
  text-align: center;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* === CONTENT SECTIONS === */
.gf9e-content-section {
  margin: 4rem 0;
}

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

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

.gf9e-text-center {
  text-align: center;
}

/* === FEATURE GRID === */
.gf9e-feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin: 2rem 0;
}

.gf9e-feature-item {
  background: var(--gf9e-bg);
  padding: 2rem;
  border-radius: var(--gf9e-border-radius);
  box-shadow: var(--gf9e-shadow);
  border: 1px solid var(--gf9e-neutral);
  transition: var(--gf9e-transition);
}

.gf9e-feature-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--gf9e-shadow-hover);
}

.gf9e-feature-icon {
  font-size: 3rem;
  color: var(--gf9e-primary);
  margin-bottom: 1.2rem;
  text-align: center;
}

.gf9e-feature-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--gf9e-text);
  margin-bottom: 1rem;
  text-align: center;
}

.gf9e-feature-desc {
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--gf9e-text);
}

/* === FAQ ACCORDION === */
.gf9e-faq-item {
  border: 1px solid var(--gf9e-neutral);
  border-radius: var(--gf9e-border-radius);
  margin-bottom: 1rem;
  overflow: hidden;
}

.gf9e-faq-question {
  width: 100%;
  background: var(--gf9e-bg);
  border: none;
  padding: 1.6rem;
  text-align: left;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gf9e-text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--gf9e-transition);
}

.gf9e-faq-question:hover {
  background: rgba(38, 166, 154, 0.05);
}

.gf9e-faq-icon {
  font-size: 1.8rem;
  color: var(--gf9e-primary);
  transition: var(--gf9e-transition);
}

.gf9e-icon-rotate {
  transform: rotate(45deg);
}

.gf9e-faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.gf9e-faq-open {
  max-height: 50rem;
}

.gf9e-faq-answer {
  padding: 1.6rem;
  font-size: 1.4rem;
  line-height: 1.6;
  color: var(--gf9e-text);
  border-top: 1px solid var(--gf9e-neutral);
  background: rgba(240, 253, 255, 0.3);
}

/* === BOTTOM NAVIGATION === */
.gf9e-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: linear-gradient(135deg, var(--gf9e-bg), rgba(240, 253, 255, 0.95));
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--gf9e-neutral);
  z-index: var(--gf9e-z-bottom-nav);
  transition: var(--gf9e-transition);
}

.gf9e-bottom-nav-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0.8rem 0;
  height: 6.4rem;
}

.gf9e-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 0.8rem;
  border-radius: var(--gf9e-border-radius-small);
  transition: var(--gf9e-transition);
  min-width: 4.4rem;
}

.gf9e-bottom-nav-item a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  color: var(--gf9e-text);
}

.gf9e-nav-icon {
  font-size: 2.4rem;
  transition: var(--gf9e-transition);
}

.gf9e-nav-text {
  font-size: 1.1rem;
  font-weight: 500;
  white-space: nowrap;
}

.gf9e-nav-active {
  background: rgba(38, 166, 154, 0.1);
}

.gf9e-nav-active .gf9e-nav-icon {
  color: var(--gf9e-primary);
  transform: scale(1.1);
}

.gf9e-nav-active .gf9e-nav-text {
  color: var(--gf9e-primary);
  font-weight: 600;
}

/* === FOOTER === */
.gf9e-footer {
  background: var(--gf9e-secondary);
  color: var(--gf9e-text-light);
  padding: 3rem 0 2rem;
  margin-top: auto;
}

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

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

.gf9e-footer-link {
  color: var(--gf9e-text-light);
  text-decoration: none;
  font-size: 1.4rem;
  transition: var(--gf9e-transition);
}

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

.gf9e-partners {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.2rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.gf9e-partner-img {
  width: 3.2rem;
  height: 3.2rem;
  opacity: 0.6;
  transition: var(--gf9e-transition);
}

.gf9e-partner-img:hover {
  opacity: 1;
  transform: scale(1.1);
}

.gf9e-copyright {
  font-size: 1.2rem;
  opacity: 0.8;
  margin-top: 2rem;
}

/* === UTILITY CLASSES === */
.gf9e-mt-1 { margin-top: 1rem; }
.gf9e-mt-2 { margin-top: 2rem; }
.gf9e-mb-1 { margin-bottom: 1rem; }
.gf9e-mb-2 { margin-bottom: 2rem; }

.gf9e-animate-pulse {
  animation: gf9ePulse 2s infinite;
}

@keyframes gf9ePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.gf9e-animate-bounce {
  animation: gf9eBounce 1s infinite;
}

@keyframes gf9eBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-0.5rem); }
}

/* === RESPONSIVE BREAKPOINTS === */
@media (min-width: 375px) {
  .gf9e-games-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.6rem;
  }
  
  .gf9e-game-img {
    width: 6.4rem;
    height: 6.4rem;
  }
}

@media (min-width: 414px) {
  .gf9e-feature-grid {
    grid-template-columns: 1fr;
    gap: 2.4rem;
  }
  
  .gf9e-games-grid {
    gap: 2rem;
  }
}

/* === PERFORMANCE OPTIMIZATIONS === */
.gf9e-game-item,
.gf9e-btn,
.gf9e-feature-item {
  will-change: transform;
}

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

/* === PRINT STYLES === */
@media print {
  .gf9e-header,
  .gf9e-bottom-nav,
  .gf9e-mobile-menu {
    display: none;
  }
  
  .gf9e-main {
    padding-top: 0;
    padding-bottom: 0;
  }
}