/* Slots8 Gaming Platform - Core Styles */
/* Color palette: #E5E5E5 | #C71585 | #0E1621 | #5D5D5D | #95A5A6 | #4A4A4A */

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

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.4rem;
  line-height: 1.5;
  color: #E5E5E5;
  background: linear-gradient(135deg, #0E1621 0%, #1a2332 50%, #0E1621 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

/* CSS Variables */
:root {
  --pg91-primary: #C71585;
  --pg91-secondary: #95A5A6;
  --pg91-accent: #E5E5E5;
  --pg91-dark: #0E1621;
  --pg91-dark-light: #1a2332;
  --pg91-gray: #5D5D5D;
  --pg91-gray-light: #4A4A4A;
  --pg91-bg: #0E1621;
  --pg91-bg-light: rgba(229, 229, 229, 0.05);
  --pg91-text: #E5E5E5;
  --pg91-text-muted: #95A5A6;
  --pg91-border: rgba(229, 229, 229, 0.1);
  --pg91-shadow: rgba(199, 21, 133, 0.2);
  --pg91-border-radius: 1.2rem;
  --pg91-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --pg91-header-height: 6rem;
  --pg91-footer-height: 6rem;
}

/* Typography */
.pg91-h1 {
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--pg91-primary);
  margin-bottom: 1.5rem;
}

.pg91-h2 {
  font-size: 2.4rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--pg91-accent);
  margin-bottom: 1.2rem;
}

.pg91-h3 {
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--pg91-accent);
  margin-bottom: 1rem;
}

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

.pg91-text-primary {
  color: var(--pg91-primary);
}

.pg91-text-muted {
  color: var(--pg91-text-muted);
}

/* Layout containers */
.pg91-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  max-width: 430px;
  margin: 0 auto;
  background: var(--pg91-bg);
  position: relative;
}

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

.pg91-main {
  flex: 1;
  padding-top: calc(var(--pg91-header-height) + 1rem);
  padding-bottom: calc(var(--pg91-footer-height) + 1rem);
}

.pg91-section {
  margin-bottom: 2.5rem;
}

/* Header styles */
.pg91-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: var(--pg91-header-height);
  background: linear-gradient(135deg, var(--pg91-dark) 0%, var(--pg91-dark-light) 100%);
  border-bottom: 1px solid var(--pg91-border);
  z-index: 1000;
  box-shadow: 0 2px 10px var(--pg91-shadow);
}

.pg91-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 1.5rem;
}

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

.pg91-logo-icon {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 0.8rem;
}

.pg91-header-buttons {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.pg91-btn-header {
  padding: 0.8rem 1.5rem;
  font-size: 1.2rem;
  font-weight: 600;
  border: none;
  border-radius: 0.8rem;
  text-decoration: none;
  transition: var(--pg91-transition);
  cursor: pointer;
}

.pg91-btn-register {
  background: var(--pg91-primary);
  color: white;
}

.pg91-btn-login {
  background: transparent;
  color: var(--pg91-accent);
  border: 1px solid var(--pg91-border);
}

.pg91-btn-header:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--pg91-shadow);
}

/* Burger menu */
.pg91-burger {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  cursor: pointer;
  padding: 0.5rem;
}

.pg91-burger-line {
  width: 2rem;
  height: 0.2rem;
  background: var(--pg91-accent);
  transition: var(--pg91-transition);
}

.pg91-burger--active .pg91-burger-line:nth-child(1) {
  transform: rotate(45deg) translate(0.6rem, 0.6rem);
}

.pg91-burger--active .pg91-burger-line:nth-child(2) {
  opacity: 0;
}

.pg91-burger--active .pg91-burger-line:nth-child(3) {
  transform: rotate(-45deg) translate(0.6rem, -0.6rem);
}

/* Mobile menu */
.pg91-mobile-menu {
  position: fixed;
  top: var(--pg91-header-height);
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: var(--pg91-dark);
  border-bottom: 1px solid var(--pg91-border);
  max-height: 0;
  overflow: hidden;
  transition: var(--pg91-transition);
  z-index: 999;
}

