/**
 * PHParadise Layout Stylesheet - Gaming Community Platform
 * Prefix: pge1- - All classes use this prefix to avoid conflicts
 * Color Scheme: Coral Pink (#FF8A80) & Silver (#BDC3C7)
 * Mobile-first responsive design (max-width: 430px)
 */

/* ========================================
   CSS Variables & Root Settings
======================================== */
:root {
  /* Primary Colors - Coral Pink Theme */
  --pge1-primary: #FF8A80;      /* Coral pink - main brand color */
  --pge1-secondary: #BDC3C7;    /* Silver - secondary accent */
  --pge1-accent: #F08080;       /* Light coral - highlights */
  --pge1-dark: #880E4F;         /* Dark red - CTAs */
  --pge1-bg: #2D2D2D;           /* Dark background */

  /* Neutral Colors */
  --pge1-white: #FFFFFF;
  --pge1-black: #000000;
  --pge1-gray-light: #E0E0E0;
  --pge1-gray-dark: #424242;

  /* Spacing */
  --pge1-spacing-xs: 0.5rem;
  --pge1-spacing-sm: 1rem;
  --pge1-spacing-md: 1.5rem;
  --pge1-spacing-lg: 2rem;
  --pge1-spacing-xl: 3rem;

  /* Typography */
  --pge1-font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --pge1-font-size-base: 16px;
  --pge1-line-height: 1.5;

  /* Borders & Radius */
  --pge1-radius-sm: 4px;
  --pge1-radius-md: 8px;
  --pge1-radius-lg: 12px;
  --pge1-radius-xl: 16px;

  /* Shadows */
  --pge1-shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --pge1-shadow-md: 0 4px 8px rgba(0, 0, 0, 0.15);
  --pge1-shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.2);

  /* Z-index Layers */
  --pge1-z-header: 1000;
  --pge1-z-bottom-nav: 1000;
  --pge1-z-menu: 9999;
  --pge1-z-overlay: 9998;
}

/* ========================================
   Base Styles & Reset
======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%; /* 10px base for easy rem calculations */
  scroll-behavior: smooth;
}

body {
  font-family: var(--pge1-font-primary);
  font-size: var(--pge1-font-size-base);
  line-height: var(--pge1-line-height);
  background-color: var(--pge1-bg);
  color: var(--pge1-white);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

/* ========================================
   Header Styles
======================================== */
.pge1-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--pge1-bg) 0%, #1a1a1a 100%);
  padding: 1rem 1.5rem;
  z-index: var(--pge1-z-header);
  border-bottom: 2px solid var(--pge1-primary);
  box-shadow: var(--pge1-shadow-md);
  transition: transform 0.3s ease;
}

.pge1-header-scrolled {
  background: rgba(45, 45, 45, 0.95);
  backdrop-filter: blur(10px);
}

.pge1-header-hidden {
  transform: translateY(-100%);
}

.pge1-header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pge1-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--pge1-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.pge1-logo-img {
  width: 32px;
  height: 32px;
  border-radius: var(--pge1-radius-sm);
}

.pge1-header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* ========================================
   Button Styles
======================================== */
.pge1-btn {
  padding: 0.8rem 1.8rem;
  border-radius: var(--pge1-radius-md);
  font-size: 1.4rem;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.pge1-btn-login {
  background: transparent;
  color: var(--pge1-secondary);
  border: 2px solid var(--pge1-secondary);
  padding: 0.6rem 1.5rem;
  border-radius: var(--pge1-radius-md);
  font-size: 1.4rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.pge1-btn-login:hover {
  background: var(--pge1-secondary);
  color: var(--pge1-bg);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(189, 195, 199, 0.3);
}

.pge1-btn-register {
  background: linear-gradient(135deg, var(--pge1-primary) 0%, var(--pge1-accent) 100%);
  color: var(--pge1-white);
  padding: 0.6rem 1.5rem;
  border-radius: var(--pge1-radius-md);
  font-size: 1.4rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(255, 138, 128, 0.4);
}

.pge1-btn-register:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 138, 128, 0.5);
}

