/**
 * 7p7 Gaming Platform - Core Stylesheet
 * CSS class prefix: gd22-
 * Color palette: #40E0D0 | #4DB6AC | #26A69A | #3A3A3A | #D3D3D3 | #FF5722
 */

:root {
  --gd22-primary: #40E0D0;
  --gd22-secondary: #4DB6AC;
  --gd22-accent: #26A69A;
  --gd22-bg-dark: #3A3A3A;
  --gd22-bg-light: #D3D3D3;
  --gd22-hot: #FF5722;
  --gd22-text-light: #F5F5F5;
  --gd22-text-dark: #2C2C2C;
  --gd22-bg-body: #1A1A2E;
  --gd22-bg-card: #2A2A3E;
  --gd22-bg-header: #16213E;
  --gd22-border: #3A3A5E;
  --gd22-gold: #FFD700;
  font-size: 62.5%;
}

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

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

/* ===== Header ===== */
.gd22-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  max-width: 430px;
  margin: 0 auto;
  height: 5.2rem;
  background: var(--gd22-bg-header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  z-index: 1000;
  border-bottom: 2px solid var(--gd22-primary);
  box-shadow: 0 2px 10px rgba(64,224,208,0.15);
}

.gd22-logo-area {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.gd22-logo-area img {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 0.4rem;
}

.gd22-logo-text {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gd22-primary);
  letter-spacing: 0.05rem;
}

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

.gd22-btn-register,
.gd22-btn-login {
  padding: 0.5rem 1.2rem;
  border: none;
  border-radius: 2rem;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.gd22-btn-register {
  background: linear-gradient(135deg, var(--gd22-hot), #FF8A65);
  color: #fff;
}

.gd22-btn-register:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 12px rgba(255,87,34,0.4);
}

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

.gd22-btn-login:hover {
  background: var(--gd22-primary);
  color: var(--gd22-bg-header);
}

.gd22-menu-btn {
  background: none;
  border: none;
  color: var(--gd22-primary);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.4rem;
}

/* ===== Mobile Menu ===== */
.gd22-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 260px;
  height: 100vh;
  background: var(--gd22-bg-header);
  z-index: 9999;
  transition: right 0.3s ease;
  padding: 6rem 1.5rem 2rem;
  border-left: 2px solid var(--gd22-primary);
}

.gd22-mobile-menu.gd22-menu-active {
  right: 0;
}

.gd22-mobile-menu a {
  display: block;
  padding: 1rem 0;
  color: var(--gd22-text-light);
  text-decoration: none;
  font-size: 1.4rem;
  border-bottom: 1px solid var(--gd22-border);
  transition: color 0.2s;
}

.gd22-mobile-menu a:hover {
  color: var(--gd22-primary);
}

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

.gd22-menu-overlay.gd22-overlay-active {
  display: block;
}

/* ===== Main Content ===== */
main {
  padding-top: 5.2rem;
  min-height: 100vh;
}

@media (max-width: 768px) {
  main {
    padding-bottom: 7rem;
  }
}

.gd22-container {
  padding: 0 1rem;
  max-width: 430px;
  margin: 0 auto;
}

/* ===== Carousel ===== */
.gd22-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 0.8rem;
  margin: 1rem 0;
}

.gd22-slides-wrapper {
  position: relative;
  width: 100%;
  height: 18rem;
}

.gd22-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease;
  cursor: pointer;
}

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

.gd22-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.8rem;
}

.gd22-carousel-dots {
  position: absolute;
  bottom: 0.8rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
}

.gd22-carousel-dot {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: background 0.3s;
}

.gd22-carousel-dot.gd22-dot-active {
  background: var(--gd22-primary);
}

/* ===== Section Titles ===== */
.gd22-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gd22-primary);
  margin: 1.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--gd22-accent);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.gd22-section-title i,
.gd22-section-title .material-icons {
  font-size: 2rem;
}

/* ===== Game Grid ===== */
.gd22-category-label {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--gd22-gold);
  margin: 1.2rem 0 0.6rem;
  padding-left: 0.5rem;
  border-left: 3px solid var(--gd22-hot);
}

.gd22-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.gd22-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s;
  text-decoration: none;
}

.gd22-game-item:hover {
  transform: scale(1.05);
}

.gd22-game-item img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 0.6rem;
  border: 1.5px solid var(--gd22-border);
  object-fit: cover;
}

.gd22-game-item span {
  font-size: 1rem;
  color: var(--gd22-text-light);
  text-align: center;
  margin-top: 0.3rem;
  line-height: 1.2rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== Promo Buttons ===== */
.gd22-promo-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--gd22-hot), #FF8A65);
  color: #fff;
  padding: 1rem 2.5rem;
  border-radius: 3rem;
  font-size: 1.6rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  text-align: center;
}

.gd22-promo-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(255,87,34,0.5);
}

