/**
 * XPinay Core Stylesheet
 * File: css/design-3e25.css
 * Prefix: g25c-
 * Palette: #F4A460 | #FFEFD5 | #FFF8DC | #0F0F23 | #CD853F | #CCCCCC
 */

:root {
  --g25c-primary: #F4A460;
  --g25c-secondary: #CD853F;
  --g25c-bg: #0F0F23;
  --g25c-bg-light: #1a1a3e;
  --g25c-bg-card: #161638;
  --g25c-text: #FFEFD5;
  --g25c-text-light: #FFF8DC;
  --g25c-text-muted: #CCCCCC;
  --g25c-accent: #F4A460;
  --g25c-accent-hover: #e8943a;
  --g25c-border: #2a2a5a;
  --g25c-radius: 8px;
  --g25c-radius-lg: 12px;
  --g25c-shadow: 0 2px 8px rgba(0,0,0,0.3);
  --g25c-transition: all 0.3s ease;
  --g25c-header-h: 56px;
  --g25c-bnav-h: 62px;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  background: var(--g25c-bg);
  color: var(--g25c-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
}
a { color: var(--g25c-primary); text-decoration: none; transition: var(--g25c-transition); }
a:hover { color: var(--g25c-accent-hover); }
img { max-width: 100%; height: auto; display: block; }

/* Header */
.g25c-header {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--g25c-header-h);
  background: var(--g25c-bg);
  border-bottom: 1px solid var(--g25c-border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.2rem;
  z-index: 1000;
  max-width: 430px; margin: 0 auto;
}
.g25c-logo { display: flex; align-items: center; gap: 0.6rem; }
.g25c-logo img { width: 28px; height: 28px; border-radius: 6px; }
.g25c-logo span { font-size: 1.6rem; font-weight: 700; color: var(--g25c-primary); letter-spacing: 0.5px; }
.g25c-header-actions { display: flex; align-items: center; gap: 0.8rem; }
.g25c-btn-register, .g25c-btn-login {
  padding: 0.5rem 1.2rem; border: none; border-radius: var(--g25c-radius);
  font-size: 1.2rem; font-weight: 600; cursor: pointer; transition: var(--g25c-transition);
}
.g25c-btn-register {
  background: var(--g25c-primary); color: var(--g25c-bg);
}
.g25c-btn-register:hover { background: var(--g25c-accent-hover); transform: scale(1.05); }
.g25c-btn-login {
  background: transparent; color: var(--g25c-primary);
  border: 1px solid var(--g25c-primary);
}
.g25c-btn-login:hover { background: var(--g25c-primary); color: var(--g25c-bg); }
.g25c-menu-toggle {
  background: none; border: none; color: var(--g25c-text);
  font-size: 2rem; cursor: pointer; padding: 0.4rem;
  display: flex; align-items: center;
}

/* Mobile Menu */
.g25c-menu-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6); z-index: 9998;
  display: none; opacity: 0; transition: opacity 0.3s ease;
}
.g25c-mobile-menu {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: 260px; background: var(--g25c-bg-light);
  z-index: 9999; transform: translateX(-100%);
  visibility: hidden; transition: transform 0.3s ease, visibility 0.3s ease;
  padding: 2rem 1.5rem; overflow-y: auto;
}
.g25c-mobile-menu h3 {
  font-size: 1.6rem; color: var(--g25c-primary); margin-bottom: 1.5rem;
  padding-bottom: 0.8rem; border-bottom: 1px solid var(--g25c-border);
}
.g25c-mobile-menu a {
  display: block; padding: 1rem 0.8rem; color: var(--g25c-text);
  font-size: 1.4rem; border-radius: var(--g25c-radius);
  transition: var(--g25c-transition);
}
.g25c-mobile-menu a:hover { background: var(--g25c-bg); color: var(--g25c-primary); }

/* Bottom Navigation */
.g25c-bnav {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: var(--g25c-bnav-h);
  background: linear-gradient(180deg, #12123a 0%, var(--g25c-bg) 100%);
  border-top: 1px solid var(--g25c-border);
  display: flex; align-items: center; justify-content: space-around;
  z-index: 1000; max-width: 430px; margin: 0 auto;
  padding: 0 0.4rem;
}
.g25c-bnav-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 60px; min-height: 50px; background: none; border: none;
  color: var(--g25c-text-muted); cursor: pointer; transition: var(--g25c-transition);
  padding: 0.3rem; border-radius: var(--g25c-radius);
}
.g25c-bnav-btn i, .g25c-bnav-btn .material-icons-outlined {
  font-size: 22px; margin-bottom: 2px;
}
.g25c-bnav-btn span { font-size: 1rem; font-weight: 500; }
.g25c-bnav-btn:hover, .g25c-bnav-active {
  color: var(--g25c-primary); transform: scale(1.08);
}
.g25c-bnav-btn:active { transform: scale(0.95); }
.g25c-bnav-active {
  background: rgba(244,164,96,0.1); border-radius: var(--g25c-radius);
}

/* Main Content */
.g25c-main {
  margin-top: var(--g25c-header-h);
  padding-bottom: calc(var(--g25c-bnav-h) + 2rem);
  min-height: 100vh;
}
@media (min-width: 769px) {
  .g25c-bnav { display: none; }
  .g25c-main { padding-bottom: 3rem; }
  body { max-width: 430px; }
}

