/**
 * PH90 Main Stylesheet - Unique Design
 * Color Palette: #E8F5E8 | #1E1E1E | #FFFACD | #26A69A | #BC8F8F
 * Mobile-First Responsive Design
 */

/* ===== CSS Variables ===== */
:root {
  --pgb7-primary: #26A69A;
  --pgb7-primary-dark: #00897B;
  --pgb7-secondary: #BC8F8F;
  --pgb7-accent: #FFFACD;
  --pgb7-bg-dark: #1E1E1E;
  --pgb7-bg-light: #E8F5E8;
  --pgb7-text-primary: #1E1E1E;
  --pgb7-text-secondary: #424242;
  --pgb7-text-light: #E8F5E8;
  --pgb7-white: #FFFFFF;
  --pgb7-shadow: rgba(30, 30, 30, 0.15);
  --pgb7-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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(--pgb7-text-primary);
  background-color: var(--pgb7-bg-light);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--pgb7-transition);
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  transition: var(--pgb7-transition);
}

/* ===== Container ===== */
.pgb7-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.pgb7-wrapper {
  min-height: 100vh;
  padding-bottom: 80px;
}

/* ===== Header ===== */
.pgb7-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, var(--pgb7-bg-dark) 0%, #2d2d2d 100%);
  box-shadow: 0 2px 12px var(--pgb7-shadow);
}

.pgb7-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: 430px;
  margin: 0 auto;
}

.pgb7-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--pgb7-text-light);
  font-weight: 700;
  font-size: 1.8rem;
}

.pgb7-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
}

.pgb7-menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  cursor: pointer;
}

.pgb7-menu-toggle span {
  width: 24px;
  height: 2px;
  background-color: var(--pgb7-text-light);
  border-radius: 2px;
  transition: var(--pgb7-transition);
}

.pgb7-header-buttons {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

.pgb7-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.2rem;
  font-size: 1.3rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--pgb7-transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pgb7btn-register {
  background: linear-gradient(135deg, var(--pgb7-primary) 0%, var(--pgb7-primary-dark) 100%);
  color: var(--pgb7-white);
  box-shadow: 0 4px 12px rgba(38, 166, 154, 0.4);
}

.pgb7btn-register:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(38, 166, 154, 0.5);
}

.pgb7btn-register:active {
  transform: translateY(0);
}

.pgb7btn-login {
  background: transparent;
  color: var(--pgb7-accent);
  border: 2px solid var(--pgb7-accent);
}

.pgb7btn-login:hover {
  background: var(--pgb7-accent);
  color: var(--pgb7-bg-dark);
}

/* ===== Mobile Menu ===== */
.pgb7-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: var(--pgb7-transition);
}

.pgb7-menu-overlay.pgb7-active {
  opacity: 1;
  visibility: visible;
}

.pgb7-mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: linear-gradient(180deg, var(--pgb7-bg-dark) 0%, #252525 100%);
  z-index: 9999;
  transition: right 0.3s ease-in-out;
  overflow-y: auto;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
}

.pgb7-mobile-menu.pgb7-active {
  right: 0;
}

.pgb7-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pgb7-menu-title {
  color: var(--pgb7-text-light);
  font-size: 1.8rem;
  font-weight: 700;
}

.pgb7-menu-close {
  color: var(--pgb7-text-light);
  font-size: 2.4rem;
  cursor: pointer;
  padding: 0.5rem;
}

.pgb7-menu-list {
  list-style: none;
  padding: 1rem 0;
}

.pgb7-menu-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.pgb7-menu-link {
  display: flex;
  align-items: center;
  padding: 1.2rem 1.5rem;
  color: var(--pgb7-text-light);
  font-size: 1.5rem;
  gap: 1rem;
}

.pgb7-menu-link:hover {
  background: rgba(38, 166, 154, 0.1);
  padding-left: 2rem;
}

.pgb7-menu-icon {
  width: 20px;
  text-align: center;
  color: var(--pgb7-primary);
}

/* ===== Main Content ===== */
.pgb7-main {
  padding-top: 70px;
  min-height: calc(100vh - 70px - 70px);
}

/* ===== Carousel ===== */
.pgb7-carousel {
  position: relative;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 0 0 16px 16px;
  box-shadow: 0 4px 20px var(--pgb7-shadow);
}

.pgb7-carousel-slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.pgb7-carousel-slide {
  min-width: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  position: relative;
}

.pgb7-carousel-slide.pgb7-active {
  opacity: 1;
}

.pgb7-carousel-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  cursor: pointer;
}

.pgb7carousel-nav {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.pgb7-carousel-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: var(--pgb7-transition);
}

.pgb7-carousel-indicator.pgb7-active {
  background: var(--pgb7-white);
  width: 24px;
  border-radius: 4px;
}

/* ===== Hero Section ===== */
.pgb7-hero {
  padding: 2rem 0;
  text-align: center;
  background: linear-gradient(180deg, var(--pgb7-bg-light) 0%, var(--pgb7-white) 100%);
}

.pgb7hero-title {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--pgb7-bg-dark);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.pgb7hero-text {
  font-size: 1.5rem;
  color: var(--pgb7-text-secondary);
  max-width: 380px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}

.pgb7btn-hero {
  display: inline-block;
  background: linear-gradient(135deg, var(--pgb7-primary) 0%, var(--pgb7-primary-dark) 100%);
  color: var(--pgb7-white);
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-size: 1.5rem;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(38, 166, 154, 0.4);
  margin-top: 1rem;
}

