/**
 * PH90 Gaming Platform - Main Stylesheet
 * Version: 1.0.0
 * Prefix: g08f-
 * Color Theme: Plum Purple (#DDA0DD) & Light Green (#90EE90) on Dark (#0C0C0C)
 * Mobile-First Design: Max-width 430px
 */

/* ===== CSS Variables ===== */
:root {
  --g08f-primary: #DDA0DD;
  --g08f-secondary: #90EE90;
  --g08f-accent: #DDA0DD;
  --g08f-bg-dark: #0C0C0C;
  --g08f-bg-darker: #050505;
  --g08f-bg-card: #1a1a1a;
  --g08f-text-light: #ECF0F1;
  --g08f-text-muted: #95A5A6;
  --g08f-border: #2C2C2C;
  --g08f-shadow: rgba(221, 160, 221, 0.15);
  --g08f-overlay: rgba(12, 12, 12, 0.92);
}

/* ===== 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, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--g08f-text-light);
  background: var(--g08f-bg-dark);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--g08f-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--g08f-primary);
}

/* ===== Header Styles ===== */
.g08f-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--g08f-bg-darker) 0%, var(--g08f-bg-dark) 100%);
  border-bottom: 2px solid var(--g08f-primary);
  padding: 1rem 1.5rem;
  z-index: 1000;
  transition: all 0.3s ease;
}

.g08f-header-scrolled {
  box-shadow: 0 4px 12px var(--g08f-shadow);
  border-bottom-color: var(--g08f-secondary);
}

.g08f-header-container {
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.g08f-logo-wrapper {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.g08f-logo-img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 2px solid var(--g08f-secondary);
}

.g08f-logo-text {
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--g08f-primary), var(--g08f-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.g08f-header-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.g08f-header-btn {
  padding: 0.6rem 1.2rem;
  font-size: 1.3rem;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.g08f-btn-register {
  background: linear-gradient(135deg, var(--g08f-secondary), #7FDF7F);
  color: var(--g08f-bg-dark);
}

.g08f-btn-register:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(144, 238, 144, 0.4);
}

.g08f-btn-login {
  background: linear-gradient(135deg, var(--g08f-primary), #CC90CC);
  color: var(--g08f-text-light);
}

.g08f-btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(221, 160, 221, 0.4);
}

.g08f-menu-toggle {
  background: transparent;
  border: 2px solid var(--g08f-primary);
  color: var(--g08f-primary);
  padding: 0.6rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.g08f-menu-toggle:hover {
  background: var(--g08f-primary);
  color: var(--g08f-bg-dark);
}

/* ===== Mobile Menu ===== */
#gamee56b-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--g08f-overlay);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

#gamee56b-menu-overlay.g08f-overlay-active {
  opacity: 1;
  visibility: visible;
}

#gamee56b-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 320px;
  height: 100vh;
  background: linear-gradient(180deg, var(--g08f-bg-darker) 0%, var(--g08f-bg-dark) 100%);
  z-index: 9999;
  padding: 2rem 0;
  overflow-y: auto;
  transition: right 0.3s ease;
  border-left: 3px solid var(--g08f-primary);
}

#gamee56b-mobile-menu.g08f-menu-active {
  right: 0;
}

.g08f-mobile-menu-header {
  padding: 0 2rem 2rem;
  border-bottom: 2px solid var(--g08f-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.g08f-menu-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--g08f-secondary);
}

.g08f-menu-close {
  background: transparent;
  border: none;
  color: var(--g08f-primary);
  font-size: 2.4rem;
  cursor: pointer;
  padding: 0.5rem;
  transition: all 0.3s ease;
}

.g08f-menu-close:hover {
  color: var(--g08f-secondary);
  transform: rotate(90deg);
}

.g08f-mobile-menu-nav {
  padding: 2rem 0;
}

.g08f-nav-link {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.2rem 2rem;
  color: var(--g08f-text-light);
  font-size: 1.5rem;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.g08f-nav-link:hover {
  background: var(--g08f-bg-card);
  border-left-color: var(--g08f-secondary);
  color: var(--g08f-secondary);
}

.g08f-nav-link.g08f-nav-active {
  background: var(--g08f-bg-card);
  border-left-color: var(--g08f-primary);
  color: var(--g08f-primary);
}

.g08f-nav-icon {
  font-size: 2rem;
}

/* ===== Main Content ===== */
.g08f-main {
  margin-top: 6rem;
  padding-bottom: 8rem;
  max-width: 430px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 768px) {
  .g08f-main {
    padding-bottom: 8rem;
  }
}

/* ===== Carousel Styles ===== */
.g08f-carousel {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 2rem;
}

.g08f-carousel-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.g08f-carousel-item.g08f-carousel-active {
  opacity: 1;
}

.g08f-carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  border: 3px solid var(--g08f-primary);
  border-radius: 12px;
}

/* ===== Section Styles ===== */
.g08f-section {
  padding: 2rem 1.5rem;
}

.g08f-section-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--g08f-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  padding-bottom: 1rem;
}

.g08f-section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--g08f-secondary), transparent);
}

.g08f-h1-title {
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 2rem;
  background: linear-gradient(135deg, var(--g08f-primary), var(--g08f-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== Game Grid ===== */
.g08f-game-category {
  margin-bottom: 3rem;
}

.g08f-category-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: linear-gradient(135deg, var(--g08f-bg-card), transparent);
  border-left: 4px solid var(--g08f-secondary);
  border-radius: 8px;
}

.g08f-category-icon {
  font-size: 2.4rem;
  color: var(--g08f-secondary);
}

.g08f-category-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--g08f-text-light);
  text-transform: capitalize;
}

