/* U888VIP CSS Layout Module
   VIP luxury theme with premium color palette
   Mobile-first responsive design (max 430px) */

/* CSS Variables for consistent styling */
:root {
  --pg91-primary: #FF0000;
  --pg91-secondary: #FA8072;
  --pg91-accent: #FFB6C1;
  --pg91-dark: #2D2D2D;
  --pg91-light: #FFEFD5;
  --pg91-bg: #1a1a1a;
  --pg91-text: #ffffff;
  --pg91-border: #3a3a3a;
  --pg91-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  --pg91-transition: all 0.3s ease;
}

/* Base typography and layout */
* {
  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, Oxygen, Ubuntu, sans-serif;
  background-color: var(--pg91-bg);
  color: var(--pg91-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  overflow-x: hidden;
}

/* Container and wrapper classes */
.pg91-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
}

.pg91-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.pg91-main {
  flex: 1;
  padding-bottom: 80px;
}

/* Header styling */
.pg91-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, var(--pg91-dark) 0%, #2a2a2a 100%);
  border-bottom: 2px solid var(--pg91-primary);
  box-shadow: var(--pg91-shadow);
}

.pg91-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  max-width: 430px;
  margin: 0 auto;
}

.pg91-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--pg91-text);
  font-weight: 700;
  font-size: 1.6rem;
}

.pg91-logo-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pg91-primary), var(--pg91-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pg91-light);
  font-size: 1.6rem;
  font-weight: bold;
}

/* Header buttons */
.pg91-header-btns {
  display: flex;
  gap: 0.6rem;
}

.pg91-btn {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 6px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--pg91-transition);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  white-space: nowrap;
}

.pg91-btn-primary {
  background: linear-gradient(135deg, var(--pg91-primary), var(--pg91-secondary));
  color: var(--pg91-light);
  box-shadow: 0 2px 8px rgba(255, 0, 0, 0.3);
}

.pg91-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 0, 0, 0.4);
}

.pg91-btn-secondary {
  background: rgba(255, 181, 193, 0.2);
  color: var(--pg91-accent);
  border: 1px solid var(--pg91-accent);
}

.pg91-btn-secondary:hover {
  background: rgba(255, 181, 193, 0.3);
  transform: translateY(-2px);
}

/* Menu toggle button */
.pg91-menu-toggle {
  background: transparent;
  color: var(--pg91-accent);
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pg91-menu-toggle:hover {
  color: var(--pg91-primary);
}

/* Mobile menu overlay */
.pg91-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 999;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.pg91-menu-overlay.pg91-active {
  display: block;
  opacity: 1;
}

/* Mobile menu */
.pg91-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: linear-gradient(180deg, var(--pg91-dark) 0%, #1a1a1a 100%);
  z-index: 9999;
  padding: 6rem 0 0 0;
  transition: right 0.3s ease;
  overflow-y: auto;
  border-left: 2px solid var(--pg91-primary);
}

.pg91-mobile-menu.pg91-active {
  right: 0;
}

.pg91-mobile-menu a {
  display: block;
  padding: 1.2rem 1.6rem;
  color: var(--pg91-text);
  text-decoration: none;
  border-bottom: 1px solid var(--pg91-border);
  transition: var(--pg91-transition);
}

.pg91-mobile-menu a:hover {
  background: rgba(255, 0, 0, 0.1);
  color: var(--pg91-primary);
  padding-left: 2rem;
}

/* Main content area */
main {
  flex: 1;
  padding-top: 6rem;
}

/* Carousel styling */
.pg91-carousel {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: var(--pg91-shadow);
}

.pg91-carousel-slides {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: var(--pg91-border);
}

.pg91-carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
  cursor: pointer;
}

.pg91-carousel-slide.pg91-active {
  opacity: 1;
}

.pg91-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Carousel controls */
.pg91-carousel-controls {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.4rem;
  z-index: 10;
}

.pg91-carousel-dot {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: var(--pg91-transition);
}

.pg91-carousel-dot.pg91-active {
  background: var(--pg91-primary);
  transform: scale(1.2);
}

/* Section styling */
.pg91-section {
  margin: 2rem 0;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--pg91-border);
  border-radius: 12px;
  transition: var(--pg91-transition);
}

.pg91-section:hover {
  border-color: var(--pg91-primary);
  background: rgba(255, 0, 0, 0.05);
}

.pg91-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--pg91-primary);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.pg91-section-title i {
  font-size: 2rem;
}

/* Game grid styling */
.pg91-games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.pg91-game-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: var(--pg91-transition);
  aspect-ratio: 1;
  border: 2px solid transparent;
}

.pg91-game-card:hover {
  transform: scale(1.05);
  border-color: var(--pg91-primary);
  box-shadow: 0 0 16px rgba(255, 0, 0, 0.3);
}

.pg91-game-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pg91-game-card:after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.6) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.pg91-game-card:hover:after {
  opacity: 1;
}

/* Feature grid */
.pg91-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}

.pg91-feature-item {
  padding: 1.2rem;
  background: rgba(255, 181, 193, 0.08);
  border: 1px solid var(--pg91-accent);
  border-radius: 8px;
  text-align: center;
  transition: var(--pg91-transition);
}