.pgb7btn-hero:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(38, 166, 154, 0.5);
}

/* ===== Section ===== */
.pgb7-section {
  padding: 2rem 0;
}

.pgb7section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--pgb7-bg-dark);
  margin-bottom: 1.5rem;
  text-align: center;
  position: relative;
  padding-bottom: 1rem;
}

.pgb7section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--pgb7-primary) 0%, var(--pgb7-secondary) 100%);
  border-radius: 2px;
}

/* ===== Game Grid ===== */
.pgb7-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin: 1.5rem 0;
}

.pgb7-game-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--pgb7-white);
  box-shadow: 0 2px 8px var(--pgb7-shadow);
  transition: var(--pgb7-transition);
  cursor: pointer;
  aspect-ratio: 1;
}

.pgb7-game-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px var(--pgb7-shadow);
}

.pgb7-game-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pgb7game-name {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.4rem 0.3rem;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  color: var(--pgb7-white);
  font-size: 0.7rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pgb7game-link {
  display: block;
  width: 100%;
  height: 100%;
}

/* ===== Card ===== */
.pgb7-card {
  background: var(--pgb7-white);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 12px var(--pgb7-shadow);
  transition: var(--pgb7-transition);
}

.pgb7-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px var(--pgb7-shadow);
}

.pgb7card-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--pgb7-bg-dark);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pgb7card-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 24px;
  background: linear-gradient(180deg, var(--pgb7-primary) 0%, var(--pgb7-secondary) 100%);
  border-radius: 2px;
}

.pgb7card-content {
  font-size: 1.4rem;
  color: var(--pgb7-text-secondary);
  line-height: 1.7;
}

.pgb7card-link {
  color: var(--pgb7-primary);
  font-weight: 600;
  text-decoration: underline;
}

.pgb7card-link:hover {
  color: var(--pgb7-primary-dark);
}

/* ===== Feature List ===== */
.pgb7feature-list {
  list-style: none;
  margin: 1rem 0;
}

.pgb7feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.pgb7feature-item:last-child {
  border-bottom: none;
}

.pgb7feature-icon {
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, var(--pgb7-primary) 0%, var(--pgb7-primary-dark) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pgb7-white);
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.pgb7feature-text {
  font-size: 1.4rem;
  color: var(--pgb7-text-secondary);
  line-height: 1.6;
}

/* ===== Promotional Links ===== */
.pgb7promo-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.5rem 0;
}

.pgb7promo-link {
  display: inline-block;
  background: linear-gradient(135deg, var(--pgb7-accent) 0%, #FFE082 100%);
  color: var(--pgb7-bg-dark);
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  font-size: 1.3rem;
  font-weight: 600;
  box-shadow: 0 3px 10px rgba(255, 250, 205, 0.4);
}

.pgb7promo-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 14px rgba(255, 250, 205, 0.5);
}

/* ===== Bottom Navigation ===== */
.pgb7-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: linear-gradient(180deg, #2d2d2d 0%, var(--pgb7-bg-dark) 100%);
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-around;
  max-width: 430px;
  margin: 0 auto;
}

.pgb7-bottom-nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 60px;
  min-height: 60px;
  color: rgba(255, 255, 255, 0.7);
  transition: var(--pgb7-transition);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 12px;
}

.pgb7-bottom-nav-link:hover {
  background: rgba(38, 166, 154, 0.15);
  color: var(--pgb7-white);
}

.pgb7-bottom-nav-link.pgb7-active {
  color: var(--pgb7-primary);
  background: rgba(38, 166, 154, 0.2);
}

.pgb7bottom-nav-icon {
  font-size: 24px;
  line-height: 1;
}

.pgb7bottom-nav-text {
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  margin-top: 2px;
}

/* ===== Footer ===== */
.pgb7-footer {
  background: var(--pgb7-bg-dark);
  color: var(--pgb7-text-light);
  padding: 2.5rem 0 100px;
  margin-top: 3rem;
}

.pgb7footer-content {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.pgb7footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  justify-content: center;
}

.pgb7footer-link {
  color: var(--pgb7-primary);
  font-size: 1.3rem;
  font-weight: 500;
}

.pgb7footer-link:hover {
  color: var(--pgb7-accent);
  text-decoration: underline;
}

.pgb7footer-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.pgb7footer-partner {
  width: 60px;
  height: 30px;
  object-fit: contain;
  opacity: 0.8;
  transition: var(--pgb7-transition);
}

.pgb7footer-partner:hover {
  opacity: 1;
}

.pgb7footer-copy {
  text-align: center;
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.6);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== Desktop Hide ===== */
@media (min-width: 769px) {
  .pgb7-bottom-nav {
    display: none;
  }

  .pgb7-wrapper {
    padding-bottom: 0;
  }

  .pgb7-footer {
    padding-bottom: 2.5rem;
  }
}

/* ===== Utility Classes ===== */
.pgb7-text-center {
  text-align: center;
}

.pgb7mb-1 {
  margin-bottom: 1rem;
}

.pgb7mb-2 {
  margin-bottom: 2rem;
}

.pgb7mt-2 {
  margin-top: 2rem;
}

.pgb7-text-primary {
  color: var(--pgb7-primary);
}

.pgb7-text-gradient {
  background: linear-gradient(135deg, var(--pgb7-primary) 0%, var(--pgb7-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== Animation ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pgb7-animate {
  animation: fadeInUp 0.6s ease-out;
}
