/**
 * 987ph Click Website - Design System CSS
 * Mobile-first responsive casino gaming platform
 * Class prefix: pg22-
 */

/* CSS Variables for Design System */
:root {
  --pg22-primary: #E91E63;
  --pg22-secondary: #FF1493;
  --pg22-accent: #BAE1FF;
  --pg22-bg: #2C2C2C;
  --pg22-bg-light: #3A3A3A;
  --pg22-bg-card: #333333;
  --pg22-text: #FFFFFF;
  --pg22-text-secondary: #CCCCCC;
  --pg22-text-muted: #999999;
  --pg22-border: #444444;
  --pg22-success: #4CAF50;
  --pg22-warning: #FF9800;
  --pg22-error: #F44336;
  --pg22-shadow: rgba(0, 0, 0, 0.3);
  --pg22-shadow-light: rgba(0, 0, 0, 0.1);
  --pg22-gradient-primary: linear-gradient(135deg, var(--pg22-primary), var(--pg22-secondary));
  --pg22-gradient-accent: linear-gradient(135deg, var(--pg22-accent), var(--pg22-primary));
  --pg22-border-radius: 0.8rem;
  --pg22-border-radius-sm: 0.4rem;
  --pg22-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --pg22-max-width: 430px;
}

/* Reset and Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 62.5%; /* 1rem = 10px */
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--pg22-text);
  background-color: var(--pg22-bg);
  max-width: var(--pg22-max-width);
  margin: 0 auto;
  overflow-x: hidden;
}

/* Layout Components */
.pg22-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.pg22-container {
  width: 100%;
  max-width: var(--pg22-max-width);
  margin: 0 auto;
  padding: 0 1.6rem;
}

.pg22-grid {
  display: grid;
  gap: 1.6rem;
}

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

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

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

.pg22-flex {
  display: flex;
}

.pg22-flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.pg22-flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pg22-text-center {
  text-align: center;
}

/* Header Component */
.pg22-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--pg22-max-width);
  background: var(--pg22-bg-card);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--pg22-border);
  z-index: 1000;
  transition: var(--pg22-transition);
}

.pg22-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.6rem;
  height: 6rem;
}

.pg22-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: var(--pg22-text);
  font-weight: 700;
  font-size: 1.8rem;
}

.pg22-logo-img {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: var(--pg22-border-radius-sm);
}

.pg22-nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.pg22-hamburger {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  cursor: pointer;
  padding: 0.8rem;
  margin-left: 1rem;
}

.pg22-hamburger span {
  width: 2.4rem;
  height: 0.3rem;
  background: var(--pg22-text);
  border-radius: 0.2rem;
  transition: var(--pg22-transition);
}

.pg22-hamburger-active span:nth-child(1) {
  transform: rotate(45deg) translate(0.8rem, 0.8rem);
}

.pg22-hamburger-active span:nth-child(2) {
  opacity: 0;
}

.pg22-hamburger-active span:nth-child(3) {
  transform: rotate(-45deg) translate(0.8rem, -0.8rem);
}

/* Navigation Menu */
.pg22-nav-menu {
  position: fixed;
  top: 6rem;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--pg22-max-width);
  background: var(--pg22-bg-card);
  border-bottom: 1px solid var(--pg22-border);
  max-height: 0;
  overflow: hidden;
  transition: var(--pg22-transition);
}

.pg22-nav-menu-open {
  max-height: 50rem;
}

.pg22-nav-list {
  list-style: none;
  padding: 1.6rem;
}

.pg22-nav-item {
  margin-bottom: 0.8rem;
}

.pg22-nav-link {
  display: block;
  color: var(--pg22-text);
  text-decoration: none;
  padding: 1.2rem 1.6rem;
  border-radius: var(--pg22-border-radius-sm);
  transition: var(--pg22-transition);
}

.pg22-nav-link:hover,
.pg22-nav-link.pg22-active {
  background: var(--pg22-gradient-primary);
  color: white;
}

/* Button Components */
.pg22-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 1.2rem 2.4rem;
  font-size: 1.4rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: var(--pg22-border-radius);
  cursor: pointer;
  transition: var(--pg22-transition);
  min-height: 4.4rem;
  text-align: center;
  white-space: nowrap;
}

.pg22-btn-primary {
  background: var(--pg22-gradient-primary);
  color: white;
  box-shadow: 0 0.4rem 1.2rem var(--pg22-shadow-light);
}

.pg22-btn-primary:hover {
  transform: translateY(-0.2rem);
  box-shadow: 0 0.8rem 2.4rem var(--pg22-shadow);
}

