/**
 * no1jl-click CSS Design Framework
 * Mobile-first responsive design with pg52- class prefix
 * Color scheme: #00E5FF, #004D40, #F0FDFF, #0C0C0C
 * Max width: 430px for mobile-first approach
 */

:root {
  --pg52-primary: #00E5FF;
  --pg52-secondary: #004D40;
  --pg52-accent: #F0FDFF;
  --pg52-dark: #0C0C0C;
  --pg52-white: #ffffff;
  --pg52-shadow: rgba(0, 229, 255, 0.2);
  --pg52-shadow-dark: rgba(12, 12, 12, 0.3);
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
  background: linear-gradient(135deg, var(--pg52-dark) 0%, var(--pg52-secondary) 100%);
  color: var(--pg52-accent);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

/* Container system */
.pg52-wrapper {
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--pg52-dark);
  position: relative;
  box-shadow: 0 0 20px var(--pg52-shadow-dark);
}

.pg52-container {
  padding: 0 1rem;
  width: 100%;
}

/* Header styles */
.pg52-header {
  background: linear-gradient(90deg, var(--pg52-dark), var(--pg52-secondary));
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 2px solid var(--pg52-primary);
}

.pg52-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
}

.pg52-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--pg52-primary);
  font-weight: bold;
  font-size: 1.5rem;
}

.pg52-logo-img {
  width: 40px;
  height: 40px;
  margin-right: 0.5rem;
  border-radius: 8px;
}

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

/* Mobile menu toggle */
.pg52-menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  width: 30px;
  height: 24px;
  justify-content: space-between;
}

.pg52-menu-line {
  width: 100%;
  height: 3px;
  background: var(--pg52-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Mobile menu */
.pg52-mobile-menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 280px;
  height: 100vh;
  background: linear-gradient(180deg, var(--pg52-secondary), var(--pg52-dark));
  z-index: 1000;
  transition: left 0.3s ease;
  padding-top: 80px;
  border-right: 2px solid var(--pg52-primary);
}

.pg52-mobile-menu.pg52-menu-active {
  left: 0;
}

.pg52-menu-list {
  list-style: none;
  padding: 0;
}

.pg52-menu-item {
  border-bottom: 1px solid rgba(0, 229, 255, 0.1);
}

.pg52-menu-link {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  color: var(--pg52-accent);
  text-decoration: none;
  transition: all 0.3s ease;
}

.pg52-menu-link:hover {
  background: rgba(0, 229, 255, 0.1);
  color: var(--pg52-primary);
}

.pg52-menu-link i {
  margin-right: 0.75rem;
  width: 20px;
}

.pg52-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(12, 12, 12, 0.8);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.pg52-menu-overlay.pg52-menu-active {
  opacity: 1;
  visibility: visible;
}

/* Button styles */
.pg52-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 25px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  gap: 0.5rem;
  min-height: 44px;
}

.pg52-btn-primary {
  background: linear-gradient(45deg, var(--pg52-primary), var(--pg52-secondary));
  color: var(--pg52-white);
  box-shadow: 0 4px 15px var(--pg52-shadow);
}

.pg52-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--pg52-shadow);
}

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

.pg52-btn-secondary:hover {
  background: var(--pg52-primary);
  color: var(--pg52-dark);
}

.pg52-btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  min-height: 36px;
}

/* Content sections */
.pg52-main {
  padding-bottom: 80px;
}

.pg52-content-section {
  padding: 2rem 0;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.pg52-content-section.pg52-animate-in {
  opacity: 1;
  transform: translateY(0);
}

.pg52-section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  background: linear-gradient(45deg, var(--pg52-primary), var(--pg52-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pg52-content-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--pg52-primary);
  text-align: center;
}

.pg52-content-text {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  color: var(--pg52-accent);
  text-align: center;
}

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

.pg52-mt-1 { margin-top: 1rem; }
.pg52-mt-2 { margin-top: 2rem; }
.pg52-mb-1 { margin-bottom: 1rem; }
.pg52-mb-2 { margin-bottom: 2rem; }

/* Feature grid */
.pg52-feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}

.pg52-feature-item {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.05), rgba(0, 77, 64, 0.05));
  padding: 2rem 1.5rem;
  border-radius: 20px;
  text-align: center;
  border: 1px solid rgba(0, 229, 255, 0.2);
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(30px);
}

.pg52-feature-item.pg52-animate-in {
  opacity: 1;
  transform: translateY(0);
}

.pg52-feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px var(--pg52-shadow);
  border-color: var(--pg52-primary);
}

.pg52-feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--pg52-primary);
}

.pg52-feature-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--pg52-primary);
}

.pg52-feature-desc {
  color: var(--pg52-accent);
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Games grid */
.pg52-games-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.pg52-game-item {
  background: linear-gradient(135deg, rgba(0, 77, 64, 0.3), rgba(12, 12, 12, 0.8));
  border-radius: 15px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 229, 255, 0.2);
  opacity: 0;
  transform: scale(0.9);
}

.pg52-game-item.pg52-animate-in {
  opacity: 1;
  transform: scale(1);
}

.pg52-game-item:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 8px 25px var(--pg52-shadow);
  border-color: var(--pg52-primary);
}

.pg52-game-img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  transition: all 0.3s ease;
}

.pg52-game-name {
  display: block;
  padding: 1rem;
  font-weight: 600;
  text-align: center;
  color: var(--pg52-accent);
  font-size: 0.9rem;
}

/* Carousel styles */
.pg52-carousel {
  position: relative;
  overflow: hidden;
  margin: 2rem 0;
}

.pg52-carousel-container {
  display: flex;
  transition: transform 0.3s ease;
}

