/**
 * 111bed Gaming Platform - Core Stylesheet
 * All classes use prefix "g9d2-" for namespace isolation
 * Mobile-first design, max-width 430px
 */

:root {
  --g9d2-primary: #FFC0CB;
  --g9d2-bg: #273746;
  --g9d2-bg-dark: #1a2632;
  --g9d2-bg-card: #2c3e50;
  --g9d2-text: #FFC0CB;
  --g9d2-text-light: #f5f5f5;
  --g9d2-accent1: #00CED1;
  --g9d2-accent2: #F08080;
  --g9d2-accent3: #FF69B4;
  --g9d2-radius: 8px;
  --g9d2-shadow: 0 2px 12px rgba(0,0,0,0.3);
  --g9d2-transition: all 0.3s ease;
}

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

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--g9d2-bg);
  color: var(--g9d2-text-light);
  line-height: 1.5rem;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ===== HEADER / TOP NAV ===== */
.g9d2-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 1000;
  background: linear-gradient(135deg, var(--g9d2-bg-dark), var(--g9d2-bg));
  border-bottom: 2px solid var(--g9d2-accent3);
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.g9d2-logo-area {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.g9d2-logo-area img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.g9d2-logo-area span {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--g9d2-accent3);
  letter-spacing: 0.5px;
}

.g9d2-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.g9d2-btn-register, .g9d2-btn-login {
  padding: 0.5rem 1.2rem;
  border: none;
  border-radius: 20px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--g9d2-transition);
  min-height: 32px;
}

.g9d2-btn-register {
  background: linear-gradient(135deg, var(--g9d2-accent3), var(--g9d2-accent2));
  color: #fff;
}

.g9d2-btn-login {
  background: transparent;
  color: var(--g9d2-accent1);
  border: 1.5px solid var(--g9d2-accent1);
}

.g9d2-btn-register:hover, .g9d2-btn-login:hover {
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(255,105,180,0.4);
}

.g9d2-menu-toggle {
  background: none;
  border: none;
  color: var(--g9d2-primary);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.3rem;
  display: flex;
  align-items: center;
}

/* ===== MOBILE MENU ===== */
.g9d2-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 260px;
  height: 100vh;
  background: var(--g9d2-bg-dark);
  z-index: 9999;
  transition: right 0.35s ease;
  padding: 2rem 1.5rem;
  overflow-y: auto;
}

.g9d2-menu-active { right: 0; }

.g9d2-mobile-menu .g9d2-menu-close {
  background: none;
  border: none;
  color: var(--g9d2-accent2);
  font-size: 2.2rem;
  cursor: pointer;
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.g9d2-mobile-menu a {
  display: block;
  padding: 1.2rem 0;
  color: var(--g9d2-text-light);
  text-decoration: none;
  font-size: 1.4rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: var(--g9d2-transition);
}

.g9d2-mobile-menu a:hover {
  color: var(--g9d2-accent3);
  padding-left: 0.8rem;
}

.g9d2-menu-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100vh;
  background: rgba(0,0,0,0.6);
  z-index: 9998;
  display: none;
}

.g9d2-overlay-active { display: block; }

/* ===== CAROUSEL ===== */
.g9d2-carousel {
  position: relative;
  width: 100%;
  margin-top: 52px;
  overflow: hidden;
  border-radius: 0 0 var(--g9d2-radius) var(--g9d2-radius);
}

.g9d2-carousel-slide {
  display: none;
  width: 100%;
  cursor: pointer;
}

.g9d2-slide-active {
  display: block;
  animation: g9d2fadeIn 0.5s ease;
}

@keyframes g9d2fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.g9d2-carousel-slide img {
  width: 100%;
  height: auto;
  display: block;
}

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

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

.g9d2-dot-active {
  background: var(--g9d2-accent3);
  transform: scale(1.3);
}

/* ===== MAIN CONTENT ===== */
.g9d2-main {
  padding: 1rem;
  padding-bottom: 2rem;
}

.g9d2-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
}

.g9d2-section {
  margin-bottom: 2rem;
}

.g9d2-section-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--g9d2-accent1);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--g9d2-accent3);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ===== GAME GRID ===== */
.g9d2-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}

.g9d2-game-card {
  text-align: center;
  cursor: pointer;
  transition: var(--g9d2-transition);
  border-radius: var(--g9d2-radius);
  padding: 0.5rem;
  background: var(--g9d2-bg-card);
}

.g9d2-game-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255,105,180,0.3);
}

.g9d2-game-card img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--g9d2-radius);
  object-fit: cover;
}

