/**
 * BigBunny PH - Main CSS Stylesheet
 * Mobile-first responsive design for gaming platform
 * Prefix: pg50- for all classes
 */

/* CSS Variables */
:root {
  --pg50-primary: #7CFC00;
  --pg50-secondary: #20B2AA;
  --pg50-accent: #3CB371;
  --pg50-warning: #D2691E;
  --pg50-dark: #262626;
  --pg50-text: #FFFFFF;
  --pg50-bg-primary: #262626;
  --pg50-bg-secondary: #1a1a1a;
  --pg50-bg-card: #2d2d2d;
  --pg50-border: rgba(124, 252, 0, 0.2);
  --pg50-shadow: rgba(0, 0, 0, 0.5);
  --pg50-gradient: linear-gradient(135deg, #7CFC00, #20B2AA);
  --pg50-font-size: 62.5%;
  --pg50-border-radius: 0.8rem;
  --pg50-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --vh: 1vh;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: var(--pg50-font-size);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--pg50-bg-primary);
  color: var(--pg50-text);
  line-height: 1.5;
  font-size: 1.4rem;
  overflow-x: hidden;
}

/* Typography */
.pg50-h1 {
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.6rem;
  background: var(--pg50-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pg50-h2 {
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1.2rem;
  color: var(--pg50-primary);
}

.pg50-h3 {
  font-size: 1.8rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 1rem;
  color: var(--pg50-secondary);
}

.pg50-h4 {
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 0.8rem;
  color: var(--pg50-accent);
}

.pg50-text-primary { color: var(--pg50-primary); }
.pg50-text-secondary { color: var(--pg50-secondary); }
.pg50-text-accent { color: var(--pg50-accent); }
.pg50-text-warning { color: var(--pg50-warning); }
.pg50-text-center { text-align: center; }
.pg50-text-left { text-align: left; }
.pg50-text-right { text-align: right; }

/* Layout Components */
.pg50-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.pg50-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.6rem;
}

.pg50-grid {
  display: grid;
  gap: 1.6rem;
}

.pg50-grid-2 { grid-template-columns: repeat(2, 1fr); }
.pg50-grid-3 { grid-template-columns: repeat(3, 1fr); }
.pg50-grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 320px) {
  .pg50-grid-2,
  .pg50-grid-3,
  .pg50-grid-4 {
    grid-template-columns: 1fr;
  }
}

/* Header Styles */
.pg50-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--pg50-bg-secondary);
  border-bottom: 1px solid var(--pg50-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.pg50-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5.6rem;
  padding: 0 1.6rem;
}

.pg50-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--pg50-primary);
  font-weight: 700;
  font-size: 1.8rem;
}

.pg50-logo-img {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 0.4rem;
}

.pg50-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.pg50-hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 4.4rem;
  height: 4.4rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.8rem;
}

.pg50-hamburger span {
  width: 100%;
  height: 2px;
  background: var(--pg50-primary);
  margin: 2px 0;
  transition: var(--pg50-transition);
  border-radius: 1px;
}

/* Mobile Menu */
.pg50-mobile-menu {
  position: fixed;
  top: 5.6rem;
  left: -100%;
  width: 80%;
  height: calc(100vh - 5.6rem);
  background: var(--pg50-bg-secondary);
  transition: var(--pg50-transition);
  z-index: 999;
  overflow-y: auto;
}

.pg50-mobile-menu.pg50-active {
  left: 0;
}

.pg50-menu-list {
  list-style: none;
  padding: 1.6rem 0;
}

.pg50-menu-item {
  border-bottom: 1px solid var(--pg50-border);
}

.pg50-nav-link {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.6rem 2rem;
  color: var(--pg50-text);
  text-decoration: none;
  font-size: 1.6rem;
  transition: var(--pg50-transition);
}

.pg50-nav-link:hover {
  background: rgba(124, 252, 0, 0.1);
  color: var(--pg50-primary);
}

.pg50-menu-overlay {
  position: fixed;
  top: 5.6rem;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: var(--pg50-transition);
  z-index: 998;
}

.pg50-menu-overlay.pg50-active {
  opacity: 1;
  visibility: visible;
}

/* Button Styles */
.pg50-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 1.2rem 2rem;
  border: none;
  border-radius: var(--pg50-border-radius);
  font-size: 1.4rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--pg50-transition);
  position: relative;
  overflow: hidden;
  min-height: 4.4rem;
  touch-action: manipulation;
}

.pg50-btn-primary {
  background: var(--pg50-gradient);
  color: var(--pg50-dark);
}

