/**
 * bigbunny ph - Core Stylesheet
 * All classes use pg4d prefix for namespace isolation
 */

/* CSS Variables */
:root {
  --pg4d-primary: #48D1CC;
  --pg4d-secondary: #DDA0DD;
  --pg4d-dark: #273746;
  --pg4d-accent: #40E0D0;
  --pg4d-success: #26A69A;
  --pg4d-text-light: #ECF0F1;
  --pg4d-text-gray: #BDC3C7;
  --pg4d-bg-light: #34495E;
  --pg4d-bg-darker: #1A252F;
}

/* Reset & Base */
* {
  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, Oxygen, Ubuntu, sans-serif;
  font-size: 1.6rem;
  line-height: 1.5;
  color: var(--pg4d-text-light);
  background-color: var(--pg4d-dark);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Layout Container */
.pg4d-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.5rem;
  background-color: var(--pg4d-dark);
  min-height: 100vh;
  position: relative;
}

.pg4d-wrapper {
  padding-top: 70px;
  padding-bottom: 80px;
}

/* Header */
.pg4d-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--pg4d-dark) 0%, var(--pg4d-bg-darker) 100%);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  border-bottom: 2px solid var(--pg4d-primary);
}

.pg4d-header-inner {
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.5rem;
}

.pg4d-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--pg4d-text-light);
}

.pg4d-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.pg4d-logo-text {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--pg4d-primary);
  text-shadow: 0 0 10px rgba(72, 209, 204, 0.5);
}

.pg4d-header-buttons {
  display: flex;
  gap: 0.8rem;
}

.pg4d-btn {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 8px;
  font-size: 1.4rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.pg4d-btn-primary {
  background: linear-gradient(135deg, var(--pg4d-primary) 0%, var(--pg4d-accent) 100%);
  color: var(--pg4d-dark);
  box-shadow: 0 4px 15px rgba(72, 209, 204, 0.4);
}

.pg4d-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(72, 209, 204, 0.6);
}

.pg4d-btn-secondary {
  background: linear-gradient(135deg, var(--pg4d-secondary) 0%, #BA68C8 100%);
  color: var(--pg4d-dark);
  box-shadow: 0 4px 15px rgba(221, 160, 221, 0.4);
}

.pg4d-btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(221, 160, 221, 0.6);
}

.pg4d-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--pg4d-primary);
  font-size: 2.4rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* Mobile Menu */
.pg4d-mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(26, 37, 47, 0.98);
  z-index: 9999;
  padding: 80px 2rem 2rem;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.pg4d-mobile-menu.pg4d-menu-open {
  transform: translateX(0);
}

.pg4d-menu-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--pg4d-primary);
  font-size: 2.8rem;
  cursor: pointer;
}

.pg4d-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pg4d-menu-link {
  padding: 1.2rem;
  background: var(--pg4d-bg-light);
  color: var(--pg4d-text-light);
  text-decoration: none;
  border-radius: 10px;
  font-size: 1.6rem;
  transition: all 0.3s ease;
  border-left: 4px solid var(--pg4d-primary);
}

.pg4d-menu-link:hover {
  background: var(--pg4d-primary);
  color: var(--pg4d-dark);
  transform: translateX(5px);
}

/* Carousel */
.pg4d-carousel {
  position: relative;
  margin-bottom: 2rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.pg4d-carousel-inner {
  position: relative;
  height: 200px;
}

.pg4d-carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
  cursor: pointer;
}

.pg4d-carousel-slide.pg4d-active {
  opacity: 1;
}

.pg4d-carousel-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pg4d-carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.pg4d-carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pg4d-carousel-dot.pg4d-active {
  background: var(--pg4d-primary);
  transform: scale(1.3);
}

/* Sections */
.pg4d-section {
  margin-bottom: 2.5rem;
  padding: 2rem;
  background: var(--pg4d-bg-light);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.pg4d-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--pg4d-primary);
  margin-bottom: 1.5rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 0 10px rgba(72, 209, 204, 0.3);
}

/* Game Grid */
.pg4d-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.pg4d-game-card {
  background: var(--pg4d-bg-darker);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  display: block;
}

.pg4d-game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(72, 209, 204, 0.4);
}