.gd22-promo-link {
  color: var(--gd22-primary);
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

/* ===== Info Cards ===== */
.gd22-info-card {
  background: var(--gd22-bg-card);
  border-radius: 0.8rem;
  padding: 1.2rem;
  margin: 1rem 0;
  border: 1px solid var(--gd22-border);
}

.gd22-info-card h3 {
  color: var(--gd22-primary);
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
}

.gd22-info-card p {
  font-size: 1.2rem;
  line-height: 1.6rem;
  color: var(--gd22-light-text);
}

/* ===== Footer ===== */
.gd22-footer {
  background: var(--gd22-bg-header);
  padding: 2rem 1rem 8rem;
  margin-top: 2rem;
  border-top: 2px solid var(--gd22-primary);
}

.gd22-footer-desc {
  font-size: 1.1rem;
  color: var(--gd22-bg-light);
  line-height: 1.5rem;
  margin-bottom: 1.5rem;
}

.gd22-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.gd22-footer-links a {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: var(--gd22-bg-card);
  color: var(--gd22-text-light);
  border-radius: 1.5rem;
  font-size: 1.1rem;
  text-decoration: none;
  border: 1px solid var(--gd22-border);
  transition: all 0.2s;
}

.gd22-footer-links a:hover {
  background: var(--gd22-primary);
  color: var(--gd22-bg-header);
}

.gd22-footer-copy {
  font-size: 1rem;
  color: var(--gd22-bg-light);
  text-align: center;
  border-top: 1px solid var(--gd22-border);
  padding-top: 1rem;
}

/* ===== Bottom Nav ===== */
.gd22-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 430px;
  margin: 0 auto;
  height: 60px;
  background: var(--gd22-bg-header);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  border-top: 2px solid var(--gd22-primary);
  box-shadow: 0 -2px 10px rgba(64,224,208,0.15);
}

.gd22-bottom-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  background: none;
  border: none;
  color: var(--gd22-bg-light);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  gap: 0.2rem;
}

.gd22-bottom-nav-btn i,
.gd22-bottom-nav-btn .material-icons {
  font-size: 2.2rem;
  transition: transform 0.2s, color 0.2s;
}

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

.gd22-bottom-nav-btn:hover i,
.gd22-bottom-nav-btn:hover .material-icons,
.gd22-bottom-nav-btn:hover span {
  color: var(--gd22-primary);
  transform: scale(1.1);
}

.gd22-bottom-nav-btn.gd22-active i,
.gd22-bottom-nav-btn.gd22-active .material-icons,
.gd22-bottom-nav-btn.gd22-active span {
  color: var(--gd22-primary);
}

@media (min-width: 769px) {
  .gd22-bottom-nav { display: none; }
  main { padding-bottom: 0; }
  .gd22-footer { padding-bottom: 2rem; }
}

/* ===== Utility ===== */
.gd22-text-center { text-align: center; }
.gd22-mt-1 { margin-top: 1rem; }
.gd22-mt-2 { margin-top: 2rem; }
.gd22-mb-1 { margin-bottom: 1rem; }
.gd22-mb-2 { margin-bottom: 2rem; }
.gd22-flex-center { display: flex; align-items: center; justify-content: center; }

/* ===== Help Page Styles ===== */
.gd22-help-section {
  background: var(--gd22-bg-card);
  border-radius: 0.8rem;
  padding: 1.2rem;
  margin: 1rem 0;
  border-left: 3px solid var(--gd22-primary);
}

.gd22-help-section h2 {
  color: var(--gd22-primary);
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
}

.gd22-help-section h3 {
  color: var(--gd22-secondary);
  font-size: 1.3rem;
  margin: 0.8rem 0 0.4rem;
}

.gd22-help-section p,
.gd22-help-section li {
  font-size: 1.2rem;
  line-height: 1.6rem;
  color: var(--gd22-bg-light);
}

.gd22-help-section ul, .gd22-help-section ol {
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
}

.gd22-faq-item {
  margin-bottom: 0.8rem;
  padding: 0.8rem;
  background: rgba(64,224,208,0.05);
  border-radius: 0.5rem;
}

.gd22-faq-item strong {
  color: var(--gd22-primary);
  font-size: 1.2rem;
}

.gd22-faq-item p {
  margin-top: 0.3rem;
}

/* ===== Partners ===== */
.gd22-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin: 1rem 0;
}

.gd22-partners span {
  background: var(--gd22-bg-card);
  padding: 0.3rem 0.8rem;
  border-radius: 1rem;
  font-size: 1rem;
  color: var(--gd22-bg-light);
  border: 1px solid var(--gd22-border);
}

/* ===== Winners Ticker ===== */
.gd22-winners-ticker {
  background: var(--gd22-bg-card);
  border-radius: 0.8rem;
  padding: 0.8rem;
  margin: 1rem 0;
}

.gd22-winner-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--gd22-border);
  font-size: 1.1rem;
}

.gd22-winner-row:last-child {
  border-bottom: none;
}

.gd22-winner-amount {
  color: var(--gd22-gold);
  font-weight: 600;
}

/* ===== Payment Icons ===== */
.gd22-payment-icons {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  justify-content: center;
  margin: 1rem 0;
}

.gd22-payment-icons span {
  background: var(--gd22-bg-card);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 1.1rem;
  color: var(--gd22-primary);
  border: 1px solid var(--gd22-border);
}

/* ===== Testimonials ===== */
.gd22-testimonial {
  background: var(--gd22-bg-card);
  border-radius: 0.8rem;
  padding: 1rem;
  margin: 0.6rem 0;
  border-left: 3px solid var(--gd22-gold);
}

.gd22-testimonial p {
  font-size: 1.1rem;
  line-height: 1.5rem;
  font-style: italic;
  color: var(--gd22-bg-light);
}

.gd22-testimonial strong {
  color: var(--gd22-primary);
  font-size: 1rem;
}
