/**
 * PayBingo Gaming Platform - Core Stylesheet
 * Prefix: uie2- for all classes
 * Mobile-first responsive design
 * Color Palette: #E91E63 | #4169E1 | #FFC0CB | #1B263B | #880E4F
 */

/* CSS Variables */
:root {
  --uie2-primary: #E91E63;
  --uie2-blue: #4169E1;
  --uie2-pink: #FFC0CB;
  --uie2-dark-bg: #1B263B;
  --uie2-accent: #880E4F;
  --uie2-text-light: #ffffff;
  --uie2-text-dark: #1B263B;
  --uie2-gray-light: #f5f5f5;
  --uie2-gray-medium: #cccccc;
  --uie2-gray-dark: #666666;
  --uie2-shadow: rgba(0, 0, 0, 0.1);
  --uie2-shadow-lg: rgba(0, 0, 0, 0.2);
  --uie2-transition: all 0.3s ease;
}

/* 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.6rem;
  line-height: 1.6;
  color: var(--uie2-text-dark);
  background-color: var(--uie2-gray-light);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--uie2-transition);
}

ul {
  list-style: none;
}

/* Header Styles */
.uie2-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--uie2-dark-bg) 0%, var(--uie2-accent) 100%);
  padding: 1.2rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
  box-shadow: 0 2px 10px var(--uie2-shadow);
  transition: var(--uie2-transition);
}

.uie2-header-scrolled {
  box-shadow: 0 4px 20px var(--uie2-shadow-lg);
}

.uie2-header-left {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.uie2-logo {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.uie2-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.uie2-site-name {
  font-size: 2rem;
  font-weight: 700;
  color: var(--uie2-text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.uie2-header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.uie2-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--uie2-text-light);
  font-size: 2.4rem;
  cursor: pointer;
  padding: 0.5rem;
  line-height: 1;
}

/* Navigation Buttons */
.uie2-btn {
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  font-size: 1.4rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: var(--uie2-transition);
  min-width: 90px;
  white-space: nowrap;
}

.uie2-btn-register {
  background: var(--uie2-primary);
  color: var(--uie2-text-light);
}

.uie2-btn-register:hover {
  background: var(--uie2-accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(233, 30, 99, 0.3);
}

.uie2-btn-login {
  background: var(--uie2-blue);
  color: var(--uie2-text-light);
}

.uie2-btn-login:hover {
  background: #2C4FB3;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(65, 105, 225, 0.3);
}

/* Mobile Menu */
.uie2-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: var(--uie2-transition);
}

.uie2-overlay-active {
  opacity: 1;
  visibility: visible;
}

.uie2-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: var(--uie2-dark-bg);
  z-index: 9999;
  padding: 6rem 2rem 2rem;
  overflow-y: auto;
  transition: right 0.3s ease;
}

.uie2-menu-active {
  right: 0;
}

.uie2-mobile-menu-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  background: none;
  border: none;
  color: var(--uie2-text-light);
  font-size: 2.8rem;
  cursor: pointer;
  line-height: 1;
}

.uie2-mobile-menu-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.uie2-mobile-menu-link {
  padding: 1.2rem 1.5rem;
  color: var(--uie2-text-light);
  font-size: 1.6rem;
  border-radius: 0.5rem;
  transition: var(--uie2-transition);
  display: block;
}

.uie2-mobile-menu-link:hover {
  background: var(--uie2-primary);
}

/* Main Content */
.uie2-main {
  margin-top: 60px;
  padding-bottom: 80px;
  min-height: calc(100vh - 140px);
}

.uie2-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Banner Slider */
.uie2-banner-slider {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
  background: var(--uie2-dark-bg);
}

.uie2-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.uie2-slide-active {
  opacity: 1;
}

.uie2-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.uie2-slider-dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.8rem;
  z-index: 10;
}

.uie2-slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: var(--uie2-transition);
  border: none;
  padding: 0;
}

.uie2-dot-active {
  background: var(--uie2-primary);
  width: 24px;
  border-radius: 5px;
}

/* Section Styles */
.uie2-section {
  padding: 3rem 0;
}

.uie2-section-title {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--uie2-dark-bg);
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 1rem;
}

.uie2-section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--uie2-primary);
  border-radius: 2px;
}

/* Game Grid */
.uie2-game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.uie2-game-card {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 2px 8px var(--uie2-shadow);
  cursor: pointer;
  transition: var(--uie2-transition);
}

.uie2-game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px var(--uie2-shadow-lg);
}

.uie2-game-image {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--uie2-gray-light);
}

.uie2-game-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--uie2-transition);
}

.uie2-game-card:hover .uie2-game-image img {
  transform: scale(1.1);
}

