/**
 * Oddspedia - Core Stylesheet
 * Class prefix: g157-
 * Color palette: #FF1493 (pink accent) | #FF91A4 (aux) | #273746 (dark bg) | #FAFAFA (text) | #FFCCCB (highlight)
 * Mobile-first design, max-width 430px, rem units with 62.5% root
 */

/* CSS Variables */
:root {
  --g157-primary: #FF1493;
  --g157-primary-dark: #cc1177;
  --g157-primary-light: #FF91A4;
  --g157-bg: #273746;
  --g157-bg-light: #2e4152;
  --g157-bg-card: #1e2f3d;
  --g157-text: #FAFAFA;
  --g157-text-muted: #c8d6e0;
  --g157-text-dim: #8fa3b3;
  --g157-border: #3a5060;
  --g157-highlight: #FFCCCB;
  --g157-radius: 1.2rem;
  --g157-radius-sm: 0.8rem;
  --g157-shadow: 0 0.4rem 1.2rem rgba(255, 20, 147, 0.2);
  font-size: 62.5%;
}

/* Reset & Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--g157-bg);
  color: var(--g157-text);
  font-size: 1.6rem;
  line-height: 1.5;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--g157-primary-light);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--g157-primary);
}

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

/* ===== HEADER ===== */
.g157-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 5.6rem;
  background: var(--g157-bg);
  border-bottom: 0.1rem solid var(--g157-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.2rem;
  z-index: 1000;
}

.g157-header-left {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.g157-logo {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 0.6rem;
}

.g157-site-name {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--g157-primary);
  white-space: nowrap;
}

.g157-header-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.g157-btn-register,
.g157-btn-login {
  padding: 0.6rem 1.4rem;
  border-radius: var(--g157-radius-sm);
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.g157-btn-register {
  background: var(--g157-primary);
  color: #fff;
}

.g157-btn-register:hover {
  background: var(--g157-primary-dark);
  transform: scale(1.03);
}

.g157-btn-login {
  background: transparent;
  color: var(--g157-primary);
  border: 0.1rem solid var(--g157-primary);
}

.g157-btn-login:hover {
  background: var(--g157-primary);
  color: #fff;
}

.g157-menu-toggle {
  background: none;
  border: none;
  color: var(--g157-text);
  font-size: 2.4rem;
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

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

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

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

.g157-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 0.1rem solid var(--g157-border);
}

.g157-menu-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--g157-primary);
}

.g157-menu-close {
  background: none;
  border: none;
  color: var(--g157-text);
  font-size: 2.4rem;
  cursor: pointer;
}

.g157-menu-links {
  list-style: none;
}

.g157-menu-links li {
  margin-bottom: 0.3rem;
}

.g157-menu-links a {
  display: block;
  padding: 1rem 1.2rem;
  color: var(--g157-text);
  font-size: 1.5rem;
  border-radius: var(--g157-radius-sm);
  transition: background 0.2s ease;
}

.g157-menu-links a:hover {
  background: var(--g157-bg-card);
  color: var(--g157-primary);
}

/* ===== MAIN CONTENT ===== */
.g157-main {
  margin-top: 5.6rem;
  padding: 0 1rem 8rem;
  min-height: 60vh;
}

/* ===== CAROUSEL ===== */
.g157-carousel {
  position: relative;
  width: 100%;
  border-radius: var(--g157-radius);
  overflow: hidden;
  margin-bottom: 2rem;
  cursor: pointer;
}

.g157-slide {
  display: none;
  width: 100%;
  aspect-ratio: 16/7;
}

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

.g157-slide-active {
  display: block;
}

.g157-carousel-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.6rem;
}

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

.g157-dot-active {
  background: var(--g157-primary);
  width: 2rem;
  border-radius: 0.4rem;
}

/* ===== SECTION HEADERS ===== */
.g157-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--g157-text);
  margin: 2.5rem 0 1.5rem;
  padding-left: 1rem;
  border-left: 0.4rem solid var(--g157-primary);
}

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

.g157-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s ease;
}

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

.g157-game-item:active {
  transform: scale(0.95);
}

.g157-game-icon {
  width: 7rem;
  height: 7rem;
  border-radius: 1.2rem;
  object-fit: cover;
  border: 0.15rem solid var(--g157-border);
  margin-bottom: 0.5rem;
}

.g157-game-name {
  font-size: 1.1rem;
  color: var(--g157-text-muted);
  text-align: center;
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  max-height: 2.8rem;
}

/* ===== CONTENT CARDS ===== */
.g157-card {
  background: var(--g157-bg-card);
  border-radius: var(--g157-radius);
  padding: 2rem;
  margin-bottom: 1.5rem;
  border: 0.1rem solid var(--g157-border);
}

.g157-card h2,
.g157-card h3 {
  color: var(--g157-primary);
  margin-bottom: 1rem;
}

.g157-card h2 {
  font-size: 1.8rem;
}

.g157-card h3 {
  font-size: 1.5rem;
}

.g157-card p {
  color: var(--g157-text-muted);
  margin-bottom: 1rem;
  line-height: 1.6;
}

/* ===== PROMO BUTTON ===== */
.g157-promo-btn {
  display: inline-block;
  padding: 1.2rem 2.4rem;
  background: var(--g157-primary);
  color: #fff;
  border: none;
  border-radius: var(--g157-radius);
  font-size: 1.5rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
  text-decoration: none;
}

.g157-promo-btn:hover {
  background: var(--g157-primary-dark);
  transform: translateY(-0.2rem);
  box-shadow: var(--g157-shadow);
}

.g157-promo-btn:active {
  transform: scale(0.97);
}

