/* Perya Plus - Core Stylesheet */
/* All classes prefixed with gc48- for namespace isolation */
/* Mobile-first design, max-width 430px */

/* CSS Variables */
:root {
  --gc48-primary: #C71585;
  --gc48-bg: #2C3E50;
  --gc48-text: #FFEF94;
  --gc48-dark: #495057;
  --gc48-accent: #8B0000;
  --gc48-warm: #FF7F50;
  --gc48-white: #FFFFFF;
  --gc48-light-bg: #34495E;
  --gc48-card-bg: #1A252F;
  --gc48-border: #3D566E;
  --gc48-header-h: 56px;
  --gc48-bottom-nav-h: 60px;
  font-size: 62.5%;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background-color: var(--gc48-bg);
  color: var(--gc48-text);
  font-size: 1.4rem;
  line-height: 1.5;
  overflow-x: hidden;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
}
a { color: var(--gc48-text); text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* Header */
.gc48-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: var(--gc48-header-h);
  background: linear-gradient(135deg, var(--gc48-bg) 0%, var(--gc48-light-bg) 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.2rem;
  z-index: 1000;
  border-bottom: 2px solid var(--gc48-primary);
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.gc48-logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.gc48-logo-wrap img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}
.gc48-site-name {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gc48-text);
  letter-spacing: 0.5px;
}
.gc48-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.gc48-btn-register {
  background: linear-gradient(135deg, var(--gc48-primary), #E91E8C);
  color: var(--gc48-white);
  border: none;
  padding: 0.6rem 1.4rem;
  border-radius: 20px;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.gc48-btn-register:hover { transform: scale(1.05); box-shadow: 0 4px 12px rgba(199,21,133,0.5); }
.gc48-btn-login {
  background: transparent;
  color: var(--gc48-text);
  border: 1.5px solid var(--gc48-text);
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}
.gc48-btn-login:hover { background: rgba(255,239,148,0.15); }
.gc48-menu-toggle {
  background: none;
  border: none;
  color: var(--gc48-text);
  font-size: 2.2rem;
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Side Menu */
.gc48-side-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100%;
  background: linear-gradient(180deg, var(--gc48-bg) 0%, var(--gc48-card-bg) 100%);
  z-index: 9999;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 2rem 0;
  overflow-y: auto;
  box-shadow: -4px 0 20px rgba(0,0,0,0.5);
}
.gc48-side-menu.gc48-menu-active { right: 0; }
.gc48-menu-header {
  padding: 0 1.5rem 1.5rem;
  border-bottom: 1px solid var(--gc48-border);
  margin-bottom: 1rem;
}
.gc48-menu-header h3 {
  font-size: 1.8rem;
  color: var(--gc48-primary);
  margin-bottom: 0.3rem;
}
.gc48-menu-header p {
  font-size: 1.2rem;
  color: var(--gc48-text);
  opacity: 0.7;
}
.gc48-menu-nav a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.5rem;
  color: var(--gc48-text);
  font-size: 1.4rem;
  transition: all 0.25s ease;
  border-left: 3px solid transparent;
}
.gc48-menu-nav a:hover, .gc48-menu-nav a:focus {
  background: rgba(199,21,133,0.15);
  border-left-color: var(--gc48-primary);
  color: var(--gc48-white);
}
.gc48-menu-nav a .material-icons, .gc48-menu-nav a .fa-solid, .gc48-menu-nav a .bi {
  font-size: 1.8rem;
  width: 24px;
  text-align: center;
}

/* Menu Overlay */
#gc48-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s ease;
}
#gc48-menu-overlay.gc48-overlay-active { opacity: 1; visibility: visible; }

/* Main Content */
main {
  padding-top: calc(var(--gc48-header-h) + 1rem);
  padding-bottom: 1rem;
}

/* Carousel */
.gc48-carousel {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  border-radius: 0 0 12px 12px;
}
.gc48-carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity var(--gc48-carousel-transition, 0.5s) ease;
  cursor: pointer;
}
.gc48-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gc48-carousel-slide.gc48-slide-active { opacity: 1; }

/* Section */
.gc48-section {
  padding: 1.5rem 1.2rem;
}
.gc48-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gc48-text);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--gc48-primary);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.gc48-section-title .fa-solid, .gc48-section-title .material-icons {
  color: var(--gc48-primary);
  font-size: 2rem;
}