.g9d2-game-card .g9d2-game-name {
  font-size: 1rem;
  color: var(--g9d2-text-light);
  margin-top: 0.3rem;
  line-height: 1.2rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ===== CONTENT MODULES ===== */
.g9d2-wrapper {
  background: var(--g9d2-bg-card);
  border-radius: var(--g9d2-radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--g9d2-shadow);
}

.g9d2-wrapper h2 {
  font-size: 1.5rem;
  color: var(--g9d2-accent3);
  margin-bottom: 1rem;
}

.g9d2-wrapper h3 {
  font-size: 1.3rem;
  color: var(--g9d2-accent1);
  margin: 0.8rem 0 0.5rem;
}

.g9d2-wrapper p {
  font-size: 1.2rem;
  line-height: 1.7rem;
  color: var(--g9d2-text-light);
  margin-bottom: 0.8rem;
}

.g9d2-wrapper ul {
  padding-left: 1.5rem;
  margin-bottom: 0.8rem;
}

.g9d2-wrapper li {
  font-size: 1.2rem;
  line-height: 1.7rem;
  color: var(--g9d2-text-light);
  margin-bottom: 0.4rem;
}

/* ===== PROMO BUTTON ===== */
.g9d2-btn-promo {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: linear-gradient(135deg, var(--g9d2-accent3), var(--g9d2-accent2));
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: var(--g9d2-transition);
  text-decoration: none;
  text-align: center;
}

.g9d2-btn-promo:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(255,105,180,0.5);
}

/* ===== INTERNAL LINKS ===== */
.g9d2-internal-link {
  color: var(--g9d2-accent1);
  text-decoration: underline;
  transition: var(--g9d2-transition);
}

.g9d2-internal-link:hover {
  color: var(--g9d2-accent3);
}

/* ===== WINNER SHOWCASE ===== */
.g9d2-winner-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.g9d2-winner-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.8rem;
  background: rgba(0,206,209,0.08);
  border-radius: var(--g9d2-radius);
  border-left: 3px solid var(--g9d2-accent1);
}

.g9d2-winner-name {
  font-size: 1.1rem;
  color: var(--g9d2-accent1);
  font-weight: 600;
}

.g9d2-winner-amount {
  font-size: 1.2rem;
  color: var(--g9d2-accent3);
  font-weight: 700;
}

/* ===== PAYMENT METHODS ===== */
.g9d2-payment-grid {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.g9d2-payment-item {
  text-align: center;
  padding: 0.8rem;
  background: rgba(255,255,255,0.05);
  border-radius: var(--g9d2-radius);
  min-width: 80px;
}

.g9d2-payment-item span {
  display: block;
  font-size: 1.1rem;
  color: var(--g9d2-accent1);
  margin-top: 0.3rem;
}

/* ===== RTP TABLE ===== */
.g9d2-rtp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.g9d2-rtp-item {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0.8rem;
  background: rgba(0,206,209,0.06);
  border-radius: 6px;
  font-size: 1.1rem;
}

.g9d2-rtp-item .g9d2-rtp-val {
  color: var(--g9d2-accent3);
  font-weight: 600;
}

/* ===== FOOTER ===== */
.g9d2-footer {
  background: var(--g9d2-bg-dark);
  padding: 2rem 1rem 1rem;
  text-align: center;
}

.g9d2-footer p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.6rem;
  margin-bottom: 0.6rem;
}

.g9d2-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 1rem 0;
}

.g9d2-footer-links a {
  font-size: 1.1rem;
  color: var(--g9d2-accent1);
  text-decoration: none;
  transition: var(--g9d2-transition);
}

.g9d2-footer-links a:hover {
  color: var(--g9d2-accent3);
}

.g9d2-footer-copy {
  font-size: 1rem;
  color: rgba(255,255,255,0.4);
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* ===== BOTTOM NAV ===== */
.g9d2-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 1000;
  background: linear-gradient(180deg, var(--g9d2-bg-dark), #111a24);
  border-top: 2px solid var(--g9d2-accent3);
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 60px;
  padding: 0 0.3rem;
}

.g9d2-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 54px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: var(--g9d2-transition);
  border-radius: 8px;
  padding: 0.3rem;
}

.g9d2-bottom-nav-item:hover, .g9d2-bottom-nav-item:focus {
  color: var(--g9d2-accent3);
  transform: scale(1.1);
}

.g9d2-bottom-nav-item.g9d2-nav-active {
  color: var(--g9d2-accent3);
}

.g9d2-bottom-nav-item i,
.g9d2-bottom-nav-item .material-icons {
  font-size: 22px;
  line-height: 1;
}

.g9d2-bottom-nav-item ion-icon {
  font-size: 22px;
}

.g9d2-bottom-nav-item span {
  font-size: 1rem;
  margin-top: 0.15rem;
  line-height: 1.1rem;
}

/* ===== FAQ SECTION ===== */
.g9d2-faq-item {
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding-bottom: 0.8rem;
}

.g9d2-faq-item h3 {
  font-size: 1.2rem;
  color: var(--g9d2-accent1);
  margin-bottom: 0.4rem;
}

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

/* ===== HELP PAGE CONTENT ===== */
.g9d2-help-content {
  padding: 1rem;
}

.g9d2-step-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  margin-bottom: 1rem;
  padding: 0.8rem;
  background: rgba(0,206,209,0.06);
  border-radius: var(--g9d2-radius);
}

.g9d2-step-num {
  background: var(--g9d2-accent3);
  color: #fff;
  min-width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  flex-shrink: 0;
}

.g9d2-step-text {
  font-size: 1.2rem;
  color: var(--g9d2-text-light);
  line-height: 1.6rem;
}

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

@media (max-width: 768px) {
  .g9d2-main,
  .g9d2-help-content {
    padding-bottom: 80px;
  }
}
