/**
 * K99 Click - Main Stylesheet
 * All classes prefixed with pgde-
 * Mobile-first design, max-width 430px
 */

:root {
  --pgde-primary: #4682B4;
  --pgde-bg: #333333;
  --pgde-text: #80CBC4;
  --pgde-accent: #B8860B;
  --pgde-dark: #000080;
  --pgde-light: #f5f5f5;
  --pgde-white: #ffffff;
  --pgde-border-radius: 8px;
  --pgde-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--pgde-bg);
  color: var(--pgde-white);
  font-size: 1.4rem;
  line-height: 1.6;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--pgde-text);
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: var(--pgde-accent);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ====== Header ====== */
.pgde-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 56px;
  background: linear-gradient(135deg, var(--pgde-dark) 0%, #1a1a4e 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.pgde-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pgde-logo {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  object-fit: contain;
}

.pgde-site-name {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--pgde-accent);
  letter-spacing: 1px;
}

.pgde-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pgde-btn {
  padding: 6px 14px;
  border: none;
  border-radius: var(--pgde-border-radius);
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pgde-btn-register {
  background: linear-gradient(135deg, var(--pgde-accent) 0%, #d4a017 100%);
  color: var(--pgde-dark);
}

.pgde-btn-register:hover {
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(184, 134, 11, 0.5);
}

.pgde-btn-login {
  background: linear-gradient(135deg, var(--pgde-primary) 0%, #5a9fd4 100%);
  color: var(--pgde-white);
}

.pgde-btn-login:hover {
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(70, 130, 180, 0.5);
}

.pgde-menu-toggle {
  background: none;
  border: none;
  color: var(--pgde-text);
  font-size: 2rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

/* ====== Mobile Menu ====== */
.pgde-mobile-menu {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 100vh;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  display: none;
  flex-direction: column;
  padding: 70px 20px 20px;
  overflow-y: auto;
}

.pgde-menu-active {
  display: flex !important;
}

.pgde-menu-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9998;
}

.pgde-menu-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  color: var(--pgde-text);
  font-size: 2.4rem;
  cursor: pointer;
}

.pgde-menu-link {
  display: block;
  padding: 12px 0;
  font-size: 1.5rem;
  color: var(--pgde-white);
  border-bottom: 1px solid rgba(128, 203, 196, 0.15);
  transition: color 0.3s, padding-left 0.3s;
}

.pgde-menu-link:hover {
  color: var(--pgde-accent);
  padding-left: 8px;
}

/* ====== Main Content ====== */
main {
  padding-top: 56px;
}

.pgde-container {
  padding: 0 12px;
}

/* ====== Carousel ====== */
.pgde-carousel {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  border-radius: 0 0 var(--pgde-border-radius) var(--pgde-border-radius);
}

.pgde-carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity var(--pgde-shadow) ease;
  cursor: pointer;
}

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

.pgde-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pgde-carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}

.pgde-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}

.pgde-dot-active {
  background: var(--pgde-accent);
  width: 20px;
  border-radius: 4px;
}

/* ====== Section Titles ====== */
.pgde-section-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--pgde-accent);
  margin: 20px 0 12px;
  padding-left: 12px;
  border-left: 4px solid var(--pgde-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.pgde-section-title i,
.pgde-section-title .material-icons {
  font-size: 2rem;
  color: var(--pgde-primary);
}

/* ====== Game Grid ====== */
.pgde-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 0 12px 12px;
}

.pgde-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--pgde-border-radius);
  padding: 6px 4px;
}

.pgde-game-item:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.08);
}

.pgde-game-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid rgba(128, 203, 196, 0.2);
  margin-bottom: 4px;
}

.pgde-game-name {
  font-size: 1.05rem;
  color: var(--pgde-white);
  text-align: center;
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  word-break: break-word;
}

/* ====== Info Sections ====== */
.pgde-info-section {
  background: linear-gradient(135deg, rgba(0, 0, 128, 0.3) 0%, rgba(51, 51, 51, 0.9) 100%);
  border-radius: var(--pgde-border-radius);
  padding: 16px;
  margin: 12px;
  border: 1px solid rgba(128, 203, 196, 0.1);
}

