/**
 * 222bet APK - Main Stylesheet
 * Prefix: gca9-
 * Color Palette: #FFC0CB | #1A1A2E | #00695C | #004D40 | #F0FDFF
 * Dark backgrounds, light text for mobile readability
 */

/* CSS Variables */
:root {
  --gca9-primary: #00695C;
  --gca9-secondary: #FFC0CB;
  --gca9-bg-dark: #1A1A2E;
  --gca9-bg-deep: #004D40;
  --gca9-text-light: #F0FDFF;
  --gca9-accent: #FFC0CB;
  --gca9-card-bg: #1e2a45;
  --gca9-border: #2a3a5c;
  --gca9-hover: #00897B;
  --gca9-gold: #FFD700;
  font-size: 62.5%;
}

/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--gca9-bg-dark);
  color: var(--gca9-text-light);
  line-height: 1.5rem;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
}
a { text-decoration: none; color: var(--gca9-accent); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* Header */
.gca9-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: var(--gca9-bg-deep);
  z-index: 1000;
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--gca9-primary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.gca9-logo-area {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
}
.gca9-logo-area img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}
.gca9-logo-area span {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gca9-secondary);
  white-space: nowrap;
}
.gca9-header-btns {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.gca9-btn-reg {
  background: var(--gca9-primary);
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  min-height: 36px;
  transition: all 0.2s;
}
.gca9-btn-reg:hover { background: var(--gca9-hover); transform: scale(1.03); }
.gca9-btn-login {
  background: transparent;
  color: var(--gca9-secondary);
  border: 1.5px solid var(--gca9-secondary);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  min-height: 36px;
  transition: all 0.2s;
}
.gca9-btn-login:hover { background: rgba(255,192,203,0.15); }
.gca9-menu-toggle {
  background: none;
  border: none;
  color: var(--gca9-text-light);
  font-size: 2rem;
  cursor: pointer;
  padding: 0 0.3rem;
  line-height: 1;
}

/* Mobile Menu */
.gca9-menu-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 9998;
  display: none;
}
.gca9-overlay-active { display: block; }
.gca9-mobile-menu {
  position: fixed;
  top: 0; right: -280px;
  width: 260px;
  height: 100%;
  background: var(--gca9-bg-deep);
  z-index: 9999;
  transition: right 0.3s ease;
  padding: 2rem 1.5rem;
  overflow-y: auto;
}
.gca9-menu-active { right: 0; }
.gca9-mobile-menu .gca9-menu-close {
  background: none;
  border: none;
  color: var(--gca9-text-light);
  font-size: 2.2rem;
  cursor: pointer;
  position: absolute;
  top: 1rem; right: 1rem;
}
.gca9-mobile-menu ul { margin-top: 3rem; }
.gca9-mobile-menu li { margin-bottom: 1.2rem; }
.gca9-mobile-menu a {
  color: var(--gca9-text-light);
  font-size: 1.4rem;
  font-weight: 500;
  display: block;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  transition: color 0.2s;
}
.gca9-mobile-menu a:hover { color: var(--gca9-secondary); }

/* Main Content */
main {
  padding-top: 60px;
  padding-bottom: 20px;
  min-height: 100vh;
}

/* Carousel */
.gca9-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 0 0 12px 12px;
}
.gca9-slides-wrapper {
  display: flex;
  transition: none;
}
.gca9-slide {
  display: none;
  width: 100%;
  cursor: pointer;
}
.gca9-slide-active { display: block; }
.gca9-slide img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.gca9-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}
.gca9-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  border: none;
}
.gca9-dot-active { background: var(--gca9-secondary); }

/* Sections */
.gca9-section {
  padding: 1.5rem 1rem;
}
.gca9-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gca9-secondary);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--gca9-primary);
}

/* Game Grid */
.gca9-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}
.gca9-game-item {
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s;
  border-radius: 8px;
  overflow: hidden;
}
.gca9-game-item:hover { transform: scale(1.05); }
.gca9-game-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  border: 1.5px solid var(--gca9-border);
}
.gca9-game-name {
  font-size: 1.1rem;
  margin-top: 0.3rem;
  color: var(--gca9-text-light);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gca9-cat-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gca9-accent);
  margin: 1.5rem 0 0.8rem;
  padding-left: 0.5rem;
  border-left: 3px solid var(--gca9-primary);
}

/* Cards */
.gca9-card {
  background: var(--gca9-card-bg);
  border-radius: 10px;
  padding: 1.2rem;
  margin-bottom: 1rem;
  border: 1px solid var(--gca9-border);
}
.gca9-card h3 {
  font-size: 1.5rem;
  color: var(--gca9-secondary);
  margin-bottom: 0.6rem;
}
.gca9-card p {
  font-size: 1.2rem;
  color: var(--gca9-text-light);
  line-height: 1.6rem;
}

/* Promo Buttons */
.gca9-promo-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--gca9-primary), var(--gca9-hover));
  color: #fff;
  padding: 0.8rem 2rem;
  border-radius: 25px;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  text-align: center;
  margin: 0.8rem 0;
  transition: all 0.3s;
  box-shadow: 0 3px 10px rgba(0,105,92,0.4);
}
.gca9-promo-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,105,92,0.6);
}
.gca9-promo-text {
  color: var(--gca9-secondary);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  font-size: 1.2rem;
}

/* Footer */
.gca9-footer {
  background: var(--gca9-bg-deep);
  padding: 2rem 1rem 6rem;
  border-top: 2px solid var(--gca9-primary);
  margin-top: 2rem;
}
.gca9-footer-brand {
  font-size: 1.2rem;
  color: rgba(240,253,255,0.7);
  margin-bottom: 1rem;
  line-height: 1.6rem;
}
.gca9-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.gca9-footer-links a {
  color: var(--gca9-secondary);
  font-size: 1.1rem;
  padding: 0.3rem 0.6rem;
  background: rgba(255,192,203,0.1);
  border-radius: 4px;
  transition: background 0.2s;
}
.gca9-footer-links a:hover { background: rgba(255,192,203,0.2); }
.gca9-footer-copy {
  font-size: 1rem;
  color: rgba(240,253,255,0.5);
  text-align: center;
  margin-top: 1rem;
}

/* Bottom Navigation */
.gca9-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: var(--gca9-bg-deep);
  border-top: 1.5px solid var(--gca9-primary);
  z-index: 1000;
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 60px;
  padding: 0 0.3rem;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
}
.gca9-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 54px;
  background: none;
  border: none;
  color: rgba(240,253,255,0.6);
  cursor: pointer;
  transition: all 0.2s;
  padding: 0.4rem;
  border-radius: 8px;
}
.gca9-nav-btn:hover,
.gca9-nav-btn-active {
  color: var(--gca9-secondary);
  background: rgba(255,192,203,0.1);
}
.gca9-nav-btn i,
.gca9-nav-btn .material-icons,
.gca9-nav-btn ion-icon,
.gca9-nav-btn bi {
  font-size: 22px;
  margin-bottom: 2px;
}
.gca9-nav-btn span {
  font-size: 1rem;
  white-space: nowrap;
}

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

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

/* Text helpers */
.gca9-text-center { text-align: center; }
.gca9-mt-1 { margin-top: 1rem; }
.gca9-mb-1 { margin-bottom: 1rem; }
.gca9-mb-2 { margin-bottom: 2rem; }

/* Responsive fine-tuning */
@media (max-width: 360px) {
  .gca9-game-grid { grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
  .gca9-logo-area span { font-size: 1.2rem; }
  .gca9-btn-reg, .gca9-btn-login { padding: 0.4rem 0.7rem; font-size: 1.1rem; }
}