.g157-promo-btn-outline {
  background: transparent;
  border: 0.15rem solid var(--g157-primary);
  color: var(--g157-primary);
}

.g157-promo-btn-outline:hover {
  background: var(--g157-primary);
  color: #fff;
}

/* ===== PROMO TEXT LINK ===== */
.g157-promo-link {
  color: var(--g157-primary);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.g157-promo-link:hover {
  color: var(--g157-primary-light);
}

/* ===== BOTTOM NAVIGATION ===== */
.g157-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 6rem;
  background: var(--g157-bg-light);
  border-top: 0.1rem solid var(--g157-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  padding: 0 0.5rem;
}

.g157-bottom-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 6rem;
  min-height: 5rem;
  background: none;
  border: none;
  color: var(--g157-text-dim);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  gap: 0.3rem;
  border-radius: 0.8rem;
}

.g157-bottom-nav-btn:hover {
  color: var(--g157-primary);
  background: rgba(255, 20, 147, 0.08);
}

.g157-bottom-nav-btn .g157-nav-icon {
  font-size: 2.4rem;
  line-height: 1;
}

.g157-bottom-nav-btn .g157-nav-label {
  font-size: 1rem;
  line-height: 1.2;
  white-space: nowrap;
}

.g157-nav-active {
  color: var(--g157-primary) !important;
}

.g157-nav-active .g157-nav-icon {
  filter: drop-shadow(0 0 0.4rem var(--g157-primary));
}

/* ===== FOOTER ===== */
.g157-footer {
  background: var(--g157-bg-light);
  padding: 2.5rem 1.5rem;
  border-top: 0.1rem solid var(--g157-border);
  margin-top: 2rem;
}

.g157-footer-brand {
  margin-bottom: 2rem;
}

.g157-footer-brand p {
  color: var(--g157-text-muted);
  font-size: 1.3rem;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.g157-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.g157-footer-links a {
  color: var(--g157-text-muted);
  font-size: 1.3rem;
  padding: 0.4rem 0.8rem;
  border-radius: var(--g157-radius-sm);
  transition: all 0.2s ease;
}

.g157-footer-links a:hover {
  color: var(--g157-primary);
  background: rgba(255, 20, 147, 0.1);
}

.g157-footer-promos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 2rem;
  justify-content: center;
}

.g157-footer-promos .g157-promo-btn {
  padding: 0.8rem 1.6rem;
  font-size: 1.2rem;
}

.g157-footer-copy {
  text-align: center;
  color: var(--g157-text-dim);
  font-size: 1.2rem;
  padding-top: 1.5rem;
  border-top: 0.1rem solid var(--g157-border);
}

/* ===== CONTENT MODULES ===== */
.g157-hero-text {
  text-align: center;
  padding: 2rem 0.5rem;
}

.g157-hero-text h1 {
  font-size: 2.2rem;
  color: var(--g157-primary);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.g157-hero-text p {
  color: var(--g157-text-muted);
  font-size: 1.4rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.g157-text-content {
  color: var(--g157-text-muted);
  font-size: 1.4rem;
  line-height: 1.7;
}

.g157-text-content p {
  margin-bottom: 1.2rem;
}

.g157-text-content strong {
  color: var(--g157-text);
}

/* FAQ Styles */
.g157-faq-item {
  border-bottom: 0.1rem solid var(--g157-border);
  padding: 1.2rem 0;
}

.g157-faq-item:last-child {
  border-bottom: none;
}

.g157-faq-q {
  font-weight: 600;
  color: var(--g157-text);
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.g157-faq-a {
  color: var(--g157-text-muted);
  font-size: 1.3rem;
  line-height: 1.6;
  padding-left: 1rem;
}

/* Highlight box */
.g157-highlight-box {
  background: linear-gradient(135deg, rgba(255, 20, 147, 0.15), rgba(255, 145, 164, 0.08));
  border: 0.1rem solid var(--g157-primary);
  border-radius: var(--g157-radius);
  padding: 1.5rem;
  margin: 1.5rem 0;
  text-align: center;
}

.g157-highlight-box p {
  color: var(--g157-text);
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

/* Winner showcase */
.g157-winner-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--g157-bg-card);
  border-radius: var(--g157-radius-sm);
  margin-bottom: 0.8rem;
}

.g157-winner-avatar {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: var(--g157-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.8rem;
  flex-shrink: 0;
}

.g157-winner-info {
  flex: 1;
}

.g157-winner-name {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--g157-text);
}

.g157-winner-game {
  font-size: 1.1rem;
  color: var(--g157-text-dim);
}

.g157-winner-amount {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--g157-primary);
}

/* Testimonial */
.g157-testimonial {
  background: var(--g157-bg-card);
  border-radius: var(--g157-radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
  border-left: 0.3rem solid var(--g157-primary);
}

.g157-testimonial-text {
  color: var(--g157-text-muted);
  font-size: 1.3rem;
  font-style: italic;
  margin-bottom: 0.8rem;
  line-height: 1.5;
}

.g157-testimonial-author {
  color: var(--g157-primary);
  font-size: 1.2rem;
  font-weight: 600;
}

/* Payment icons row */
.g157-payment-row {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin: 1.5rem 0;
}

.g157-payment-item {
  background: var(--g157-bg-card);
  border-radius: var(--g157-radius-sm);
  padding: 0.8rem 1.2rem;
  border: 0.1rem solid var(--g157-border);
  color: var(--g157-text-muted);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

  .g157-main {
    padding-bottom: 2rem;
  }
}

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

@media (max-width: 360px) {
  .g157-game-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .g157-hero-text h1 {
    font-size: 1.8rem;
  }
}
