/**
 * Taya 365 Login - Main Stylesheet
 * All classes prefixed with pg59- to avoid conflicts
 * File: style-5953.css
 * Mobile-first responsive design
 */

/* CSS Variables */
:root {
  --pg59-primary: #F08080;
  --pg59-secondary: #C9C9FF;
  --pg59-dark: #3A3A3A;
  --pg59-light: #BAE1FF;
  --pg59-white: #ffffff;
  --pg59-black: #000000;
  --pg59-gradient: linear-gradient(135deg, var(--pg59-primary), var(--pg59-secondary));
  --pg59-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --pg59-radius: 8px;
  --pg59-transition: all 0.3s ease;
  --pg59-header-height: 60px;
  --pg59-bottom-nav-height: 60px;
}

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

html {
  font-size: 62.5%; /* 1rem = 10px */
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--pg59-dark);
  background-color: var(--pg59-white);
  padding-bottom: var(--pg59-bottom-nav-height);
}

/* Container and Layout */
.pg59-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.pg59-wrapper {
  width: 100%;
  overflow-x: hidden;
}

.pg59-grid {
  display: grid;
  gap: 1.5rem;
}

.pg59-flex {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.pg59-flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pg59-flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.pg59-flex-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Header Styles */
.pg59-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--pg59-header-height);
  background: var(--pg59-gradient);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 1000;
  transition: var(--pg59-transition);
}

.pg59-header.pg59-scrolled {
  background: rgba(240, 128, 128, 0.95);
  box-shadow: var(--pg59-shadow);
}

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

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

.pg59-logo-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.pg59-header-buttons {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

.pg59-btn {
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: var(--pg59-radius);
  font-size: 1.2rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: var(--pg59-transition);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pg59-btn-primary {
  background: var(--pg59-white);
  color: var(--pg59-primary);
  border: 2px solid var(--pg59-white);
}

.pg59-btn-primary:hover {
  background: transparent;
  color: var(--pg59-white);
  transform: translateY(-2px);
}

.pg59-btn-secondary {
  background: transparent;
  color: var(--pg59-white);
  border: 2px solid var(--pg59-white);
}

.pg59-btn-secondary:hover {
  background: var(--pg59-white);
  color: var(--pg59-primary);
  transform: translateY(-2px);
}

.pg59-btn-small {
  padding: 0.6rem 1.2rem;
  font-size: 1.1rem;
}

/* Mobile Menu */
.pg59-menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.pg59-menu-toggle span {
  width: 100%;
  height: 2px;
  background: var(--pg59-white);
  transition: var(--pg59-transition);
  transform-origin: center;
}

.pg59-menu-toggle.pg59-active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

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

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

.pg59-mobile-menu {
  position: fixed;
  top: var(--pg59-header-height);
  left: -100%;
  width: 80%;
  height: calc(100vh - var(--pg59-header-height));
  background: var(--pg59-white);
  transition: var(--pg59-transition);
  z-index: 999;
  overflow-y: auto;
  box-shadow: var(--pg59-shadow);
}

.pg59-mobile-menu.pg59-active {
  left: 0;
}

.pg59-menu-overlay {
  position: fixed;
  top: var(--pg59-header-height);
  left: 0;
  width: 100%;
  height: calc(100vh - var(--pg59-header-height));
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: var(--pg59-transition);
  z-index: 998;
}

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

.pg59-menu-list {
  list-style: none;
  padding: 2rem;
}

.pg59-menu-item {
  margin-bottom: 1rem;
}

.pg59-menu-link {
  display: block;
  padding: 1.2rem;
  color: var(--pg59-dark);
  text-decoration: none;
  font-size: 1.4rem;
  font-weight: 500;
  border-radius: var(--pg59-radius);
  transition: var(--pg59-transition);
}

.pg59-menu-link:hover {
  background: var(--pg59-light);
  color: var(--pg59-primary);
}

/* Main Content */
.pg59-main {
  margin-top: var(--pg59-header-height);
  min-height: calc(100vh - var(--pg59-header-height) - var(--pg59-bottom-nav-height));
}

.pg59-section {
  padding: 2rem 0;
}

.pg59-section-title {
  font-size: 2.4rem;
  font-weight: bold;
  color: var(--pg59-dark);
  text-align: center;
  margin-bottom: 2rem;
}

.pg59-section-subtitle {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--pg59-primary);
  margin-bottom: 1.5rem;
}

/* Carousel Styles */
.pg59-carousel {
  position: relative;
  width: 100%;
  height: 200px;
  margin-bottom: 2rem;
  border-radius: var(--pg59-radius);
  overflow: hidden;
  box-shadow: var(--pg59-shadow);
}

.pg59-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.pg59-slide.pg59-active {
  opacity: 1;
}

.pg59-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

.pg59-carousel-dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.pg59-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: var(--pg59-transition);
}