/* Game Grid - Compact Small Icons */
.gc48-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}
.gc48-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.gc48-game-item:hover { transform: scale(1.08); }
.gc48-game-item img {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  border: 2px solid var(--gc48-border);
  transition: border-color 0.3s ease;
  object-fit: cover;
}
.gc48-game-item:hover img { border-color: var(--gc48-primary); }
.gc48-game-name {
  font-size: 1rem;
  color: var(--gc48-text);
  text-align: center;
  line-height: 1.2;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Category Header */
.gc48-cat-header {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gc48-warm);
  margin: 1.5rem 0 0.8rem;
  padding-left: 0.5rem;
  border-left: 3px solid var(--gc48-warm);
}

/* Cards */
.gc48-card {
  background: var(--gc48-card-bg);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.2rem;
  border: 1px solid var(--gc48-border);
  transition: all 0.3s ease;
}
.gc48-card:hover { border-color: var(--gc48-primary); box-shadow: 0 4px 16px rgba(199,21,133,0.2); }
.gc48-card h3 {
  font-size: 1.6rem;
  color: var(--gc48-text);
  margin-bottom: 0.8rem;
}
.gc48-card p {
  font-size: 1.3rem;
  color: var(--gc48-text);
  opacity: 0.85;
  line-height: 1.6;
}

/* Promo Button */
.gc48-promo-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--gc48-primary), var(--gc48-warm));
  color: var(--gc48-white);
  padding: 1rem 2.4rem;
  border-radius: 25px;
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  border: none;
  letter-spacing: 0.5px;
}
.gc48-promo-btn:hover { transform: scale(1.05); box-shadow: 0 6px 20px rgba(199,21,133,0.4); }

/* Promo Link (text style) */
.gc48-promo-link {
  color: var(--gc48-warm);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.3s ease;
}
.gc48-promo-link:hover { color: var(--gc48-primary); }

/* Internal Link */
.gc48-internal-link {
  color: var(--gc48-warm);
  text-decoration: underline;
  transition: color 0.2s ease;
}
.gc48-internal-link:hover { color: var(--gc48-primary); }

/* Bottom Fixed Navigation */
.gc48-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: var(--gc48-bottom-nav-h);
  background: linear-gradient(180deg, var(--gc48-light-bg) 0%, var(--gc48-bg) 100%);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  border-top: 2px solid var(--gc48-primary);
  box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
  padding: 0 0.3rem;
}
.gc48-bottom-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 50px;
  background: none;
  border: none;
  color: var(--gc48-text);
  cursor: pointer;
  transition: all 0.25s ease;
  opacity: 0.75;
  padding: 0.3rem;
}
.gc48-bottom-nav-btn:hover, .gc48-bottom-nav-btn.gc48-nav-active {
  opacity: 1;
  color: var(--gc48-primary);
  transform: scale(1.1);
}
.gc48-bottom-nav-btn .gc48-nav-icon {
  font-size: 2.2rem;
  line-height: 1;
  margin-bottom: 0.2rem;
}
.gc48-bottom-nav-btn .gc48-nav-label {
  font-size: 1rem;
  line-height: 1;
  white-space: nowrap;
}

/* Footer */
.gc48-footer {
  background: var(--gc48-card-bg);
  padding: 2rem 1.2rem;
  border-top: 1px solid var(--gc48-border);
  text-align: center;
}
.gc48-footer-desc {
  font-size: 1.2rem;
  color: var(--gc48-text);
  opacity: 0.7;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.gc48-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}
.gc48-footer-links a {
  font-size: 1.2rem;
  color: var(--gc48-warm);
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--gc48-border);
  border-radius: 6px;
  transition: all 0.2s ease;
}
.gc48-footer-links a:hover { border-color: var(--gc48-primary); color: var(--gc48-primary); }
.gc48-footer-copy {
  font-size: 1.1rem;
  color: var(--gc48-text);
  opacity: 0.5;
  margin-top: 1rem;
}

/* Promo Buttons Row in Footer */
.gc48-footer-promo {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}
.gc48-footer-promo-btn {
  background: linear-gradient(135deg, var(--gc48-accent), var(--gc48-primary));
  color: var(--gc48-white);
  border: none;
  padding: 0.6rem 1.4rem;
  border-radius: 18px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}
.gc48-footer-promo-btn:hover { transform: scale(1.05); }

/* H1 Title */
.gc48-h1-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--gc48-text);
  text-align: center;
  margin: 1.5rem 0;
  line-height: 1.3;
}