.pg22-btn-secondary {
  background: transparent;
  color: var(--pg22-text);
  border: 0.2rem solid var(--pg22-border);
}

.pg22-btn-secondary:hover {
  background: var(--pg22-bg-light);
  border-color: var(--pg22-primary);
  color: var(--pg22-primary);
}

.pg22-promo-btn {
  background: var(--pg22-gradient-primary);
  color: white;
  border: none;
  padding: 1.4rem 2.8rem;
  font-size: 1.6rem;
  font-weight: 700;
  border-radius: var(--pg22-border-radius);
  cursor: pointer;
  transition: var(--pg22-transition);
  text-decoration: none;
  display: inline-block;
  text-align: center;
  box-shadow: 0 0.4rem 1.6rem rgba(233, 30, 99, 0.3);
}

.pg22-promo-btn:hover {
  transform: translateY(-0.3rem);
  box-shadow: 0 0.8rem 2.4rem rgba(233, 30, 99, 0.4);
}

/* Main Content */
.pg22-main {
  flex: 1;
  padding-top: 6rem;
  padding-bottom: 8rem;
}

.pg22-section {
  padding: 2.4rem 0;
}

.pg22-section:first-child {
  padding-top: 1.6rem;
}

/* Card Components */
.pg22-card {
  background: var(--pg22-bg-card);
  border-radius: var(--pg22-border-radius);
  padding: 2.4rem;
  margin-bottom: 2.4rem;
  border: 1px solid var(--pg22-border);
  box-shadow: 0 0.4rem 1.2rem var(--pg22-shadow-light);
  transition: var(--pg22-transition);
}

.pg22-card:hover {
  transform: translateY(-0.2rem);
  box-shadow: 0 0.8rem 2.4rem var(--pg22-shadow);
}

.pg22-card-title {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--pg22-text);
  margin-bottom: 1.6rem;
  text-align: center;
}

.pg22-card-content {
  color: var(--pg22-text-secondary);
  line-height: 1.6;
}

.pg22-card-content h3 {
  color: var(--pg22-primary);
  font-size: 1.8rem;
  margin: 2rem 0 1rem 0;
}

.pg22-card-content p {
  margin-bottom: 1.6rem;
}

.pg22-card-content ul {
  margin: 1.6rem 0;
  padding-left: 2rem;
}

.pg22-card-content li {
  margin-bottom: 0.8rem;
}

/* Hero Section */
.pg22-hero {
  text-align: center;
  padding: 3.2rem 0;
  background: var(--pg22-gradient-accent);
  margin-bottom: 2.4rem;
}

.pg22-hero-title {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--pg22-text);
  margin-bottom: 1.6rem;
  line-height: 1.2;
}

.pg22-hero-subtitle {
  font-size: 1.6rem;
  color: var(--pg22-text-secondary);
  margin-bottom: 2.4rem;
  line-height: 1.4;
}

/* Carousel Component */
.pg22-carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--pg22-border-radius);
  margin-bottom: 2.4rem;
  height: 20rem;
}

.pg22-carousel-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.pg22-carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  cursor: pointer;
}

.pg22-carousel-slide.pg22-active {
  opacity: 1;
}

.pg22-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pg22-carousel-indicators {
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.8rem;
}

.pg22-carousel-indicator {
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: var(--pg22-transition);
}

.pg22-carousel-indicator.pg22-active {
  background: var(--pg22-primary);
}

/* Game Components */
.pg22-games-category {
  margin-bottom: 3.2rem;
}

.pg22-category-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--pg22-text);
  margin-bottom: 1.6rem;
  text-align: center;
}

.pg22-games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  padding: 1.6rem 0;
}

.pg22-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.2rem;
  background: var(--pg22-bg-card);
  border-radius: var(--pg22-border-radius-sm);
  cursor: pointer;
  transition: var(--pg22-transition);
  border: 1px solid var(--pg22-border);
  text-decoration: none;
  color: inherit;
}

.pg22-game-item:hover {
  transform: translateY(-0.3rem);
  background: var(--pg22-bg-light);
  border-color: var(--pg22-primary);
}

.pg22-game-image {
  width: 4.8rem;
  height: 4.8rem;
  border-radius: var(--pg22-border-radius-sm);
  margin-bottom: 0.8rem;
  object-fit: cover;
}

.pg22-game-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--pg22-text);
  text-align: center;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Touch active states */
.pg22-touch-active {
  transform: scale(0.95);
}