.pg50-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(124, 252, 0, 0.3);
}

.pg50-btn-secondary {
  background: var(--pg50-secondary);
  color: var(--pg50-text);
}

.pg50-btn-outline {
  background: transparent;
  color: var(--pg50-primary);
  border: 2px solid var(--pg50-primary);
}

.pg50-btn-sm {
  padding: 0.8rem 1.6rem;
  font-size: 1.2rem;
  min-height: 3.6rem;
}

.pg50-btn-lg {
  padding: 1.6rem 3.2rem;
  font-size: 1.6rem;
  min-height: 5.2rem;
}

/* Ripple Effect */
.pg50-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transform: scale(0);
  animation: pg50-ripple-animation 0.6s linear;
  pointer-events: none;
}

@keyframes pg50-ripple-animation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Card Styles */
.pg50-card {
  background: var(--pg50-bg-card);
  border-radius: var(--pg50-border-radius);
  border: 1px solid var(--pg50-border);
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px var(--pg50-shadow);
}

.pg50-card-header {
  padding: 2rem;
  background: rgba(124, 252, 0, 0.05);
  border-bottom: 1px solid var(--pg50-border);
}

.pg50-card-body {
  padding: 2rem;
}

.pg50-card-footer {
  padding: 1.6rem 2rem;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid var(--pg50-border);
}

/* Main Content */
.pg50-main {
  flex: 1;
  margin-top: 5.6rem;
  padding-bottom: 10rem;
}

/* Carousel Styles */
.pg50-carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--pg50-border-radius);
  margin-bottom: 2rem;
  height: 20rem;
}

.pg50-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.pg50-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  cursor: pointer;
}

.pg50-slide.pg50-active {
  opacity: 1;
}

.pg50-slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
}

.pg50-slide-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  padding: 2rem;
}

.pg50-slide-content h2 {
  font-size: 2.4rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.pg50-slide-content p {
  font-size: 1.6rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.pg50-dots {
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.8rem;
}

.pg50-dot {
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: var(--pg50-transition);
}

.pg50-dot.pg50-active {
  background: var(--pg50-primary);
}

/* Game Grid Styles */
.pg50-game-category {
  margin-bottom: 3rem;
}

.pg50-category-header {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 2rem;
  padding: 0 0.8rem;
}

.pg50-category-icon {
  font-size: 2.4rem;
  color: var(--pg50-primary);
}

.pg50-category-title {
  font-size: 2rem;
  font-weight: 600;
  color: var(--pg50-text);
}

.pg50-games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr));
  gap: 1.2rem;
  padding: 1.6rem;
  background: var(--pg50-bg-card);
  border-radius: var(--pg50-border-radius);
  border: 1px solid var(--pg50-border);
}

.pg50-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--pg50-text);
  transition: var(--pg50-transition);
  padding: 1rem;
  border-radius: var(--pg50-border-radius);
  min-height: 10rem;
}

.pg50-game-item:hover {
  transform: translateY(-4px);
  background: rgba(124, 252, 0, 0.1);
}

.pg50-game-img {
  width: 6rem;
  height: 6rem;
  border-radius: 0.8rem;
  margin-bottom: 0.8rem;
  object-fit: cover;
  border: 2px solid var(--pg50-border);
}

.pg50-game-name {
  font-size: 1.1rem;
  text-align: center;
  font-weight: 500;
  line-height: 1.2;
}

/* Stats Grid */
.pg50-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 1.6rem;
  margin: 2rem 0;
}

.pg50-stat-item {
  text-align: center;
  padding: 2rem;
  background: var(--pg50-bg-card);
  border-radius: var(--pg50-border-radius);
  border: 1px solid var(--pg50-border);
}

.pg50-stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--pg50-primary);
  margin-bottom: 0.8rem;
}

.pg50-stat-label {
  font-size: 1.4rem;
  color: var(--pg50-text);
}

/* Footer Styles */
.pg50-footer {
  background: var(--pg50-bg-secondary);
  border-top: 1px solid var(--pg50-border);
  padding: 3rem 0 12rem;
  margin-top: auto;
}

.pg50-footer-content {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.6rem;
  text-align: center;
}

.pg50-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 3rem;
}

.pg50-footer-link {
  color: var(--pg50-text);
  text-decoration: none;
  font-size: 1.4rem;
  transition: var(--pg50-transition);
}

.pg50-footer-link:hover {
  color: var(--pg50-primary);
}