.pge1-btn-primary {
  background: linear-gradient(135deg, var(--pge1-primary) 0%, var(--pge1-accent) 100%);
  color: var(--pge1-white);
  box-shadow: 0 4px 12px rgba(255, 138, 128, 0.3);
}

.pge1-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 138, 128, 0.4);
}

.pge1-btn-accent {
  background: linear-gradient(135deg, var(--pge1-dark) 0%, #6a0b3d 100%);
  color: var(--pge1-white);
  box-shadow: 0 4px 12px rgba(136, 14, 79, 0.3);
}

.pge1-btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(136, 14, 79, 0.4);
}

/* ========================================
   Mobile Menu Toggle
======================================== */
.pge1-menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0.5rem;
  cursor: pointer;
}

.pge1-menu-toggle span {
  width: 24px;
  height: 3px;
  background: var(--pge1-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ========================================
   Mobile Menu
======================================== */
.pge1-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: var(--pge1-z-overlay);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.pge1-overlay-active {
  opacity: 1;
  visibility: visible;
}

.pge1-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 350px;
  height: 100vh;
  background: linear-gradient(135deg, #1a1a1a 0%, var(--pge1-bg) 100%);
  z-index: var(--pge1-z-menu);
  overflow-y: auto;
  transition: right 0.3s ease;
  border-left: 3px solid var(--pge1-primary);
}

.pge1-menu-active {
  right: 0;
}

.pge1-menu-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 3rem;
  color: var(--pge1-primary);
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pge1-menu-nav {
  padding: 6rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pge1-menu-link {
  padding: 1.2rem 1.5rem;
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--pge1-secondary);
  border-radius: var(--pge1-radius-md);
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.pge1-menu-link:hover,
.pge1-menu-link.pge1-active {
  background: rgba(255, 138, 128, 0.1);
  color: var(--pge1-primary);
  border-left-color: var(--pge1-primary);
  transform: translateX(5px);
}

/* ========================================
   Main Content Area
======================================== */
.pge1-main {
  margin-top: 60px;
  min-height: calc(100vh - 60px - 70px);
  padding-bottom: 80px; /* Space for bottom nav on mobile */
}

@media (min-width: 769px) {
  .pge1-main {
    padding-bottom: 2rem;
  }
}

.pge1-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.pge1-section {
  padding: 3rem 0;
}

.pge1-section-title {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--pge1-primary);
  margin-bottom: 2rem;
  text-align: center;
}

/* ========================================
   Carousel Styles
======================================== */
.pge1-carousel {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 3rem;
  border-radius: var(--pge1-radius-lg);
  overflow: hidden;
  box-shadow: var(--pge1-shadow-lg);
}

.pge1-carousel-slides {
  position: relative;
  width: 100%;
  height: 250px;
}

.pge1-carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
  cursor: pointer;
}

.pge1-slide-active {
  opacity: 1;
  z-index: 1;
}

.pge1-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pge1-carousel-dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.8rem;
  z-index: 2;
}

.pge1-carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: 2px solid var(--pge1-white);
  cursor: pointer;
  transition: all 0.3s ease;
}

.pge1-dot-active {
  background: var(--pge1-primary);
  width: 12px;
  height: 12px;
}

/* ========================================
   Game Grid Styles
======================================== */
.pge1-game-category {
  margin-bottom: 4rem;
}

.pge1-category-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--pge1-primary);
}

.pge1-category-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--pge1-primary);
  text-transform: uppercase;
}

.pge1-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

@media (min-width: 769px) {
  .pge1-game-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
  }
}

.pge1-game-card {
  background: var(--pge1-gray-dark);
  border-radius: var(--pge1-radius-md);
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
}

.pge1-card-visible {
  opacity: 1;
  transform: translateY(0);
}

.pge1-game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(255, 138, 128, 0.3);
}