.pg91-mobile-menu--active {
  max-height: 50rem;
  box-shadow: 0 10px 30px var(--pg91-shadow);
}

.pg91-nav-list {
  list-style: none;
  padding: 1rem 0;
}

.pg91-nav-item {
  margin: 0;
}

.pg91-nav-link {
  display: block;
  padding: 1.2rem 1.5rem;
  color: var(--pg91-accent);
  text-decoration: none;
  font-weight: 500;
  transition: var(--pg91-transition);
  border-bottom: 1px solid var(--pg91-border);
}

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

.pg91-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(14, 22, 33, 0.8);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: var(--pg91-transition);
}

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

/* Button styles */
.pg91-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 1.2rem 2rem;
  font-size: 1.4rem;
  font-weight: 600;
  color: white;
  background: var(--pg91-primary);
  border: none;
  border-radius: var(--pg91-border-radius);
  text-decoration: none;
  cursor: pointer;
  transition: var(--pg91-transition);
  position: relative;
  overflow: hidden;
  min-height: 4.4rem;
}

.pg91-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--pg91-shadow);
}

.pg91-btn--secondary {
  background: var(--pg91-secondary);
}

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

.pg91-btn--large {
  padding: 1.5rem 2.5rem;
  font-size: 1.6rem;
}

.pg91-btn--small {
  padding: 0.8rem 1.5rem;
  font-size: 1.2rem;
}

/* Card styles */
.pg91-card {
  background: var(--pg91-bg-light);
  border: 1px solid var(--pg91-border);
  border-radius: var(--pg91-border-radius);
  overflow: hidden;
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
}

.pg91-card-header {
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--pg91-primary), var(--pg91-gray));
  border-bottom: 1px solid var(--pg91-border);
}

.pg91-card-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: white;
  margin: 0;
}

.pg91-card-body {
  padding: 1.5rem;
}

/* Carousel styles */
.pg91-carousel {
  position: relative;
  margin-bottom: 2rem;
  border-radius: var(--pg91-border-radius);
  overflow: hidden;
}

.pg91-carousel-container {
  position: relative;
  height: 20rem;
  overflow: hidden;
}

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

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

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

.pg91-carousel-indicators {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.8rem;
  z-index: 10;
}

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

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

/* Game grid styles */
.pg91-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.pg91-game-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  background: var(--pg91-bg-light);
  border: 1px solid var(--pg91-border);
  border-radius: var(--pg91-border-radius);
  text-decoration: none;
  color: var(--pg91-accent);
  transition: var(--pg91-transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.pg91-game-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px var(--pg91-shadow);
  border-color: var(--pg91-primary);
}

.pg91-game-icon {
  width: 4.8rem;
  height: 4.8rem;
  border-radius: 0.8rem;
  margin-bottom: 0.8rem;
  object-fit: cover;
}

.pg91-game-name {
  font-size: 1.1rem;
  font-weight: 500;
  text-align: center;
  line-height: 1.3;
  color: var(--pg91-accent);
}

/* Filter buttons */
.pg91-filter-container {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 2rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.pg91-filter-btn {
  padding: 0.8rem 1.5rem;
  font-size: 1.2rem;
  font-weight: 500;
  background: var(--pg91-bg-light);
  color: var(--pg91-accent);
  border: 1px solid var(--pg91-border);
  border-radius: 2rem;
  cursor: pointer;
  transition: var(--pg91-transition);
  white-space: nowrap;
}

.pg91-filter-btn:hover,
.pg91-filter-btn--active {
  background: var(--pg91-primary);
  color: white;
  border-color: var(--pg91-primary);
}

/* Search input */
.pg91-search-container {
  position: relative;
  margin-bottom: 2rem;
}

.pg91-search-input {
  width: 100%;
  padding: 1.2rem 1.5rem;
  padding-left: 4rem;
  font-size: 1.4rem;
  background: var(--pg91-bg-light);
  border: 1px solid var(--pg91-border);
  border-radius: var(--pg91-border-radius);
  color: var(--pg91-accent);
}

.pg91-search-icon {
  position: absolute;
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--pg91-text-muted);
}

