/* 365jl ph - Main Stylesheet */
/* All classes use pg7e prefix for namespace isolation */
/* Mobile-first responsive design */
/* Code comments in English */

/* CSS Variables */
:root {
  --pg7e-primary: #8A2BE2;
  --pg7e-secondary: #800080;
  --pg7e-accent: #0097A7;
  --pg7e-dark: #141414;
  --pg7e-gray: #BBBBBB;
  --pg7e-light: #E0F2F1;
  --pg7e-white: #FFFFFF;
  --pg7e-success: #4CAF50;
  --pg7e-warning: #FF9800;
  --pg7e-error: #F44336;
}

/* 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, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 1.6rem;
  line-height: 1.5rem;
  background-color: var(--pg7e-dark);
  color: var(--pg7e-light);
  min-height: 100vh;
  padding-bottom: 70px;
}

/* Container */
.pg7e-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
}

.pg7e-wrapper {
  width: 100%;
  overflow-x: hidden;
}

/* Header and Navigation */
.pg7e-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--pg7e-dark) 0%, var(--pg7e-secondary) 100%);
  padding: 1rem;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(138, 43, 226, 0.3);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pg7e-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--pg7e-white);
  font-weight: bold;
  font-size: 1.4rem;
}

.pg7e-logo-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pg7e-primary), var(--pg7e-accent));
  display: flex;
  align-items: center;
  justify-content: center;
}

.pg7e-nav-buttons {
  display: flex;
  gap: 0.5rem;
}

.pg7e-btn {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 8px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 44px;
  min-width: 80px;
  text-align: center;
}

.pg7e-btn-register {
  background: linear-gradient(135deg, var(--pg7e-primary), var(--pg7e-secondary));
  color: var(--pg7e-white);
}

.pg7e-btn-register:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(138, 43, 226, 0.5);
}

.pg7e-btn-login {
  background: transparent;
  color: var(--pg7e-white);
  border: 2px solid var(--pg7e-primary);
}

.pg7e-btn-login:hover {
  background: var(--pg7e-primary);
  transform: scale(1.05);
}

.pg7e-menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 0.5rem;
  background: none;
  border: none;
}

.pg7e-menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--pg7e-white);
  transition: all 0.3s ease;
}

/* Mobile Menu */
.pg7e-mobile-menu {
  position: fixed;
  top: 60px;
  left: -100%;
  width: 80%;
  max-width: 300px;
  height: calc(100vh - 60px);
  background: var(--pg7e-dark);
  z-index: 9999;
  transition: left 0.3s ease;
  padding: 1rem;
  overflow-y: auto;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
}

.pg7e-menu-open {
  left: 0;
}

.pg7e-menu-item {
  display: block;
  padding: 1rem;
  color: var(--pg7e-light);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  font-size: 1.4rem;
}

.pg7e-menu-item:hover {
  background: var(--pg7e-primary);
  color: var(--pg7e-white);
  padding-left: 1.5rem;
}

/* Carousel */
.pg7e-carousel-wrapper {
  margin-top: 60px;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(138, 43, 226, 0.3);
}

.pg7e-carousel-container {
  display: flex;
  transition: transform 0.5s ease;
}

.pg7e-carousel-slide {
  min-width: 100%;
  position: relative;
}

.pg7e-carousel-slide img {
  width: 100%;
  height: auto;
  display: block;
}

/* Content Sections */
.pg7e-section {
  padding: 2rem 0;
}

