/* Legend Link SBS - Main Stylesheet */
/* Author: AI HTML Games Generator */
/* Color Scheme: #1E1E1E, #FFC0CB, #BC8F8F, #00CED1, #999999, #E9967A */
/* Prefix: pg02- */

/* CSS Variables for consistent theming */
:root {
  --pg02-primary: #FFC0CB;
  --pg02-secondary: #BC8F8F;
  --pg02-accent: #00CED1;
  --pg02-neutral: #999999;
  --pg02-highlight: #E9967A;
  --pg02-background: #1E1E1E;
  --pg02-dark: #141414;
  --pg02-white: #ffffff;
  --pg02-shadow: rgba(255, 192, 203, 0.15);
  --pg02-gradient-primary: linear-gradient(135deg, #FFC0CB 0%, #BC8F8F 100%);
  --pg02-gradient-accent: linear-gradient(135deg, #00CED1 0%, #E9967A 100%);
  --pg02-gradient-dark: linear-gradient(135deg, #1E1E1E 0%, #141414 100%);
  --pg02-border-radius: 8px;
  --pg02-radius-sm: 4px;
  --pg02-radius-md: 8px;
  --pg02-radius-lg: 12px;
  --pg02-radius-xl: 16px;
  --pg02-font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --pg02-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --pg02-z-header: 1000;
  --pg02-z-modal: 2000;
  --pg02-z-tooltip: 3000;
}

/* Base styles and reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--pg02-font-primary);
  background: var(--pg02-background);
  color: var(--pg02-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Typography */
.pg02-heading-primary {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  background: var(--pg02-gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.pg02-heading-secondary {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 600;
  color: var(--pg02-primary);
  margin-bottom: 1rem;
  text-align: center;
}

.pg02-text-highlight {
  color: var(--pg02-primary);
  font-weight: 600;
}

/* Layout containers */
.pg02-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  max-width: 430px;
  margin: 0 auto;
  background: var(--pg02-background);
  box-shadow: 0 0 20px rgba(255, 192, 203, 0.1);
}

.pg02-container {
  flex: 1;
  padding: 1rem;
  padding-bottom: 5rem;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
}

.pg02-section {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(255, 192, 203, 0.05) 0%, rgba(188, 143, 143, 0.05) 100%);
  border-radius: var(--pg02-radius-lg);
  border: 1px solid rgba(255, 192, 203, 0.1);
}

/* Header styles */
.pg02-header {
  background: var(--pg02-gradient-dark);
  padding: 1rem;
  border-bottom: 2px solid var(--pg02-primary);
  position: sticky;
  top: 0;
  z-index: var(--pg02-z-header);
  box-shadow: 0 2px 10px rgba(255, 192, 203, 0.2);
}

.pg02-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 430px;
  margin: 0 auto;
}

.pg02-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--pg02-white);
  font-weight: 700;
  font-size: 1.2rem;
}

.pg02-logo-icon {
  width: 32px;
  height: 32px;
  margin-right: 0.5rem;
  border-radius: var(--pg02-radius-sm);
}

.pg02-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Button styles */
.pg02-btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--pg02-radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: var(--pg02-transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  font-size: 0.9rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.pg02-btn-primary {
  background: var(--pg02-gradient-primary);
  color: var(--pg02-dark);
}

.pg02-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 192, 203, 0.4);
}

.pg02-btn-secondary {
  background: transparent;
  color: var(--pg02-primary);
  border: 2px solid var(--pg02-primary);
}

.pg02-btn-secondary:hover {
  background: var(--pg02-primary);
  color: var(--pg02-dark);
  transform: translateY(-2px);
}

.pg02-promo-btn {
  background: var(--pg02-gradient-accent);
  color: var(--pg02-white);
  padding: 1rem 2rem;
  border: none;
  border-radius: var(--pg02-radius-lg);
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--pg02-transition);
  display: block;
  margin: 2rem auto;
  text-align: center;
  min-height: 50px;
  box-shadow: 0 4px 20px rgba(0, 206, 209, 0.3);
}

.pg02-promo-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 206, 209, 0.5);
}

/* Mobile menu */
.pg02-hamburger {
  background: transparent;
  border: none;
  color: var(--pg02-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--pg02-radius-sm);
  min-height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pg02-mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--pg02-dark);
  border: 1px solid var(--pg02-primary);
  border-top: none;
  transition: var(--pg02-transition);
  z-index: 999;
}

.pg02-menu-closed {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
}

.pg02-menu-open {
  max-height: 300px;
  opacity: 1;
}

.pg02-menu-list {
  list-style: none;
  padding: 1rem 0;
}

.pg02-menu-item {
  margin: 0;
}

.pg02-menu-link {
  display: block;
  padding: 0.75rem 1.5rem;
  color: var(--pg02-white);
  text-decoration: none;
  transition: var(--pg02-transition);
  min-height: 44px;
  display: flex;
  align-items: center;
}

.pg02-menu-link:hover {
  background: var(--pg02-primary);
  color: var(--pg02-dark);
}

/* Grid layouts */
.pg02-grid {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.pg02-grid-2 {
  grid-template-columns: 1fr 1fr;
}

.pg02-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.pg02-grid-4 {
  grid-template-columns: repeat(2, 1fr);
}

/* Game grid */
.pg02-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}