.pg59-dot.pg59-active {
  background: var(--pg59-white);
  transform: scale(1.2);
}

/* Game Grid */
.pg59-games-section {
  margin-bottom: 3rem;
}

.pg59-games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.pg59-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  background: var(--pg59-white);
  border-radius: var(--pg59-radius);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: var(--pg59-transition);
  cursor: pointer;
  text-decoration: none;
  color: var(--pg59-dark);
}

.pg59-game-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.pg59-game-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--pg59-radius);
  object-fit: cover;
  margin-bottom: 0.8rem;
}

.pg59-game-name {
  font-size: 1.1rem;
  font-weight: 500;
  text-align: center;
  line-height: 1.3;
}

/* Content Sections */
.pg59-content-card {
  background: var(--pg59-white);
  padding: 2rem;
  border-radius: var(--pg59-radius);
  box-shadow: var(--pg59-shadow);
  margin-bottom: 2rem;
}

.pg59-text-content {
  font-size: 1.4rem;
  line-height: 1.6;
  color: var(--pg59-dark);
  margin-bottom: 1.5rem;
}

.pg59-text-content p {
  margin-bottom: 1rem;
}

.pg59-text-content h3 {
  font-size: 1.8rem;
  color: var(--pg59-primary);
  margin-bottom: 1rem;
  margin-top: 2rem;
}

.pg59-text-content ul {
  padding-left: 2rem;
  margin-bottom: 1rem;
}

.pg59-text-content li {
  margin-bottom: 0.5rem;
}

.pg59-promo-section {
  background: var(--pg59-gradient);
  color: var(--pg59-white);
  text-align: center;
  padding: 3rem 2rem;
  border-radius: var(--pg59-radius);
  margin: 2rem 0;
}

.pg59-promo-title {
  font-size: 2.2rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.pg59-promo-text {
  font-size: 1.4rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.pg59-promo-btn {
  background: var(--pg59-white);
  color: var(--pg59-primary);
  font-size: 1.6rem;
  font-weight: bold;
  padding: 1.2rem 2.5rem;
  border: none;
  border-radius: var(--pg59-radius);
  cursor: pointer;
  transition: var(--pg59-transition);
  text-decoration: none;
  display: inline-block;
}

.pg59-promo-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Footer */
.pg59-footer {
  background: var(--pg59-dark);
  color: var(--pg59-white);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
}

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

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

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

.pg59-footer-link:hover {
  color: var(--pg59-white);
}

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

.pg59-partner-icon {
  width: 32px;
  height: 32px;
  opacity: 0.7;
  transition: var(--pg59-transition);
  border-radius: 4px;
}

.pg59-partner-icon:hover {
  opacity: 1;
  transform: scale(1.1);
}

.pg59-copyright {
  font-size: 1.2rem;
  opacity: 0.7;
  margin-top: 2rem;
}

/* Bottom Navigation */
.pg59-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--pg59-bottom-nav-height);
  background: var(--pg59-white);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.pg59-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 0.5rem;
  transition: var(--pg59-transition);
}

.pg59-bottom-nav-item.pg59-active {
  color: var(--pg59-primary);
}

.pg59-bottom-nav-item a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
  font-size: 1.1rem;
  font-weight: 500;
}

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

.pg59-bottom-nav-text {
  font-size: 1rem;
  line-height: 1;
}

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

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

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

.pg59-mb-1 {
  margin-bottom: 1rem;
}

.pg59-mb-2 {
  margin-bottom: 2rem;
}

.pg59-mt-1 {
  margin-top: 1rem;
}

.pg59-mt-2 {
  margin-top: 2rem;
}

.pg59-hidden {
  display: none;
}

.pg59-visible {
  display: block;
}

/* Lazy Loading */
.pg59-lazy {
  opacity: 0;
  transition: opacity 0.3s;
}

.pg59-lazy.loaded {
  opacity: 1;
}

/* Responsive Design */
@media (min-width: 375px) {
  .pg59-games-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
  }
  
  .pg59-game-icon {
    width: 52px;
    height: 52px;
  }
}

@media (min-width: 414px) {
  .pg59-container {
    max-width: 414px;
  }
  
  .pg59-carousel {
    height: 220px;
  }
  
  .pg59-section-title {
    font-size: 2.6rem;
  }
}

@media (max-width: 320px) {
  .pg59-games-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .pg59-carousel {
    height: 180px;
  }
  
  .pg59-section-title {
    font-size: 2rem;
  }
  
  .pg59-game-name {
    font-size: 1rem;
  }
}

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

.pg59-fade-in {
  animation: pg59-fadeIn 0.6s ease-out;
}

@keyframes pg59-pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

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

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  :root {
    --pg59-primary: #CC0000;
    --pg59-secondary: #0000CC;
    --pg59-dark: #000000;
    --pg59-light: #FFFFFF;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .pg59-carousel .pg59-slide {
    transition: none;
  }
}