.pg91-feature-item:hover {
  background: rgba(255, 181, 193, 0.15);
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(255, 181, 193, 0.2);
}

.pg91-feature-icon {
  font-size: 2.4rem;
  margin-bottom: 0.6rem;
  color: var(--pg91-primary);
}

.pg91-feature-text {
  font-size: 1.2rem;
  color: var(--pg91-light);
}

/* Footer styling */
.pg91-footer {
  background: linear-gradient(180deg, #1a1a1a 0%, var(--pg91-dark) 100%);
  border-top: 2px solid var(--pg91-primary);
  padding: 2rem 1rem;
  margin-top: 3rem;
}

.pg91-footer-content {
  max-width: 430px;
  margin: 0 auto;
}

.pg91-footer-section {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--pg91-border);
}

.pg91-footer-section:last-child {
  border-bottom: none;
}

.pg91-footer-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--pg91-primary);
  margin-bottom: 0.8rem;
}

.pg91-footer-text {
  font-size: 1.2rem;
  color: var(--pg91-light);
  line-height: 1.6rem;
}

.pg91-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 0.8rem 0;
}

.pg91-footer-link {
  color: var(--pg91-accent);
  text-decoration: none;
  font-size: 1.2rem;
  transition: var(--pg91-transition);
  border-bottom: 1px solid transparent;
}

.pg91-footer-link:hover {
  color: var(--pg91-primary);
  border-bottom: 1px solid var(--pg91-primary);
}

/* Partner logos section */
.pg91-partners {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.6rem;
  margin: 1rem 0;
}

.pg91-partner-logo {
  width: 100%;
  aspect-ratio: 1;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--pg91-border);
  overflow: hidden;
}

.pg91-partner-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Bottom navigation bar (mobile) */
.pg91-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, #1a1a1a 0%, var(--pg91-dark) 100%);
  border-top: 2px solid var(--pg91-primary);
  display: none;
  flex-direction: row;
  justify-content: space-around;
  align-items: flex-start;
  height: 64px;
  padding: 0.4rem 0 0 0;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.3);
}

.pg91-bottom-nav.pg91-mobile {
  display: flex;
}

.pg91-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  height: 64px;
  color: var(--pg91-light);
  text-decoration: none;
  font-size: 1rem;
  transition: var(--pg91-transition);
  cursor: pointer;
  padding-top: 0.4rem;
  border-radius: 8px 8px 0 0;
  gap: 0.2rem;
}

.pg91-bottom-nav-item:hover {
  background: rgba(255, 0, 0, 0.1);
  color: var(--pg91-accent);
}

.pg91-bottom-nav-item.pg91-active {
  color: var(--pg91-primary);
  background: rgba(255, 0, 0, 0.15);
  font-weight: 700;
}

.pg91-bottom-nav-icon {
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pg91-bottom-nav-label {
  font-size: 0.9rem;
  font-weight: 600;
}

/* Responsive typography */
h1 {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--pg91-primary);
  margin-bottom: 1rem;
  line-height: 1.2;
}

h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--pg91-accent);
  margin: 1.5rem 0 1rem 0;
}

h3 {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--pg91-text);
  margin: 1.2rem 0 0.8rem 0;
}

p {
  margin-bottom: 1rem;
  line-height: 1.6rem;
}

a {
  color: var(--pg91-accent);
  text-decoration: none;
  transition: var(--pg91-transition);
  font-weight: 600;
}

a:hover {
  color: var(--pg91-primary);
  text-decoration: underline;
}

/* Utility classes */
.pg91-text-center {
  text-align: center;
}

.pg91-text-primary {
  color: var(--pg91-primary);
}

.pg91-text-secondary {
  color: var(--pg91-secondary);
}

.pg91-text-accent {
  color: var(--pg91-accent);
}

.pg91-text-light {
  color: var(--pg91-light);
}

.pg91-mt-1 { margin-top: 0.5rem; }
.pg91-mt-2 { margin-top: 1rem; }
.pg91-mt-3 { margin-top: 1.5rem; }

.pg91-mb-1 { margin-bottom: 0.5rem; }
.pg91-mb-2 { margin-bottom: 1rem; }
.pg91-mb-3 { margin-bottom: 1.5rem; }

.pg91-hidden {
  display: none !important;
}

/* Media query for desktop */
@media (min-width: 769px) {
  .pg91-bottom-nav {
    display: none !important;
  }

  main {
    padding-bottom: 0 !important;
  }

  .pg91-container {
    max-width: 100%;
  }

  .pg91-games-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .pg91-feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .pg91-menu-toggle {
    display: none;
  }
}

/* Responsive adjustments */
@media (max-width: 430px) {
  html {
    font-size: 60%;
  }

  .pg91-header-btns {
    gap: 0.4rem;
  }

  .pg91-btn {
    padding: 0.5rem 0.8rem;
    font-size: 1.1rem;
  }

  .pg91-games-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Animation keyframes */
@keyframes pg91-slide-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pg91-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.pg91-animate-slide {
  animation: pg91-slide-in 0.5s ease forwards;
}

.pg91-animate-fade {
  animation: pg91-fade-in 0.3s ease forwards;
}

/* Print styles */
@media print {
  .pg91-header,
  .pg91-bottom-nav,
  .pg91-menu-toggle {
    display: none;
  }
}