.pg02-game-item {
  background: linear-gradient(135deg, rgba(255, 192, 203, 0.1) 0%, rgba(0, 206, 209, 0.1) 100%);
  border-radius: var(--pg02-radius-md);
  padding: 0.75rem;
  text-align: center;
  cursor: pointer;
  transition: var(--pg02-transition);
  border: 1px solid rgba(255, 192, 203, 0.2);
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pg02-game-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(255, 192, 203, 0.3);
  border-color: var(--pg02-primary);
}

.pg02-game-image {
  width: 100%;
  height: 60px;
  object-fit: cover;
  border-radius: var(--pg02-radius-sm);
  margin-bottom: 0.5rem;
}

.pg02-game-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--pg02-white);
  line-height: 1.2;
}

/* Feature lists */
.pg02-feature-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.pg02-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: rgba(255, 192, 203, 0.05);
  border-radius: var(--pg02-radius-md);
  border-left: 4px solid var(--pg02-primary);
}

.pg02-feature-icon {
  color: var(--pg02-primary);
  font-size: 1.5rem;
  min-width: 1.5rem;
  margin-top: 0.25rem;
}

/* Carousel */
.pg02-carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--pg02-radius-lg);
  margin: 1.5rem 0;
}

.pg02-carousel-slide {
  display: none;
  width: 100%;
}

.pg02-carousel-slide.pg02-active {
  display: block;
}

.pg02-carousel-slide img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--pg02-radius-lg);
}

.pg02-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.pg02-carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--pg02-neutral);
  cursor: pointer;
  transition: var(--pg02-transition);
}

.pg02-carousel-dot.pg02-active {
  background: var(--pg02-primary);
  transform: scale(1.2);
}

/* Bottom navigation */
.pg02-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background: var(--pg02-dark);
  border-top: 2px solid var(--pg02-primary);
  width: 100%;
  max-width: 430px;
  z-index: var(--pg02-z-header);
  box-shadow: 0 -2px 10px rgba(255, 192, 203, 0.2);
}

.pg02-bottom-nav-container {
  display: flex;
  justify-content: space-around;
  padding: 0.5rem 0;
}

.pg02-bottom-nav-item {
  flex: 1;
  text-align: center;
}

.pg02-bottom-nav-item.pg02-active .pg02-bottom-nav-link {
  color: var(--pg02-primary);
}

.pg02-bottom-nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--pg02-neutral);
  transition: var(--pg02-transition);
  padding: 0.5rem;
  border-radius: var(--pg02-radius-sm);
  min-height: 44px;
  justify-content: center;
}

.pg02-bottom-nav-link:hover {
  color: var(--pg02-primary);
  background: rgba(255, 192, 203, 0.1);
}

.pg02-bottom-nav-icon {
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

.pg02-bottom-nav-text {
  font-size: 0.7rem;
  font-weight: 500;
}

/* Footer */
.pg02-footer {
  background: var(--pg02-dark);
  padding: 2rem 1rem 1rem;
  border-top: 1px solid var(--pg02-primary);
  margin-top: auto;
}

.pg02-footer-content {
  max-width: 430px;
  margin: 0 auto;
  text-align: center;
}

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

.pg02-footer-link {
  color: var(--pg02-neutral);
  text-decoration: none;
  font-size: 0.85rem;
  transition: var(--pg02-transition);
  padding: 0.25rem 0.5rem;
  border-radius: var(--pg02-radius-sm);
}

.pg02-footer-link:hover {
  color: var(--pg02-primary);
  background: rgba(255, 192, 203, 0.1);
}

.pg02-copyright {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--pg02-neutral);
}

.pg02-copyright p {
  color: var(--pg02-neutral);
  font-size: 0.75rem;
}

/* Utility classes */
.pg02-text-center {
  text-align: center;
}

.pg02-mb-sm {
  margin-bottom: 0.5rem;
}

.pg02-mb-md {
  margin-bottom: 1rem;
}

.pg02-mb-lg {
  margin-bottom: 1.5rem;
}

.pg02-mb-xl {
  margin-bottom: 2rem;
}

.pg02-mt-sm {
  margin-top: 0.5rem;
}

.pg02-mt-md {
  margin-top: 1rem;
}

.pg02-mt-lg {
  margin-top: 1.5rem;
}

.pg02-mt-xl {
  margin-top: 2rem;
}

.pg02-p-sm {
  padding: 0.5rem;
}

.pg02-p-md {
  padding: 1rem;
}

.pg02-p-lg {
  padding: 1.5rem;
}

.pg02-hidden {
  display: none;
}

.pg02-visible {
  display: block;
}

/* Touch device optimizations */
.pg02-touch-device .pg02-game-item {
  min-height: 44px;
}

.pg02-touch-device .pg02-btn {
  min-height: 48px;
}

.pg02-touch-active {
  transform: scale(0.95);
  opacity: 0.8;
}

/* Loading states */
.pg02-loaded {
  opacity: 1;
  transition: opacity 0.3s ease;
}

.pg02-loading {
  opacity: 0.6;
}

/* Responsive adjustments */
@media (max-width: 430px) {
  .pg02-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .pg02-grid-4 {
    grid-template-columns: 1fr;
  }
  
  .pg02-game-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 350px) {
  .pg02-container {
    padding: 0.75rem;
  }
  
  .pg02-section {
    padding: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .pg02-nav-actions {
    gap: 0.25rem;
  }
  
  .pg02-btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }
  
  .pg02-footer-links {
    gap: 0.5rem;
  }
}