.pg7e-section-title {
  font-size: 2rem;
  font-weight: bold;
  color: var(--pg7e-primary);
  margin-bottom: 1.5rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Game Grid */
.pg7e-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.pg7e-game-item {
  background: rgba(138, 43, 226, 0.1);
  border-radius: 8px;
  padding: 0.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(138, 43, 226, 0.2);
}

.pg7e-game-item:hover {
  transform: scale(1.05);
  background: rgba(138, 43, 226, 0.2);
  border-color: var(--pg7e-primary);
}

.pg7e-game-icon {
  width: 50px;
  height: 50px;
  margin: 0 auto 0.5rem;
  border-radius: 8px;
  object-fit: cover;
}

.pg7e-game-name {
  font-size: 1rem;
  color: var(--pg7e-light);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.2;
}

/* Cards */
.pg7e-card {
  background: linear-gradient(135deg, rgba(138, 43, 226, 0.1), rgba(0, 151, 167, 0.1));
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(138, 43, 226, 0.3);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.pg7e-card-title {
  font-size: 1.6rem;
  color: var(--pg7e-primary);
  margin-bottom: 1rem;
  font-weight: bold;
}

.pg7e-card-content {
  font-size: 1.4rem;
  line-height: 1.6;
  color: var(--pg7e-gray);
}

/* Buttons */
.pg7e-btn-primary {
  background: linear-gradient(135deg, var(--pg7e-primary), var(--pg7e-secondary));
  color: var(--pg7e-white);
  padding: 1rem 2rem;
  border: none;
  border-radius: 8px;
  font-size: 1.4rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 50px;
  min-width: 120px;
}

.pg7e-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(138, 43, 226, 0.5);
}

/* FAQ Styles */
.pg7e-faq-item {
  margin-bottom: 1rem;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(138, 43, 226, 0.1);
}

.pg7e-faq-question {
  padding: 1rem;
  background: linear-gradient(135deg, var(--pg7e-primary), var(--pg7e-secondary));
  color: var(--pg7e-white);
  font-weight: bold;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pg7e-faq-answer {
  padding: 1rem;
  color: var(--pg7e-gray);
  line-height: 1.6;
}

/* Bottom Navigation */
.pg7e-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(135deg, var(--pg7e-dark), var(--pg7e-secondary));
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(138, 43, 226, 0.3);
  border-top: 1px solid rgba(138, 43, 226, 0.3);
}

.pg7e-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: var(--pg7e-gray);
  min-width: 60px;
  min-height: 60px;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0.5rem;
}

.pg7e-nav-item:hover {
  color: var(--pg7e-white);
  transform: scale(1.1);
}

.pg7e-nav-item.active {
  color: var(--pg7e-primary);
}

.pg7e-nav-icon {
  font-size: 24px;
}

.pg7e-nav-text {
  font-size: 10px;
  font-weight: 500;
}

/* Footer */
.pg7e-footer {
  background: linear-gradient(135deg, var(--pg7e-dark), #1a1a1a);
  padding: 2rem 1rem 80px 1rem;
  margin-top: 2rem;
  border-top: 2px solid var(--pg7e-primary);
}

.pg7e-footer-content {
  text-align: center;
  color: var(--pg7e-gray);
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.pg7e-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.pg7e-footer-link {
  color: var(--pg7e-primary);
  text-decoration: none;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.pg7e-footer-link:hover {
  color: var(--pg7e-white);
  text-decoration: underline;
}

.pg7e-partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.pg7e-partner-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  opacity: 0.7;
  transition: all 0.3s ease;
}

.pg7e-partner-logo:hover {
  opacity: 1;
  transform: scale(1.1);
}

.pg7e-copyright {
  text-align: center;
  color: var(--pg7e-gray);
  font-size: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
}

/* Animations */
.pg7e-animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
}

.pg7e-animate-in {
  opacity: 1;
  transform: translateY(0);
}

.pg7e-touched {
  transform: scale(0.95);
  opacity: 0.8;
}

/* Responsive */
@media (min-width: 769px) {
  .pg7e-bottom-nav {
    display: none;
  }

  body {
    padding-bottom: 0;
  }
}

/* Utility Classes */
.pg7e-text-center {
  text-align: center;
}

.pg7e-mt-1 {
  margin-top: 1rem;
}

.pg7e-mb-1 {
  margin-bottom: 1rem;
}

.pg7e-py-2 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

/* RTP Display */
.pg7e-rtp-bar {
  height: 8px;
  background: rgba(138, 43, 226, 0.2);
  border-radius: 4px;
  overflow: hidden;
  margin: 0.5rem 0;
}

.pg7e-rtp-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--pg7e-primary), var(--pg7e-accent));
  transition: width 0.5s ease;
}

/* Section Dividers */
.pg7e-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--pg7e-primary), transparent);
  margin: 2rem 0;
}