/* Bottom Navigation */
.pg22-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--pg22-max-width);
  background: var(--pg22-bg-card);
  border-top: 1px solid var(--pg22-border);
  z-index: 999;
}

.pg22-bottom-nav-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0.8rem 0;
  height: 6.4rem;
}

.pg22-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.2rem;
  text-decoration: none;
  color: var(--pg22-text-muted);
  transition: var(--pg22-transition);
  cursor: pointer;
  min-width: 4.4rem;
}

.pg22-bottom-nav-item:hover,
.pg22-bottom-nav-item.pg22-active {
  color: var(--pg22-primary);
}

.pg22-bottom-nav-icon {
  font-size: 2.4rem;
}

.pg22-bottom-nav-text {
  font-size: 1rem;
  font-weight: 500;
}

/* Footer Component */
.pg22-footer {
  background: var(--pg22-bg-light);
  padding: 3.2rem 0 2.4rem;
  border-top: 1px solid var(--pg22-border);
  margin-bottom: 6.4rem;
}

.pg22-footer-content {
  text-align: center;
}

.pg22-footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
  margin-bottom: 2.4rem;
}

.pg22-footer-link {
  color: var(--pg22-text-secondary);
  text-decoration: none;
  padding: 0.8rem;
  border-radius: var(--pg22-border-radius-sm);
  transition: var(--pg22-transition);
  font-size: 1.3rem;
}

.pg22-footer-link:hover {
  color: var(--pg22-primary);
  background: var(--pg22-bg-card);
}

.pg22-partners {
  margin: 2.4rem 0;
}

.pg22-partners-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.2rem;
  margin-bottom: 1.6rem;
}

.pg22-partner-logo {
  width: 100%;
  height: 3.2rem;
  object-fit: contain;
  opacity: 0.7;
  transition: var(--pg22-transition);
}

.pg22-partner-logo:hover {
  opacity: 1;
}

.pg22-copyright {
  color: var(--pg22-text-muted);
  font-size: 1.2rem;
  line-height: 1.4;
}

/* Animation Classes */
.pg22-animate-ready {
  opacity: 0;
  transform: translateY(2rem);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.pg22-animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Lazy Loading */
.pg22-lazy {
  opacity: 0;
  transition: opacity 0.3s;
}

/* Responsive Design */
@media (max-width: 374px) {
  .pg22-games-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .pg22-game-image {
    width: 4rem;
    height: 4rem;
  }
  
  .pg22-game-name {
    font-size: 1rem;
  }
  
  .pg22-hero-title {
    font-size: 2.4rem;
  }
  
  .pg22-hero-subtitle {
    font-size: 1.4rem;
  }
}

@media (min-width: 375px) and (max-width: 430px) {
  .pg22-games-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Utility Classes */
.pg22-mt-1 { margin-top: 0.8rem; }
.pg22-mt-2 { margin-top: 1.6rem; }
.pg22-mt-3 { margin-top: 2.4rem; }
.pg22-mb-1 { margin-bottom: 0.8rem; }
.pg22-mb-2 { margin-bottom: 1.6rem; }
.pg22-mb-3 { margin-bottom: 2.4rem; }
.pg22-p-1 { padding: 0.8rem; }
.pg22-p-2 { padding: 1.6rem; }
.pg22-p-3 { padding: 2.4rem; }

.pg22-text-primary { color: var(--pg22-primary); }
.pg22-text-secondary { color: var(--pg22-text-secondary); }
.pg22-text-muted { color: var(--pg22-text-muted); }

.pg22-bg-primary { background: var(--pg22-primary); }
.pg22-bg-card { background: var(--pg22-bg-card); }
.pg22-bg-light { background: var(--pg22-bg-light); }

/* Promo Link Styles */
.pg22-promo-link {
  color: var(--pg22-primary);
  text-decoration: none;
  font-weight: 600;
  transition: var(--pg22-transition);
  border-bottom: 1px solid transparent;
}

.pg22-promo-link:hover {
  color: var(--pg22-secondary);
  border-bottom-color: var(--pg22-secondary);
}

/* Mobile Optimizations */
.pg22-mobile .pg22-btn {
  min-height: 4.8rem;
  font-size: 1.6rem;
}

.pg22-mobile .pg22-game-item {
  padding: 1.6rem 1.2rem;
}

.pg22-mobile .pg22-touch-active {
  background: var(--pg22-primary);
  color: white;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --pg22-bg: #000000;
    --pg22-text: #FFFFFF;
    --pg22-border: #666666;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}