/* Lodibet Gaming Platform - Main Styles */
/* All classes use pg52- prefix to avoid conflicts */

/* CSS Variables with prefix */
:root {
  --pg52-primary: #EE82EE;
  --pg52-secondary: #CC99FF;
  --pg52-bg: #1B263B;
  --pg52-bg-light: #2d3748;
  --pg52-text: #EE82EE;
  --pg52-text-light: #CC99FF;
  --pg52-border: #4a5568;
  --pg52-shadow: rgba(238, 130, 238, 0.2);
  --pg52-gradient: linear-gradient(135deg, #EE82EE, #CC99FF);
  --vh: 1vh;
}

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

html {
  font-size: 62.5%;
}

body {
  font-family: 'Arial', 'Helvetica Neue', sans-serif;
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--pg52-text);
  background: linear-gradient(135deg, var(--pg52-bg), var(--pg52-bg-light));
  min-height: 100vh;
  min-height: calc(var(--vh, 1vh) * 100);
}

/* Layout Components */
.pg52-wrapper {
  min-height: 100vh;
  min-height: calc(var(--vh, 1vh) * 100);
  display: flex;
  flex-direction: column;
}

.pg52-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
}

.pg52-grid {
  display: grid;
  gap: 1rem;
}

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

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

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

/* Header Styles */
.pg52-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, var(--pg52-bg), var(--pg52-bg-light));
  box-shadow: 0 2px 10px var(--pg52-shadow);
  border-bottom: 1px solid var(--pg52-border);
}

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

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

.pg52-logo img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

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

.pg52-nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.pg52-nav-toggle span {
  width: 24px;
  height: 3px;
  background: var(--pg52-primary);
  transition: all 0.3s ease;
}

.pg52-nav-toggle-active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.pg52-nav-toggle-active span:nth-child(2) {
  opacity: 0;
}

.pg52-nav-toggle-active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

.pg52-nav-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--pg52-bg);
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  border-top: 1px solid var(--pg52-border);
}

.pg52-nav-menu-active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.pg52-nav-link {
  display: block;
  padding: 1.2rem;
  color: var(--pg52-text);
  text-decoration: none;
  border-bottom: 1px solid var(--pg52-border);
  transition: background-color 0.3s ease;
}

.pg52-nav-link:hover {
  background-color: var(--pg52-bg-light);
  color: var(--pg52-primary);
}

/* Main Content */
.pg52-main {
  flex: 1;
  margin-top: 60px;
  margin-bottom: 64px;
  padding: 2rem 0;
}

/* Button Styles */
.pg52-btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  background: var(--pg52-gradient);
  color: var(--pg52-bg);
  text-decoration: none;
  border-radius: 25px;
  font-weight: bold;
  font-size: 1.2rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  min-width: 44px;
  min-height: 44px;
}

.pg52-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(238, 130, 238, 0.4);
}

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

.pg52-btn-outline:hover {
  background: var(--pg52-primary);
  color: var(--pg52-bg);
}

.pg52-btn-large {
  padding: 1.2rem 2.4rem;
  font-size: 1.6rem;
}

.pg52-btn-block {
  width: 100%;
  display: block;
}

/* Card Component */
.pg52-card {
  background: rgba(238, 130, 238, 0.1);
  border-radius: 15px;
  padding: 2rem;
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(238, 130, 238, 0.2);
}

.pg52-card-title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: var(--pg52-primary);
}

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

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

.pg52-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--pg52-text);
  padding: 1rem;
  border-radius: 10px;
  background: rgba(238, 130, 238, 0.05);
  transition: all 0.3s ease;
  min-height: 44px;
}

.pg52-game-item:hover {
  background: rgba(204, 153, 255, 0.2);
  transform: translateY(-2px);
}

.pg52-game-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.pg52-game-name {
  font-size: 1.1rem;
  text-align: center;
  font-weight: 500;
}

/* Slider/Carousel */
.pg52-slider {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  margin-bottom: 2rem;
}

.pg52-slider-container {
  display: flex;
  transition: transform 0.5s ease;
}

.pg52-slide {
  min-width: 100%;
  position: relative;
  cursor: pointer;
}

.pg52-slide img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* Footer */
.pg52-footer {
  background: var(--pg52-bg);
  padding: 2rem 0;
  border-top: 1px solid var(--pg52-border);
}

.pg52-footer-content {
  display: grid;
  gap: 2rem;
}

.pg52-footer-section h3 {
  color: var(--pg52-primary);
  margin-bottom: 1rem;
  font-size: 1.6rem;
}

.pg52-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.pg52-footer-link {
  color: var(--pg52-text);
  text-decoration: none;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

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

.pg52-partners-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.pg52-partner-logo {
  width: 40px;
  height: 40px;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

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

.pg52-copyright {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--pg52-border);
  color: rgba(238, 130, 238, 0.7);
  font-size: 1.2rem;
}

/* Bottom Navigation */
.pg52-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--pg52-bg);
  border-top: 1px solid var(--pg52-border);
  display: flex;
  justify-content: space-around;
  padding: 0.8rem 0;
  z-index: 1000;
}

.pg52-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: rgba(238, 130, 238, 0.6);
  transition: all 0.3s ease;
  min-width: 44px;
  padding: 0.4rem;
}

.pg52-bottom-nav-item i {
  font-size: 2.2rem;
  margin-bottom: 0.2rem;
}

.pg52-bottom-nav-item span {
  font-size: 1rem;
  font-weight: 500;
}

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

/* Utility Classes */
.pg52-text-center {
  text-align: center;
}

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

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

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

.pg52-p-1 { padding: 1rem; }
.pg52-p-2 { padding: 2rem; }

.pg52-hidden {
  display: none;
}

.pg52-visible {
  display: block;
}

/* Navigation open state */
body.pg52-nav-open {
  overflow: hidden;
}

/* Responsive Design */
@media (max-width: 375px) {
  .pg52-container {
    padding: 0 0.8rem;
  }
  
  .pg52-games-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .pg52-game-icon {
    width: 40px;
    height: 40px;
  }
}

@media (min-width: 431px) {
  .pg52-container {
    max-width: 480px;
  }
  
  .pg52-games-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* Loading states */
.pg52-loading {
  opacity: 0.5;
  pointer-events: none;
}

/* Animation keyframes */
@keyframes pg52-fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.pg52-fade-in {
  animation: pg52-fadeIn 0.6s ease forwards;
}

/* Pulse animation for promotional elements */
@keyframes pg52-pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

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

/* Focus styles for accessibility */
.pg52-btn:focus,
.pg52-nav-link:focus,
.pg52-game-item:focus {
  outline: 2px solid var(--pg52-primary);
  outline-offset: 2px;
}

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

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