/* PH Laro CSS Styles - All classes use w50b8- prefix */

/* CSS Variables */
:root {
  --w50b8-primary: #E91E63;
  --w50b8-secondary: #BAE1FF;
  --w50b8-dark: #1E1E1E;
  --w50b8-gray: #999999;
  --w50b8-dark-pink: #AD1457;
  --w50b8-bg: #1E1E1E;
  --w50b8-text: #BAE1FF;
  --w50b8-text-secondary: #999999;
  --w50b8-border: rgba(186, 225, 255, 0.2);
  --w50b8-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  --w50b8-radius: 8px;
  --w50b8-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--w50b8-text);
  background: var(--w50b8-bg);
  overflow-x: hidden;
}

/* Typography */
.w50b8-h1 {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--w50b8-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.w50b8-h2 {
  font-size: 2rem;
  font-weight: 600;
  color: var(--w50b8-secondary);
  margin-bottom: 1.2rem;
  line-height: 1.3;
}

.w50b8-h3 {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--w50b8-secondary);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.w50b8-text {
  color: var(--w50b8-text);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.w50b8-text-small {
  font-size: 1.2rem;
  color: var(--w50b8-text-secondary);
  line-height: 1.4;
}

/* Layout Components */
.w50b8-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.w50b8-wrapper {
  min-height: 100vh;
  padding-bottom: 8rem;
}

.w50b8-grid {
  display: grid;
  gap: 1rem;
}

.w50b8-flex {
  display: flex;
}

.w50b8-flex-col {
  flex-direction: column;
}

.w50b8-flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.w50b8-space-between {
  justify-content: space-between;
}

.w50b8-space-around {
  justify-content: space-around;
}

/* Header */
.w50b8-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, var(--w50b8-dark) 0%, #2a2a2a 100%);
  border-bottom: 1px solid var(--w50b8-border);
  backdrop-filter: blur(10px);
}

.w50b8-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  min-height: 6rem;
}

.w50b8-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--w50b8-secondary);
  font-weight: 700;
  font-size: 1.8rem;
}

.w50b8-logo img {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
}

.w50b8-header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Buttons */
.w50b8-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem 2rem;
  border: none;
  border-radius: var(--w50b8-radius);
  font-size: 1.4rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--w50b8-transition);
  min-height: 4.4rem;
  min-width: 8rem;
}

.w50b8-btn-primary {
  background: linear-gradient(135deg, var(--w50b8-primary) 0%, var(--w50b8-dark-pink) 100%);
  color: white;
  box-shadow: var(--w50b8-shadow);
}

.w50b8-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(233, 30, 99, 0.4);
}

.w50b8-btn-secondary {
  background: transparent;
  color: var(--w50b8-secondary);
  border: 2px solid var(--w50b8-secondary);
}

.w50b8-btn-secondary:hover {
  background: var(--w50b8-secondary);
  color: var(--w50b8-dark);
}

.w50b8-btn.loading {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Mobile Menu Toggle */
.w50b8-menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 2.4rem;
  height: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.w50b8-menu-toggle span {
  width: 100%;
  height: 0.2rem;
  background: var(--w50b8-secondary);
  transition: var(--w50b8-transition);
  border-radius: 0.1rem;
}

.w50b8-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(0.6rem, 0.6rem);
}

.w50b8-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.w50b8-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(0.6rem, -0.6rem);
}

/* Mobile Menu */
.w50b8-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: linear-gradient(135deg, var(--w50b8-dark) 0%, #2a2a2a 100%);
  z-index: 9999;
  transition: var(--w50b8-transition);
  padding: 2rem;
  overflow-y: auto;
}

.w50b8-mobile-menu.active {
  right: 0;
}

.w50b8-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: var(--w50b8-transition);
}

.w50b8-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.w50b8-menu-nav {
  list-style: none;
  margin-top: 3rem;
}

.w50b8-menu-nav li {
  margin-bottom: 1rem;
}

.w50b8-menu-nav a {
  display: block;
  padding: 1.2rem 1rem;
  color: var(--w50b8-text);
  text-decoration: none;
  border-radius: var(--w50b8-radius);
  transition: var(--w50b8-transition);
  font-weight: 500;
}

.w50b8-menu-nav a:hover {
  background: rgba(233, 30, 99, 0.1);
  color: var(--w50b8-primary);
}

/* Carousel */
.w50b8-carousel {
  position: relative;
  width: 100%;
  height: 20rem;
  overflow: hidden;
  border-radius: var(--w50b8-radius);
  margin: 1.5rem 0;
}

.w50b8-carousel-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.w50b8-carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  cursor: pointer;
}

.w50b8-carousel-slide.active {
  opacity: 1;
}