.pge1-game-image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.pge1-game-name {
  padding: 0.8rem;
  font-size: 1.2rem;
  font-weight: 600;
  text-align: center;
  color: var(--pge1-white);
  background: rgba(0, 0, 0, 0.5);
}

/* ========================================
   Bottom Navigation (Mobile Only)
======================================== */
.pge1-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, #1a1a1a 0%, var(--pge1-bg) 100%);
  border-top: 2px solid var(--pge1-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0.8rem 0;
  z-index: var(--pge1-z-bottom-nav);
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.3);
}

@media (min-width: 769px) {
  .pge1-bottom-nav {
    display: none;
  }
}

.pge1-bottom-nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-width: 60px;
  min-height: 60px;
  color: var(--pge1-secondary);
  transition: all 0.3s ease;
}

.pge1-bottom-nav-link:hover,
.pge1-bottom-nav-link.pge1-active {
  color: var(--pge1-primary);
  transform: scale(1.1);
}

.pge1-bottom-nav-icon {
  font-size: 2.4rem;
}

.pge1-bottom-nav-text {
  font-size: 1rem;
  font-weight: 600;
}

/* ========================================
   Footer Styles
======================================== */
.pge1-footer {
  background: linear-gradient(135deg, #1a1a1a 0%, var(--pge1-bg) 100%);
  border-top: 3px solid var(--pge1-primary);
  padding: 3rem 0 1rem;
  margin-top: 4rem;
}

.pge1-footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.pge1-footer-promo {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.pge1-footer-partners {
  margin-bottom: 3rem;
  text-align: center;
}

.pge1-footer-partners h3 {
  color: var(--pge1-primary);
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.pge1-partner-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

.pge1-partner-grid img {
  width: 100%;
  height: auto;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.pge1-partner-grid img:hover {
  opacity: 1;
}

.pge1-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.pge1-footer-links a {
  color: var(--pge1-secondary);
  font-size: 1.4rem;
  transition: color 0.3s ease;
}

.pge1-footer-links a:hover {
  color: var(--pge1-primary);
}

.pge1-footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--pge1-gray-dark);
  color: var(--pge1-gray-light);
  font-size: 1.3rem;
}

/* ========================================
   Content Module Styles
======================================== */
.pge1-content-module {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--pge1-radius-lg);
  padding: 2.5rem;
  margin-bottom: 3rem;
  border-left: 4px solid var(--pge1-primary);
}

.pge1-module-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--pge1-primary);
  margin-bottom: 1.5rem;
}

.pge1-module-content {
  font-size: 1.5rem;
  line-height: 1.7;
  color: var(--pge1-gray-light);
}

.pge1-module-content p {
  margin-bottom: 1rem;
}

.pge1-module-content ul,
.pge1-module-content ol {
  margin-left: 2rem;
  margin-bottom: 1rem;
}

.pge1-module-content li {
  margin-bottom: 0.5rem;
}

/* ========================================
   Back to Top Button
======================================== */
.pge1-back-to-top {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--pge1-primary) 0%, var(--pge1-accent) 100%);
  color: var(--pge1-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: var(--pge1-shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}

.pge1-back-to-top-visible {
  opacity: 1;
  visibility: visible;
}

.pge1-back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(255, 138, 128, 0.4);
}

@media (min-width: 769px) {
  .pge1-back-to-top {
    bottom: 20px;
  }
}

/* ========================================
   Utility Classes
======================================== */
.pge1-text-center {
  text-align: center;
}

.pge1-text-primary {
  color: var(--pge1-primary);
}

.pge1-text-secondary {
  color: var(--pge1-secondary);
}

.pge1-mb-1 { margin-bottom: 1rem; }
.pge1-mb-2 { margin-bottom: 2rem; }
.pge1-mb-3 { margin-bottom: 3rem; }

.pge1-mt-1 { margin-top: 1rem; }
.pge1-mt-2 { margin-top: 2rem; }
.pge1-mt-3 { margin-top: 3rem; }