/* Winner Card */
.gc48-winner-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--gc48-card-bg);
  padding: 1rem;
  border-radius: 10px;
  margin-bottom: 0.8rem;
  border: 1px solid var(--gc48-border);
}
.gc48-winner-card img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--gc48-primary);
}
.gc48-winner-info { flex: 1; }
.gc48-winner-name { font-size: 1.3rem; font-weight: 600; color: var(--gc48-text); }
.gc48-winner-amount { font-size: 1.2rem; color: var(--gc48-warm); font-weight: 700; }
.gc48-winner-game { font-size: 1.1rem; color: var(--gc48-text); opacity: 0.6; }

/* Testimonial */
.gc48-testimonial {
  background: var(--gc48-card-bg);
  border-radius: 12px;
  padding: 1.2rem;
  margin-bottom: 1rem;
  border-left: 3px solid var(--gc48-primary);
}
.gc48-testimonial-text {
  font-size: 1.3rem;
  color: var(--gc48-text);
  opacity: 0.9;
  font-style: italic;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}
.gc48-testimonial-author {
  font-size: 1.1rem;
  color: var(--gc48-warm);
  font-weight: 600;
}

/* Feature Grid */
.gc48-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.gc48-feature-item {
  background: var(--gc48-card-bg);
  border-radius: 10px;
  padding: 1.2rem;
  text-align: center;
  border: 1px solid var(--gc48-border);
  transition: all 0.3s ease;
}
.gc48-feature-item:hover { border-color: var(--gc48-primary); }
.gc48-feature-item i, .gc48-feature-item .material-icons {
  font-size: 2.4rem;
  color: var(--gc48-primary);
  margin-bottom: 0.5rem;
}
.gc48-feature-item h4 {
  font-size: 1.3rem;
  color: var(--gc48-text);
  margin-bottom: 0.3rem;
}
.gc48-feature-item p {
  font-size: 1.1rem;
  color: var(--gc48-text);
  opacity: 0.7;
  line-height: 1.4;
}

/* CTA Section */
.gc48-cta-section {
  text-align: center;
  padding: 2rem 1.2rem;
  background: linear-gradient(135deg, var(--gc48-accent), var(--gc48-primary));
  border-radius: 16px;
  margin: 1.5rem 1.2rem;
}
.gc48-cta-section h2 {
  font-size: 2rem;
  color: var(--gc48-white);
  margin-bottom: 0.8rem;
}
.gc48-cta-section p {
  font-size: 1.3rem;
  color: var(--gc48-white);
  opacity: 0.9;
  margin-bottom: 1.5rem;
}

/* Mobile bottom padding */
@media (max-width: 768px) {
  main { padding-bottom: calc(var(--gc48-bottom-nav-h) + 1rem); }
  .gc48-footer { padding-bottom: calc(var(--gc48-bottom-nav-h) + 2rem); }
}

/* Hide bottom nav on desktop */
@media (min-width: 769px) {
  .gc48-bottom-nav { display: none; }
}

/* Payment Icons Row */
.gc48-payment-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  padding: 1rem 0;
}
.gc48-payment-item {
  background: var(--gc48-light-bg);
  padding: 0.8rem 1.2rem;
  border-radius: 8px;
  font-size: 1.2rem;
  color: var(--gc48-text);
  border: 1px solid var(--gc48-border);
}

/* FAQ Accordion */
.gc48-faq-item {
  background: var(--gc48-card-bg);
  border-radius: 10px;
  margin-bottom: 0.8rem;
  overflow: hidden;
  border: 1px solid var(--gc48-border);
}
.gc48-faq-q {
  padding: 1.2rem;
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--gc48-text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.gc48-faq-a {
  padding: 0 1.2rem 1.2rem;
  font-size: 1.2rem;
  color: var(--gc48-text);
  opacity: 0.85;
  line-height: 1.6;
}

/* Achievement Badge */
.gc48-achievement {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--gc48-card-bg);
  padding: 1rem;
  border-radius: 10px;
  margin-bottom: 0.6rem;
  border: 1px solid var(--gc48-border);
}
.gc48-achievement-icon {
  font-size: 2rem;
  color: var(--gc48-warm);
  width: 40px;
  text-align: center;
}
.gc48-achievement-text { flex: 1; }
.gc48-achievement-text strong { color: var(--gc48-text); font-size: 1.3rem; display: block; }
.gc48-achievement-text span { color: var(--gc48-text); opacity: 0.7; font-size: 1.1rem; }

/* Utility */
.gc48-text-center { text-align: center; }
.gc48-mt-1 { margin-top: 1rem; }
.gc48-mb-1 { margin-bottom: 1rem; }
.gc48-hidden { display: none; }