.pg4d-game-image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.pg4d-game-name {
  padding: 0.8rem 0.5rem;
  font-size: 1.2rem;
  color: var(--pg4d-text-light);
  text-align: center;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Category Title */
.pg4d-category-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--pg4d-secondary);
  margin: 2rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--pg4d-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pg4d-category-title::before {
  content: '';
  width: 4px;
  height: 24px;
  background: var(--pg4d-primary);
  border-radius: 2px;
}

/* Content Styling */
.pg4d-content p {
  margin-bottom: 1.2rem;
  color: var(--pg4d-text-gray);
  line-height: 1.8;
}

.pg4d-content a {
  color: var(--pg4d-primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.pg4d-content a:hover {
  color: var(--pg4d-accent);
  text-decoration: underline;
}

.pg4d-promo-link {
  color: var(--pg4d-primary);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--pg4d-primary);
  transition: all 0.3s ease;
}

.pg4d-promo-link:hover {
  color: var(--pg4d-accent);
  border-color: var(--pg4d-accent);
}

/* List Styles */
.pg4d-list {
  list-style: none;
  padding-left: 0;
}

.pg4d-list-item {
  padding: 1rem;
  margin-bottom: 1rem;
  background: var(--pg4d-bg-darker);
  border-radius: 8px;
  border-left: 4px solid var(--pg4d-primary);
  color: var(--pg4d-text-gray);
}

.pg4d-list-item strong {
  color: var(--pg4d-primary);
}

/* Feature Cards */
.pg4d-feature-card {
  background: var(--pg4d-bg-darker);
  padding: 1.5rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  border: 1px solid rgba(72, 209, 204, 0.2);
}

.pg4d-feature-title {
  font-size: 1.6rem;
  color: var(--pg4d-primary);
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.pg4d-feature-text {
  font-size: 1.4rem;
  color: var(--pg4d-text-gray);
  line-height: 1.6;
}

/* Footer */
.pg4d-footer {
  background: var(--pg4d-bg-darker);
  padding: 2rem 1.5rem 100px;
  margin-top: 3rem;
  border-top: 2px solid var(--pg4d-primary);
}

.pg4d-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  justify-content: center;
}

.pg4d-footer-link {
  color: var(--pg4d-text-gray);
  text-decoration: none;
  font-size: 1.4rem;
  padding: 0.5rem 1rem;
  background: var(--pg4d-bg-light);
  border-radius: 6px;
  transition: all 0.3s ease;
}

.pg4d-footer-link:hover {
  background: var(--pg4d-primary);
  color: var(--pg4d-dark);
}

.pg4d-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.pg4d-partner-logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.pg4d-partner-logo:hover {
  opacity: 1;
}

.pg4d-copyright {
  text-align: center;
  color: var(--pg4d-text-gray);
  font-size: 1.2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Mobile Bottom Navigation */
.pg4d-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--pg4d-dark) 0%, var(--pg4d-bg-darker) 100%);
  border-top: 2px solid var(--pg4d-primary);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.pg4d-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  text-decoration: none;
  color: var(--pg4d-text-gray);
  transition: all 0.3s ease;
  position: relative;
}

.pg4d-nav-item:hover,
.pg4d-nav-item.pg4d-active {
  color: var(--pg4d-primary);
}

.pg4d-nav-icon {
  font-size: 24px;
  margin-bottom: 4px;
}

.pg4d-nav-text {
  font-size: 10px;
  font-weight: 500;
}

/* Desktop Navigation (hidden on mobile) */
@media (min-width: 769px) {
  .pg4d-bottom-nav {
    display: none;
  }

  .pg4d-wrapper {
    padding-bottom: 2rem;
  }

  .pg4d-menu-toggle {
    display: block;
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .pg4d-menu-toggle {
    display: block;
  }

  .pg4d-mobile-menu {
    display: block;
  }

  .pg4d-header-buttons .pg4d-btn {
    padding: 0.5rem 1rem;
    font-size: 1.3rem;
  }
}

/* Utility Classes */
.pg4d-text-center {
  text-align: center;
}

.pg4d-mt-1 {
  margin-top: 1rem;
}

.pg4d-mb-1 {
  margin-bottom: 1rem;
}

.pg4d-mt-2 {
  margin-top: 2rem;
}

.pg4d-mb-2 {
  margin-bottom: 2rem;
}