.pg50-partners {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(6rem, 1fr));
  gap: 1.6rem;
  margin: 3rem 0;
  padding: 2rem;
  background: var(--pg50-bg-card);
  border-radius: var(--pg50-border-radius);
}

.pg50-partner-img {
  width: 100%;
  height: 4rem;
  object-fit: contain;
  filter: grayscale(100%);
  transition: var(--pg50-transition);
}

.pg50-partner-img:hover {
  filter: none;
}

.pg50-copyright {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 2rem;
}

/* Bottom Navigation */
.pg50-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--pg50-bg-secondary);
  border-top: 1px solid var(--pg50-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.pg50-bottom-nav-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 6.4rem;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 0.8rem;
}

.pg50-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.7);
  transition: var(--pg50-transition);
  padding: 0.8rem;
  border-radius: 0.8rem;
  min-width: 4.4rem;
  min-height: 4.4rem;
}

.pg50-bottom-nav-item:hover,
.pg50-bottom-nav-item.pg50-active {
  color: var(--pg50-primary);
  background: rgba(124, 252, 0, 0.1);
}

.pg50-bottom-nav-item i,
.pg50-bottom-nav-item ion-icon {
  font-size: 2.4rem;
  margin-bottom: 0.2rem;
}

.pg50-bottom-nav-text {
  font-size: 1rem;
  font-weight: 500;
}

/* Utility Classes */
.pg50-mb-sm { margin-bottom: 1rem; }
.pg50-mb-md { margin-bottom: 2rem; }
.pg50-mb-lg { margin-bottom: 3rem; }
.pg50-mt-sm { margin-top: 1rem; }
.pg50-mt-md { margin-top: 2rem; }
.pg50-mt-lg { margin-top: 3rem; }

.pg50-p-sm { padding: 1rem; }
.pg50-p-md { padding: 2rem; }
.pg50-p-lg { padding: 3rem; }

.pg50-d-none { display: none; }
.pg50-d-block { display: block; }
.pg50-d-flex { display: flex; }

/* Animations */
.pg50-fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: var(--pg50-transition);
}

.pg50-fade-in.pg50-animate {
  opacity: 1;
  transform: translateY(0);
}

.pg50-slide-up {
  transform: translateY(30px);
  opacity: 0;
  transition: var(--pg50-transition);
}

.pg50-slide-up.pg50-animate {
  transform: translateY(0);
  opacity: 1;
}

/* Loading Spinner */
.pg50-loader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--pg50-bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.pg50-spinner {
  width: 4rem;
  height: 4rem;
  border: 3px solid rgba(124, 252, 0, 0.3);
  border-radius: 50%;
  border-top-color: var(--pg50-primary);
  animation: pg50-spin 1s ease-in-out infinite;
}

@keyframes pg50-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Notifications */
.pg50-notification {
  position: fixed;
  top: 8rem;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: var(--pg50-bg-card);
  color: var(--pg50-text);
  padding: 1.6rem 2.4rem;
  border-radius: var(--pg50-border-radius);
  border: 1px solid var(--pg50-border);
  z-index: 10000;
  transition: var(--pg50-transition);
  box-shadow: 0 8px 32px var(--pg50-shadow);
}

.pg50-notification.pg50-show {
  transform: translateX(-50%) translateY(0);
}

.pg50-notification-success {
  border-color: var(--pg50-primary);
}

.pg50-notification-error {
  border-color: var(--pg50-warning);
}

/* Responsive Design */
@media (max-width: 375px) {
  .pg50-container {
    padding: 0 1.2rem;
  }
  
  .pg50-games-grid {
    grid-template-columns: repeat(auto-fill, minmax(7rem, 1fr));
    gap: 1rem;
    padding: 1.2rem;
  }
  
  .pg50-game-img {
    width: 5rem;
    height: 5rem;
  }
  
  .pg50-game-name {
    font-size: 1rem;
  }
}

@media (max-width: 320px) {
  .pg50-nav {
    padding: 0 1.2rem;
  }
  
  .pg50-carousel {
    height: 16rem;
  }
  
  .pg50-slide-content h2 {
    font-size: 2rem;
  }
  
  .pg50-slide-content p {
    font-size: 1.4rem;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  :root {
    --pg50-bg-primary: #1a1a1a;
    --pg50-bg-secondary: #262626;
    --pg50-bg-card: #2d2d2d;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  :root {
    --pg50-border: rgba(124, 252, 0, 0.5);
    --pg50-shadow: rgba(0, 0, 0, 0.8);
  }
}