.uie2-game-name {
  padding: 1rem;
  font-size: 1.4rem;
  font-weight: 600;
  text-align: center;
  color: var(--uie2-dark-bg);
  line-height: 1.3;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Content Module */
.uie2-module {
  background: white;
  border-radius: 1rem;
  padding: 2.5rem 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px var(--uie2-shadow);
}

.uie2-module-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--uie2-dark-bg);
  margin-bottom: 1.5rem;
}

.uie2-module-content {
  font-size: 1.5rem;
  line-height: 1.8;
  color: var(--uie2-gray-dark);
}

.uie2-module-content p {
  margin-bottom: 1.5rem;
}

.uie2-module-content ul {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
  list-style: disc;
}

.uie2-module-content li {
  margin-bottom: 0.8rem;
}

.uie2-module-link {
  color: var(--uie2-primary);
  font-weight: 600;
  text-decoration: underline;
}

.uie2-module-link:hover {
  color: var(--uie2-accent);
}

/* Button Styles */
.uie2-btn-primary {
  display: inline-block;
  padding: 1.2rem 3rem;
  background: var(--uie2-primary);
  color: var(--uie2-text-light);
  font-size: 1.6rem;
  font-weight: 600;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: var(--uie2-transition);
  border: none;
  text-align: center;
  margin-top: 1rem;
}

.uie2-btn-primary:hover {
  background: var(--uie2-accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(233, 30, 99, 0.3);
}

/* Bottom Fixed Navigation */
.uie2-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--uie2-dark-bg) 0%, var(--uie2-accent) 100%);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0.8rem 0;
  box-shadow: 0 -2px 10px var(--uie2-shadow);
  z-index: 1000;
  height: 64px;
}

.uie2-bottom-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-width: 60px;
  min-height: 60px;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: var(--uie2-transition);
  background: none;
  border: none;
  padding: 0.5rem;
}

.uie2-bottom-nav-btn:hover,
.uie2-bottom-nav-btn.uie2-active {
  color: var(--uie2-text-light);
  transform: scale(1.1);
}

.uie2-bottom-nav-icon {
  font-size: 2.4rem;
  line-height: 1;
}

.uie2-bottom-nav-text {
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1;
}

/* Footer */
.uie2-footer {
  background: var(--uie2-dark-bg);
  color: var(--uie2-text-light);
  padding: 3rem 2rem 2rem;
  margin-top: 4rem;
}

.uie2-partners {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
  padding: 2rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.uie2-partner-logo {
  width: 100%;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 0.5rem;
  padding: 0.5rem;
}

.uie2-partner-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.uie2-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
  justify-content: center;
}

.uie2-footer-link {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.4rem;
  transition: var(--uie2-transition);
}

.uie2-footer-link:hover {
  color: var(--uie2-primary);
}

.uie2-footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Responsive Design */
@media (max-width: 768px) {
  .uie2-menu-toggle {
    display: block;
  }

  .uie2-header {
    padding: 1rem 1.5rem;
  }

  .uie2-site-name {
    font-size: 1.8rem;
  }

  .uie2-btn {
    padding: 0.8rem 1.5rem;
    font-size: 1.3rem;
    min-width: 70px;
  }

  .uie2-banner-slider {
    height: 180px;
  }

  .uie2-section {
    padding: 2rem 0;
  }

  .uie2-section-title {
    font-size: 2rem;
  }

  .uie2-game-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
  }

  .uie2-game-name {
    font-size: 1.3rem;
    padding: 0.8rem;
  }

  .uie2-module {
    padding: 2rem 1.5rem;
  }

  .uie2-bottom-nav {
    display: flex;
  }

  .uie2-main {
    padding-bottom: 80px;
  }
}

@media (min-width: 769px) {
  .uie2-bottom-nav {
    display: none;
  }

  .uie2-main {
    padding-bottom: 0;
  }
}

/* Accordion Styles */
.uie2-accordion-item {
  background: white;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  overflow: hidden;
  box-shadow: 0 2px 4px var(--uie2-shadow);
}

.uie2-accordion-header {
  padding: 1.5rem;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--uie2-dark-bg);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--uie2-transition);
}

.uie2-accordion-header:hover {
  background: var(--uie2-gray-light);
}

.uie2-accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.uie2-accordion-active .uie2-accordion-body {
  max-height: 1000px;
  padding: 1.5rem;
}

.uie2-accordion-content {
  font-size: 1.5rem;
  line-height: 1.7;
  color: var(--uie2-gray-dark);
}

/* Back to Top Button */
.uie2-back-to-top {
  position: fixed;
  bottom: 90px;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: var(--uie2-primary);
  color: var(--uie2-text-light);
  border: none;
  border-radius: 50%;
  font-size: 2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--uie2-transition);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.uie2-back-to-top-visible {
  opacity: 1;
  visibility: visible;
}

.uie2-back-to-top:hover {
  background: var(--uie2-accent);
  transform: translateY(-5px);
}

@media (min-width: 769px) {
  .uie2-back-to-top {
    bottom: 2rem;
  }
}