.w50b8-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.w50b8-carousel-indicators {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.w50b8-carousel-indicator {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: var(--w50b8-transition);
}

.w50b8-carousel-indicator.active {
  background: var(--w50b8-primary);
}

/* Game Grid */
.w50b8-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}

.w50b8-game-card {
  background: linear-gradient(135deg, rgba(233, 30, 99, 0.1) 0%, rgba(173, 20, 87, 0.05) 100%);
  border-radius: var(--w50b8-radius);
  padding: 1rem;
  text-align: center;
  transition: var(--w50b8-transition);
  cursor: pointer;
  border: 1px solid var(--w50b8-border);
}

.w50b8-game-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--w50b8-shadow);
  border-color: var(--w50b8-primary);
}

.w50b8-game-icon {
  width: 100%;
  height: 6rem;
  object-fit: contain;
  margin-bottom: 0.8rem;
  border-radius: 0.5rem;
}

.w50b8-game-name {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--w50b8-text);
  line-height: 1.3;
  word-break: break-word;
}

/* Content Sections */
.w50b8-section {
  margin: 2.5rem 0;
  padding: 2rem 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--w50b8-radius);
  border: 1px solid var(--w50b8-border);
}

.w50b8-section-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--w50b8-secondary);
  margin-bottom: 1.5rem;
  text-align: center;
}

/* Cards */
.w50b8-card {
  background: linear-gradient(135deg, rgba(233, 30, 99, 0.05) 0%, rgba(173, 20, 87, 0.02) 100%);
  border-radius: var(--w50b8-radius);
  padding: 1.5rem;
  margin: 1rem 0;
  border: 1px solid var(--w50b8-border);
  transition: var(--w50b8-transition);
}

.w50b8-card:hover {
  border-color: var(--w50b8-primary);
  box-shadow: var(--w50b8-shadow);
}

/* Bottom Navigation */
.w50b8-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 6.4rem;
  background: linear-gradient(135deg, var(--w50b8-dark) 0%, #2a2a2a 100%);
  border-top: 1px solid var(--w50b8-border);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-around;
  backdrop-filter: blur(10px);
}

.w50b8-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 6rem;
  min-height: 6rem;
  text-decoration: none;
  color: var(--w50b8-text-secondary);
  transition: var(--w50b8-transition);
  cursor: pointer;
}

.w50b8-bottom-nav-item:hover,
.w50b8-bottom-nav-item.active {
  color: var(--w50b8-primary);
  transform: translateY(-2px);
}

.w50b8-bottom-nav-icon {
  font-size: 2.4rem;
  margin-bottom: 0.2rem;
}

.w50b8-bottom-nav-text {
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
}

/* Footer */
.w50b8-footer {
  background: linear-gradient(135deg, #0a0a0a 0%, var(--w50b8-dark) 100%);
  border-top: 1px solid var(--w50b8-border);
  padding: 2rem 1.5rem 8rem;
  margin-top: 3rem;
}

.w50b8-footer-content {
  text-align: center;
}

.w50b8-partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
}

.w50b8-partner-icon {
  width: 4rem;
  height: 4rem;
  object-fit: contain;
  opacity: 0.7;
  transition: var(--w50b8-transition);
}

.w50b8-partner-icon:hover {
  opacity: 1;
  transform: scale(1.1);
}

.w50b8-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin: 2rem 0;
}

.w50b8-footer-links a {
  color: var(--w50b8-text-secondary);
  text-decoration: none;
  font-size: 1.2rem;
  transition: var(--w50b8-transition);
}

.w50b8-footer-links a:hover {
  color: var(--w50b8-primary);
}

.w50b8-copyright {
  color: var(--w50b8-text-secondary);
  font-size: 1.1rem;
  margin-top: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .w50b8-wrapper {
    padding-bottom: 8rem;
  }

  .w50b8-game-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
  }

  .w50b8-game-icon {
    height: 5rem;
  }

  .w50b8-game-name {
    font-size: 1rem;
  }
}

@media (min-width: 769px) {
  .w50b8-bottom-nav {
    display: none;
  }

  .w50b8-wrapper {
    padding-bottom: 2rem;
  }
}

/* Utility Classes */
.w50b8-text-center {
  text-align: center;
}

.w50b8-text-primary {
  color: var(--w50b8-primary);
}

.w50b8-text-secondary {
  color: var(--w50b8-secondary);
}

.w50b8-mb-1 {
  margin-bottom: 1rem;
}

.w50b8-mb-2 {
  margin-bottom: 2rem;
}

.w50b8-mt-1 {
  margin-top: 1rem;
}

.w50b8-mt-2 {
  margin-top: 2rem;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --w50b8-border: rgba(186, 225, 255, 0.5);
  }
}

/* Loading states */
.w50b8-loading {
  position: relative;
  overflow: hidden;
}

.w50b8-loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}