.g08f-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.g08f-game-item {
  background: var(--g08f-bg-card);
  border-radius: 8px;
  padding: 0.6rem;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
}

.g08f-game-item:hover {
  transform: translateY(-4px);
  border-color: var(--g08f-primary);
  box-shadow: 0 6px 16px var(--g08f-shadow);
}

.g08f-game-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 0.5rem;
}

.g08f-game-name {
  font-size: 1.1rem;
  color: var(--g08f-text-light);
  text-align: center;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== Content Cards ===== */
.g08f-content-card {
  background: var(--g08f-bg-card);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  border: 2px solid var(--g08f-border);
  transition: all 0.3s ease;
}

.g08f-content-card:hover {
  border-color: var(--g08f-primary);
  box-shadow: 0 6px 20px var(--g08f-shadow);
}

.g08f-card-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--g08f-secondary);
  margin-bottom: 1.2rem;
}

.g08f-card-text {
  font-size: 1.4rem;
  line-height: 1.6;
  color: var(--g08f-text-light);
  margin-bottom: 1rem;
}

.g08f-card-list {
  list-style: none;
  padding-left: 0;
}

.g08f-card-list li {
  padding: 0.8rem 0 0.8rem 2.5rem;
  position: relative;
  line-height: 1.5;
}

.g08f-card-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--g08f-secondary);
  font-weight: 700;
  font-size: 1.6rem;
}

/* ===== Buttons ===== */
.g08f-btn {
  display: inline-block;
  padding: 1.2rem 2.4rem;
  font-size: 1.4rem;
  font-weight: 600;
  text-align: center;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.g08f-btn-primary {
  background: linear-gradient(135deg, var(--g08f-primary), #CC90CC);
  color: var(--g08f-text-light);
}

.g08f-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(221, 160, 221, 0.5);
}

.g08f-btn-secondary {
  background: linear-gradient(135deg, var(--g08f-secondary), #7FDF7F);
  color: var(--g08f-bg-dark);
}

.g08f-btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(144, 238, 144, 0.5);
}

/* ===== Footer ===== */
.g08f-footer {
  background: linear-gradient(180deg, var(--g08f-bg-dark) 0%, var(--g08f-bg-darker) 100%);
  border-top: 3px solid var(--g08f-primary);
  padding: 3rem 1.5rem 10rem;
  max-width: 430px;
  margin: 0 auto;
}

.g08f-footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.g08f-footer-link {
  padding: 0.8rem;
  font-size: 1.3rem;
  color: var(--g08f-secondary);
  border-left: 2px solid var(--g08f-border);
  transition: all 0.3s ease;
}

.g08f-footer-link:hover {
  border-left-color: var(--g08f-primary);
  padding-left: 1.2rem;
}

.g08f-partners {
  margin: 2rem 0;
}

.g08f-partners-title {
  font-size: 1.6rem;
  color: var(--g08f-text-muted);
  margin-bottom: 1.5rem;
  text-align: center;
}

.g08f-partners-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  align-items: center;
  justify-items: center;
}

.g08f-partner-logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
  opacity: 0.6;
  transition: all 0.3s ease;
  filter: grayscale(100%);
}

.g08f-partner-logo:hover {
  opacity: 1;
  filter: grayscale(0%);
  transform: scale(1.1);
}

.g08f-copyright {
  text-align: center;
  font-size: 1.2rem;
  color: var(--g08f-text-muted);
  padding-top: 2rem;
  border-top: 1px solid var(--g08f-border);
}

/* ===== Bottom Navigation ===== */
.g08f-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, var(--g08f-bg-darker) 0%, var(--g08f-bg-dark) 100%);
  border-top: 2px solid var(--g08f-secondary);
  padding: 0.6rem 0;
  z-index: 1000;
  box-shadow: 0 -4px 12px var(--g08f-shadow);
}

.g08f-bottom-nav-container {
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.g08f-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  min-width: 60px;
  min-height: 56px;
  color: var(--g08f-text-muted);
  transition: all 0.3s ease;
  cursor: pointer;
  border-radius: 8px;
  padding: 0.5rem;
}

.g08f-bottom-nav-item:hover {
  background: rgba(221, 160, 221, 0.1);
  color: var(--g08f-primary);
  transform: translateY(-2px);
}

.g08f-bottom-nav-item.g08f-nav-active {
  color: var(--g08f-secondary);
}

.g08f-bottom-nav-icon {
  font-size: 2.4rem;
  transition: all 0.3s ease;
}

.g08f-bottom-nav-item.g08f-nav-active .g08f-bottom-nav-icon {
  transform: scale(1.2);
  color: var(--g08f-primary);
}

.g08f-bottom-nav-text {
  font-size: 1.1rem;
  font-weight: 500;
  text-transform: capitalize;
}

@media (min-width: 769px) {
  .g08f-bottom-nav {
    display: none;
  }
}

/* ===== Notification ===== */
.g08f-notification {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--g08f-bg-card);
  color: var(--g08f-secondary);
  padding: 1.2rem 2.4rem;
  border-radius: 8px;
  border: 2px solid var(--g08f-secondary);
  z-index: 10000;
  opacity: 0;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px var(--g08f-shadow);
}

.g08f-notification.g08f-notification-show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ===== Utility Classes ===== */
.g08f-text-center {
  text-align: center;
}

.g08f-text-primary {
  color: var(--g08f-primary);
}

.g08f-text-secondary {
  color: var(--g08f-secondary);
}

.g08f-mb-1 {
  margin-bottom: 1rem;
}

.g08f-mb-2 {
  margin-bottom: 2rem;
}

.g08f-mt-2 {
  margin-top: 2rem;
}