.pg52-carousel-track {
  display: flex;
  gap: 1rem;
  transition: transform 0.5s ease;
}

.pg52-carousel-item {
  flex: 0 0 auto;
  width: 200px;
}

.pg52-carousel-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.pg52-carousel-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--pg52-primary);
  color: var(--pg52-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.pg52-carousel-btn:hover {
  background: var(--pg52-accent);
  transform: scale(1.1);
}

/* FAQ styles */
.pg52-faq-item {
  margin-bottom: 1rem;
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: 10px;
  overflow: hidden;
}

.pg52-faq-question {
  width: 100%;
  padding: 1.5rem;
  background: linear-gradient(90deg, rgba(0, 229, 255, 0.05), rgba(0, 77, 64, 0.05));
  border: none;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--pg52-accent);
  font-weight: 600;
  transition: all 0.3s ease;
}

.pg52-faq-question:hover,
.pg52-faq-question.pg52-faq-active {
  background: linear-gradient(90deg, rgba(0, 229, 255, 0.1), rgba(0, 77, 64, 0.1));
  color: var(--pg52-primary);
}

.pg52-faq-icon {
  transition: transform 0.3s ease;
  color: var(--pg52-primary);
}

.pg52-faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.pg52-faq-content.pg52-faq-open {
  max-height: 500px;
}

.pg52-faq-answer {
  padding: 1.5rem;
  background: rgba(0, 77, 64, 0.1);
  color: var(--pg52-accent);
  line-height: 1.6;
}

/* Filter buttons */
.pg52-filter-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 2rem 0;
}

.pg52-filter-btn {
  padding: 0.5rem 1rem;
  border: 2px solid var(--pg52-primary);
  background: transparent;
  color: var(--pg52-primary);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.pg52-filter-btn:hover,
.pg52-filter-btn.pg52-filter-active {
  background: var(--pg52-primary);
  color: var(--pg52-dark);
}

/* Statistics cards */
.pg52-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.pg52-stat-card {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.1), rgba(0, 77, 64, 0.1));
  padding: 1.5rem;
  border-radius: 15px;
  text-align: center;
  border: 1px solid rgba(0, 229, 255, 0.3);
}

.pg52-stat-value {
  font-size: 2rem;
  font-weight: bold;
  color: var(--pg52-primary);
  margin-bottom: 0.5rem;
}

.pg52-stat-label {
  color: var(--pg52-accent);
  font-size: 0.9rem;
}

/* Bottom navigation */
.pg52-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: linear-gradient(90deg, var(--pg52-secondary), var(--pg52-dark));
  border-top: 2px solid var(--pg52-primary);
  z-index: 100;
}

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

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

.pg52-bottom-nav-item a {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem;
  color: var(--pg52-accent);
  text-decoration: none;
  transition: all 0.3s ease;
}

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

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

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

/* Footer */
.pg52-footer {
  background: linear-gradient(135deg, var(--pg52-secondary), var(--pg52-dark));
  padding: 3rem 0 1rem;
  border-top: 2px solid var(--pg52-primary);
  margin-top: 3rem;
}

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

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

.pg52-footer-link {
  color: var(--pg52-accent);
  text-decoration: none;
  padding: 0.5rem;
  transition: color 0.3s ease;
}

.pg52-footer-link:hover {
  color: var(--pg52-primary);
}

.pg52-copyright {
  color: rgba(240, 253, 255, 0.7);
  font-size: 0.8rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0, 229, 255, 0.2);
}

/* CTA section */
.pg52-cta-section {
  background: linear-gradient(135deg, var(--pg52-primary), var(--pg52-secondary));
  color: var(--pg52-white);
  padding: 3rem 2rem;
  border-radius: 25px;
  text-align: center;
  margin: 3rem 0;
  position: relative;
  overflow: hidden;
}

.pg52-cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: pg52-pulse 4s infinite;
}

.pg52-cta-title {
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.pg52-cta-text {
  font-size: 1rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  position: relative;
  z-index: 1;
}

.pg52-cta-btn {
  background: var(--pg52-white);
  color: var(--pg52-dark);
  padding: 1rem 2rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.pg52-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

/* Animations */
@keyframes pg52-pulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.05); }
}

@keyframes pg52fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.pg52-animate-pulse {
  animation: pg52-pulse 2s infinite;
}

.pg52-promo-btn {
  position: relative;
  overflow: hidden;
}

.pg52-promo-btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: rotate(45deg);
  animation: pg52-shine 3s infinite;
}

@keyframes pg52-shine {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  50% { transform: translateX(100%) translateY(100%) rotate(45deg); }
  100% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
}

/* Image loading states */
img {
  opacity: 0;
  transition: opacity 0.3s ease;
}

img.pg52-img-loaded {
  opacity: 1;
}

/* Notification styles */
.pg52-notification {
  font-family: inherit;
  box-shadow: 0 4px 15px var(--pg52-shadow);
}

/* Responsive adjustments */
@media (max-width: 380px) {
  .pg52-games-grid {
    grid-template-columns: 1fr;
  }
  
  .pg52-stats-grid {
    grid-template-columns: 1fr;
  }
  
  .pg52-section-title {
    font-size: 1.6rem;
  }
  
  .pg52-content-title {
    font-size: 1.3rem;
  }
}

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

/* Focus styles for keyboard navigation */
.pg52-btn:focus,
.pg52-menu-link:focus,
.pg52-faq-question:focus {
  outline: 2px solid var(--pg52-primary);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .pg52-feature-item,
  .pg52-game-item,
  .pg52-faq-item {
    border-width: 2px;
  }
}