/* Carousel */
.g25c-carousel {
  position: relative; overflow: hidden;
  border-radius: 0 0 var(--g25c-radius-lg) var(--g25c-radius-lg);
  aspect-ratio: 16/8;
}
.g25c-slide {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0; transition: opacity 0.6s ease; cursor: pointer;
}
.g25c-slide-active { opacity: 1; }
.g25c-slide img { width: 100%; height: 100%; object-fit: cover; }
.g25c-carousel-dots {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px;
}
.g25c-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.4); cursor: pointer;
  transition: var(--g25c-transition); border: none;
}
.g25c-dot-active { background: var(--g25c-primary); transform: scale(1.2); }

/* Sections */
.g25c-section { padding: 2rem 1.2rem; }
.g25c-section-title {
  font-size: 1.8rem; font-weight: 700; color: var(--g25c-primary);
  margin-bottom: 1.2rem; padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--g25c-secondary);
  display: flex; align-items: center; gap: 0.6rem;
}
.g25c-section-title i { font-size: 2rem; }

/* Game Grid */
.g25c-game-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}
.g25c-game-item {
  display: flex; flex-direction: column; align-items: center;
  padding: 0.6rem; border-radius: var(--g25c-radius);
  background: var(--g25c-bg-card); border: 1px solid var(--g25c-border);
  cursor: pointer; transition: var(--g25c-transition);
  text-align: center;
}
.g25c-game-item:hover {
  border-color: var(--g25c-primary); transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(244,164,96,0.15);
}
.g25c-game-item img {
  width: 56px; height: 56px; border-radius: 8px;
  margin-bottom: 0.4rem; object-fit: cover;
}
.g25c-game-item span {
  font-size: 1.1rem; color: var(--g25c-text-light);
  line-height: 1.2rem; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; word-break: break-word;
}

/* Cards */
.g25c-card {
  background: var(--g25c-bg-card); border: 1px solid var(--g25c-border);
  border-radius: var(--g25c-radius-lg); padding: 1.5rem;
  margin-bottom: 1.2rem; transition: var(--g25c-transition);
}
.g25c-card:hover { border-color: var(--g25c-secondary); }
.g25c-card h3 {
  font-size: 1.5rem; color: var(--g25c-primary); margin-bottom: 0.8rem;
}

/* Buttons */
.g25c-btn-promo {
  display: inline-block; padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--g25c-primary), var(--g25c-secondary));
  color: var(--g25c-bg); font-size: 1.4rem; font-weight: 700;
  border: none; border-radius: var(--g25c-radius-lg);
  cursor: pointer; transition: var(--g25c-transition);
  text-align: center;
}
.g25c-btn-promo:hover { transform: scale(1.05); box-shadow: 0 4px 16px rgba(244,164,96,0.3); }

/* Footer */
.g25c-footer {
  background: var(--g25c-bg-light); border-top: 1px solid var(--g25c-border);
  padding: 2rem 1.2rem; text-align: center;
}
.g25c-footer-desc {
  font-size: 1.2rem; color: var(--g25c-text-muted);
  line-height: 1.6rem; margin-bottom: 1.5rem;
}
.g25c-footer-links {
  display: flex; flex-wrap: wrap; gap: 0.8rem;
  justify-content: center; margin-bottom: 1.5rem;
}
.g25c-footer-links a {
  padding: 0.5rem 1rem; background: var(--g25c-bg);
  border: 1px solid var(--g25c-border); border-radius: var(--g25c-radius);
  font-size: 1.2rem; color: var(--g25c-text);
}
.g25c-footer-links a:hover { border-color: var(--g25c-primary); color: var(--g25c-primary); }
.g25c-footer-copy { font-size: 1.1rem; color: var(--g25c-text-muted); }

/* Utility */
.g25c-text-center { text-align: center; }
.g25c-mb-1 { margin-bottom: 1rem; }
.g25c-mb-2 { margin-bottom: 2rem; }
.g25c-p-1 { padding: 1rem; }
.g25c-hidden { display: none; }
.g25c-flex { display: flex; }
.g25c-flex-center { display: flex; align-items: center; justify-content: center; }
.g25c-gap-1 { gap: 1rem; }

/* Promo link style */
.g25c-promo-link {
  color: var(--g25c-primary); font-weight: 700;
  cursor: pointer; transition: var(--g25c-transition);
  border-bottom: 1px dashed var(--g25c-primary);
}
.g25c-promo-link:hover { color: var(--g25c-accent-hover); border-bottom-color: var(--g25c-accent-hover); }

/* Winner ticker */
.g25c-winner-ticker {
  background: var(--g25c-bg-card); border-radius: var(--g25c-radius);
  padding: 0.8rem 1.2rem; margin-bottom: 0.8rem;
  display: flex; align-items: center; gap: 0.8rem;
}
.g25c-winner-ticker .g25c-badge {
  background: var(--g25c-primary); color: var(--g25c-bg);
  font-size: 1rem; padding: 0.2rem 0.6rem; border-radius: 4px;
  font-weight: 700; white-space: nowrap;
}

/* Responsive helpers */
@media (max-width: 768px) {
  .g25c-main { padding-bottom: calc(var(--g25c-bnav-h) + 2rem); }
}