.pgde-info-section h2 {
  font-size: 1.6rem;
  color: var(--pgde-accent);
  margin-bottom: 10px;
}

.pgde-info-section p {
  font-size: 1.3rem;
  color: var(--pgde-text);
  line-height: 1.7;
  margin-bottom: 8px;
}

.pgde-info-section ul {
  padding-left: 20px;
  margin-bottom: 8px;
}

.pgde-info-section li {
  font-size: 1.3rem;
  color: var(--pgde-text);
  line-height: 1.7;
  margin-bottom: 4px;
}

/* ====== CTA Buttons ====== */
.pgde-cta-btn {
  display: inline-block;
  padding: 12px 28px;
  background: linear-gradient(135deg, var(--pgde-accent) 0%, #d4a017 100%);
  color: var(--pgde-dark);
  font-size: 1.4rem;
  font-weight: 800;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s;
  margin: 8px 4px;
}

.pgde-cta-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(184, 134, 11, 0.4);
}

.pgde-cta-secondary {
  background: linear-gradient(135deg, var(--pgde-primary) 0%, #5a9fd4 100%);
  color: var(--pgde-white);
}

/* ====== Promo Banner ====== */
.pgde-promo-banner {
  background: linear-gradient(135deg, var(--pgde-dark) 0%, #1a1a6e 100%);
  padding: 20px 16px;
  text-align: center;
  margin: 12px;
  border-radius: var(--pgde-border-radius);
  border: 1px solid rgba(184, 134, 11, 0.3);
}

.pgde-promo-banner h3 {
  color: var(--pgde-accent);
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.pgde-promo-banner p {
  color: var(--pgde-text);
  font-size: 1.3rem;
  margin-bottom: 12px;
}

/* ====== Feature Cards ====== */
.pgde-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 0 12px 12px;
}

.pgde-feature-card {
  background: rgba(0, 0, 128, 0.2);
  border: 1px solid rgba(128, 203, 196, 0.15);
  border-radius: var(--pgde-border-radius);
  padding: 14px 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
}

.pgde-feature-card:hover {
  border-color: var(--pgde-accent);
  transform: translateY(-2px);
}

.pgde-feature-card i,
.pgde-feature-card .material-icons {
  font-size: 2.4rem;
  color: var(--pgde-primary);
  margin-bottom: 6px;
}

.pgde-feature-card h4 {
  font-size: 1.2rem;
  color: var(--pgde-accent);
  margin-bottom: 4px;
}

.pgde-feature-card p {
  font-size: 1.1rem;
  color: var(--pgde-text);
  line-height: 1.4;
}

/* ====== Testimonials ====== */
.pgde-testimonial {
  background: rgba(0, 0, 128, 0.15);
  border-left: 3px solid var(--pgde-accent);
  padding: 12px 14px;
  margin: 8px 12px;
  border-radius: 0 var(--pgde-border-radius) var(--pgde-border-radius) 0;
}

.pgde-testimonial p {
  font-size: 1.2rem;
  color: var(--pgde-text);
  font-style: italic;
}

.pgde-testimonial cite {
  display: block;
  margin-top: 6px;
  font-size: 1.1rem;
  color: var(--pgde-accent);
}

/* ====== Footer ====== */
.pgde-footer {
  background: linear-gradient(180deg, var(--pgde-bg) 0%, #1a1a1a 100%);
  padding: 24px 16px 16px;
  margin-top: 20px;
  border-top: 2px solid var(--pgde-dark);
}

.pgde-footer-brand {
  text-align: center;
  margin-bottom: 16px;
}

.pgde-footer-brand p {
  font-size: 1.2rem;
  color: var(--pgde-text);
  line-height: 1.6;
  max-width: 360px;
  margin: 0 auto;
}

.pgde-footer-promos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 16px 0;
}

.pgde-footer-promo-btn {
  padding: 6px 14px;
  background: linear-gradient(135deg, var(--pgde-accent) 0%, #d4a017 100%);
  color: var(--pgde-dark);
  font-size: 1.1rem;
  font-weight: 700;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  transition: transform 0.3s;
}

.pgde-footer-promo-btn:hover {
  transform: scale(1.05);
}

.pgde-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  margin: 16px 0;
}

.pgde-footer-link {
  font-size: 1.1rem;
  color: var(--pgde-text);
  transition: color 0.3s;
}

.pgde-footer-link:hover {
  color: var(--pgde-accent);
}

.pgde-footer-copy {
  text-align: center;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ====== Bottom Navigation ====== */
.pgde-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 60px;
  background: linear-gradient(135deg, var(--pgde-dark) 0%, #0a0a3e 100%);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.5);
  border-top: 1px solid rgba(128, 203, 196, 0.2);
}

.pgde-bottom-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 56px;
  background: none;
  border: none;
  color: rgba(128, 203, 196, 0.6);
  cursor: pointer;
  transition: all 0.3s;
  padding: 4px 2px;
  border-radius: 8px;
}

.pgde-bottom-btn:hover,
.pgde-bottom-btn:focus {
  color: var(--pgde-accent);
  background: rgba(184, 134, 11, 0.1);
}

.pgde-bottom-btn i,
.pgde-bottom-btn .material-icons,
.pgde-bottom-btn ion-icon {
  font-size: 22px;
  margin-bottom: 2px;
}

.pgde-bottom-btn span {
  font-size: 1rem;
  line-height: 1.2;
}

.pgde-bottom-active {
  color: var(--pgde-accent) !important;
}

/* ====== Help Page Styles ====== */
.pgde-page-header {
  background: linear-gradient(135deg, var(--pgde-dark) 0%, #1a1a4e 100%);
  padding: 20px 16px;
  text-align: center;
  margin-bottom: 16px;
}

.pgde-page-header h1 {
  font-size: 2rem;
  color: var(--pgde-accent);
  margin-bottom: 6px;
}

.pgde-page-header p {
  font-size: 1.3rem;
  color: var(--pgde-text);
}

.pgde-content-block {
  padding: 0 16px 16px;
}

.pgde-content-block h2 {
  font-size: 1.6rem;
  color: var(--pgde-accent);
  margin: 16px 0 8px;
  padding-left: 10px;
  border-left: 3px solid var(--pgde-primary);
}

.pgde-content-block p {
  font-size: 1.3rem;
  color: var(--pgde-text);
  line-height: 1.7;
  margin-bottom: 10px;
}

.pgde-faq-item {
  background: rgba(0, 0, 128, 0.15);
  border-radius: var(--pgde-border-radius);
  padding: 14px;
  margin: 10px 0;
  border: 1px solid rgba(128, 203, 196, 0.1);
}

.pgde-faq-item h3 {
  font-size: 1.4rem;
  color: var(--pgde-accent);
  margin-bottom: 6px;
}

.pgde-faq-item p {
  font-size: 1.2rem;
  color: var(--pgde-text);
  line-height: 1.6;
}

.pgde-promo-inline {
  display: inline-block;
  padding: 8px 20px;
  background: linear-gradient(135deg, var(--pgde-accent) 0%, #d4a017 100%);
  color: var(--pgde-dark);
  font-size: 1.2rem;
  font-weight: 700;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  margin: 6px 2px;
  transition: transform 0.3s;
}

.pgde-promo-inline:hover {
  transform: scale(1.05);
}

/* ====== Desktop ====== */
@media (min-width: 769px) {
  .pgde-bottom-nav {
    display: none;
  }

  body {
    max-width: 430px;
  }

  main {
    padding-bottom: 0 !important;
  }
}

/* ====== Mobile Adjustments ====== */
@media (max-width: 768px) {
  main {
    padding-bottom: 80px;
  }
}

/* ====== Utility ====== */
.pgde-text-center {
  text-align: center;
}

.pgde-mt-12 {
  margin-top: 12px;
}

.pgde-mb-12 {
  margin-bottom: 12px;
}

.pgde-hidden {
  display: none !important;
}