/* Grid layouts */
.pg91-grid {
  display: grid;
  gap: 1.5rem;
}

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

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

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

/* Statistics grid */
.pg91-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.pg91-stat-item {
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--pg91-bg-light);
  border-radius: var(--pg91-border-radius);
  border: 1px solid var(--pg91-border);
}

.pg91-stat-number {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--pg91-primary);
  margin-bottom: 0.5rem;
}

.pg91-stat-label {
  font-size: 1.1rem;
  color: var(--pg91-text-muted);
}

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

.pg91-feature-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--pg91-border);
}

.pg91-feature-icon {
  width: 2.4rem;
  height: 2.4rem;
  color: var(--pg91-primary);
  flex-shrink: 0;
}

.pg91-feature-text {
  color: var(--pg91-accent);
  line-height: 1.4;
}

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

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

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

.pg91-footer-link {
  color: var(--pg91-text-muted);
  text-decoration: none;
  font-size: 1.2rem;
  transition: var(--pg91-transition);
}

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

.pg91-partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
}

.pg91-partner-icon {
  width: 3.2rem;
  height: 3.2rem;
  opacity: 0.6;
  transition: var(--pg91-transition);
}

.pg91-partner-icon:hover {
  opacity: 1;
}

.pg91-copyright {
  font-size: 1.1rem;
  color: var(--pg91-text-muted);
}

/* Bottom navigation */
.pg91-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: var(--pg91-footer-height);
  background: var(--pg91-dark);
  border-top: 1px solid var(--pg91-border);
  display: flex;
  z-index: 1000;
}

.pg91-bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 0.5rem;
  text-decoration: none;
  color: var(--pg91-text-muted);
  transition: var(--pg91-transition);
  min-height: 4.4rem;
}

.pg91-bottom-nav-item:hover,
.pg91-bottom-nav-item--active {
  color: var(--pg91-primary);
  background: var(--pg91-bg-light);
}

.pg91-bottom-nav-icon {
  font-size: 2rem;
  margin-bottom: 0.2rem;
}

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

/* Animations */
.pg91-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

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

/* Ripple effect */
.pg91-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: scale(0);
  animation: pg91-ripple-effect 0.6s linear;
  pointer-events: none;
}

@keyframes pg91-ripple-effect {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Responsive adjustments */
@media (max-width: 380px) {
  .pg91-container {
    padding: 0 1rem;
  }
  
  .pg91-game-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .pg91-header-content {
    padding: 0 1rem;
  }
}

@media (max-width: 320px) {
  .pg91-game-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .pg91-btn-header {
    padding: 0.6rem 1rem;
    font-size: 1.1rem;
  }
}

/* Loading states */
.pg91-loading {
  opacity: 0.7;
  pointer-events: none;
}

.pg91-spinner {
  display: inline-block;
  width: 2rem;
  height: 2rem;
  border: 2px solid var(--pg91-border);
  border-radius: 50%;
  border-top-color: var(--pg91-primary);
  animation: pg91-spin 1s ease-in-out infinite;
}

@keyframes pg91-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Utility classes */
.pg91-mb-1 { margin-bottom: 1rem; }
.pg91-mb-2 { margin-bottom: 2rem; }
.pg91-mb-3 { margin-bottom: 3rem; }
.pg91-mt-1 { margin-top: 1rem; }
.pg91-mt-2 { margin-top: 2rem; }
.pg91-p-1 { padding: 1rem; }
.pg91-p-2 { padding: 2rem; }
.pg91-text-bold { font-weight: 600; }
.pg91-text-light { font-weight: 300; }
.pg91-hidden { display: none; }
.pg91-visible { display: block; }