/**
 * Winbid Layout CSS - v1.0
 * Prefix: g636-
 * Color palette: #DC143C | #8B4513 | #FF1493 | #2C3E50 | #C71585
 */

/* CSS Variables */
:root {
  --g636-primary: #DC143C;
  --g636-secondary: #C71585;
  --g636-accent: #FF1493;
  --g636-dark: #2C3E50;
  --g636-brown: #8B4513;
  --g636-bg: #1a0a0e;
  --g636-bg2: #2a1218;
  --g636-bg3: #3a1a22;
  --g636-text: #f5e6ea;
  --g636-text2: #d4b8c0;
  --g636-gold: #FFD700;
  --g636-border: rgba(220, 20, 60, 0.25);
  --g636-shadow: rgba(0, 0, 0, 0.4);
  --g636-radius: 1.2rem;
  --g636-font: 'Segoe UI', 'Noto Sans Bengali', Arial, sans-serif;
  font-size: 62.5%;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--g636-font);
  background: var(--g636-bg);
  color: var(--g636-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--g636-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* Header */
.g636-header {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px;
  background: linear-gradient(135deg, var(--g636-dark) 0%, #1a0a0e 100%);
  border-bottom: 1px solid var(--g636-border);
  z-index: 1000; padding: 0.6rem 1rem;
  display: flex; align-items: center; justify-content: space-between;
}
.g636-header-left { display: flex; align-items: center; gap: 0.6rem; }
.g636-header-logo { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.g636-header-name {
  font-size: 1.6rem; font-weight: 700;
  background: linear-gradient(90deg, var(--g636-primary), var(--g636-accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.g636-header-right { display: flex; align-items: center; gap: 0.5rem; }
.g636-btn-reg {
  background: linear-gradient(135deg, var(--g636-primary), var(--g636-accent));
  color: #fff; border: none; padding: 0.5rem 1.2rem; border-radius: 2rem;
  font-size: 1.2rem; font-weight: 600; cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.g636-btn-reg:hover { transform: scale(1.05); box-shadow: 0 2px 12px var(--g636-primary); }
.g636-btn-login {
  background: transparent; color: var(--g636-accent);
  border: 1px solid var(--g636-accent); padding: 0.5rem 1.2rem;
  border-radius: 2rem; font-size: 1.2rem; font-weight: 600; cursor: pointer;
  transition: background 0.2s;
}
.g636-btn-login:hover { background: rgba(255, 20, 147, 0.1); }
.g636-menu-toggle {
  background: none; border: none; color: var(--g636-text);
  font-size: 2rem; cursor: pointer; padding: 0.4rem;
  display: flex; align-items: center; justify-content: center;
}

/* Mobile Menu Overlay */
.g636-menu-overlay {
  display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6); z-index: 9998;
}
.g636-overlay-active { display: block; }

/* Mobile Side Menu */
.g636-mobile-menu {
  position: fixed; top: 0; right: -280px; width: 260px; height: 100%;
  background: linear-gradient(180deg, var(--g636-dark) 0%, var(--g636-bg) 100%);
  z-index: 9999; transition: right 0.3s ease;
  padding: 2rem 1.5rem; overflow-y: auto;
}
.g636-menu-active { right: 0; }
.g636-mobile-menu ul { margin-top: 1rem; }
.g636-mobile-menu li { border-bottom: 1px solid var(--g636-border); }
.g636-mobile-menu a {
  display: block; padding: 1rem 0; color: var(--g636-text2);
  font-size: 1.4rem; transition: color 0.2s;
}
.g636-mobile-menu a:hover { color: var(--g636-accent); text-decoration: none; }
.g636-menu-close {
  background: none; border: none; color: var(--g636-text);
  font-size: 2.4rem; cursor: pointer; position: absolute;
  top: 1rem; right: 1rem;
}

/* Main Content */
.g636-main { padding-top: 5rem; }
@media (max-width: 768px) {
  .g636-main { padding-bottom: 8rem; }
}

/* Carousel */
.g636-carousel {
  position: relative; width: 100%; aspect-ratio: 16/9;
  overflow: hidden; border-radius: 0 0 var(--g636-radius) var(--g636-radius);
}
.g636-carousel-slide {
  display: none; width: 100%; height: 100%;
}
.g636-slide-active { display: block; }
.g636-carousel-slide img { width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
.g636-carousel-dots {
  position: absolute; bottom: 0.8rem; left: 50%;
  transform: translateX(-50%); display: flex; gap: 0.5rem;
}
.g636-carousel-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.4); cursor: pointer;
  border: none; transition: background 0.3s;
}
.g636-dot-active { background: var(--g636-primary); }

/* Section */
.g636-section { padding: 1.5rem 1rem; }
.g636-section-title {
  font-size: 1.8rem; font-weight: 700; margin-bottom: 1rem;
  color: var(--g636-text); padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--g636-primary);
  display: flex; align-items: center; gap: 0.5rem;
}
.g636-section-title i, .g636-section-title .material-icons {
  color: var(--g636-primary);
}

/* Category Title */
.g636-cat-title {
  font-size: 1.5rem; font-weight: 700; color: var(--g636-gold);
  margin: 1.2rem 0 0.8rem; padding-left: 0.8rem;
  border-left: 3px solid var(--g636-primary);
}

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

/* Promo Link */
.g636-promo-link {
  color: var(--g636-accent); font-weight: 600; cursor: pointer;
  text-decoration: underline; transition: color 0.2s;
}
.g636-promo-link:hover { color: var(--g636-primary); }
.g636-promo-btn {
  display: inline-block; background: linear-gradient(135deg, var(--g636-primary), var(--g636-accent));
  color: #fff; padding: 0.8rem 2rem; border-radius: 2rem;
  font-size: 1.4rem; font-weight: 700; cursor: pointer;
  border: none; transition: transform 0.2s, box-shadow 0.2s;
  text-align: center;
}
.g636-promo-btn:hover {
  transform: scale(1.05); box-shadow: 0 4px 20px rgba(220, 20, 60, 0.5);
  text-decoration: none; color: #fff;
}

/* Card */
.g636-card {
  background: var(--g636-bg2); border-radius: var(--g636-radius);
  border: 1px solid var(--g636-border); padding: 1.2rem;
  margin-bottom: 1rem; transition: border-color 0.3s;
}
.g636-card:hover { border-color: var(--g636-primary); }

/* Footer */
.g636-footer {
  background: linear-gradient(180deg, var(--g636-dark) 0%, #0d0508 100%);
  padding: 2rem 1rem 3rem; border-top: 1px solid var(--g636-border);
}
.g636-footer-brand { text-align: center; margin-bottom: 1.5rem; }
.g636-footer-brand p { color: var(--g636-text2); font-size: 1.2rem; line-height: 1.8rem; }
.g636-footer-links {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem;
  margin-bottom: 1.5rem;
}
.g636-footer-links a {
  color: var(--g636-text2); font-size: 1.2rem;
  padding: 0.3rem 0.6rem; transition: color 0.2s;
}
.g636-footer-links a:hover { color: var(--g636-accent); }
.g636-footer-promo {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem;
  margin-bottom: 1.5rem;
}
.g636-footer-promo .g636-promo-btn { padding: 0.5rem 1.2rem; font-size: 1.1rem; }
.g636-footer-copy {
  text-align: center; color: var(--g636-text2); font-size: 1.1rem;
  border-top: 1px solid var(--g636-border); padding-top: 1rem;
}

/* Bottom Navigation */
.g636-bottom-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px;
  background: linear-gradient(135deg, var(--g636-dark) 0%, #1a0a0e 100%);
  border-top: 1px solid var(--g636-border);
  z-index: 1000; height: 60px;
  display: flex; justify-content: space-around; align-items: center;
}
.g636-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(--g636-text2);
  cursor: pointer; transition: color 0.2s, transform 0.2s;
  padding: 0.4rem;
}
.g636-bottom-nav-btn:hover, .g636-bottom-nav-active {
  color: var(--g636-primary); transform: scale(1.1);
}
.g636-bottom-nav-btn i,
.g636-bottom-nav-btn .material-icons {
  font-size: 2.2rem; margin-bottom: 0.2rem;
}
.g636-bottom-nav-btn span { font-size: 1rem; }

/* Hide bottom nav on desktop */
@media (min-width: 769px) {
  .g636-bottom-nav { display: none; }
}

/* FAQ Accordion */
.g636-faq-item { border-bottom: 1px solid var(--g636-border); padding: 0.8rem 0; }
.g636-faq-q {
  font-weight: 600; color: var(--g636-text); font-size: 1.3rem;
  cursor: pointer; display: flex; justify-content: space-between;
  align-items: center;
}
.g636-faq-a {
  color: var(--g636-text2); font-size: 1.2rem; line-height: 1.8rem;
  padding-top: 0.5rem; display: none;
}
.g636-faq-item.active .g636-faq-a { display: block; }

/* Utility Classes */
.g636-text-center { text-align: center; }
.g636-mb-1 { margin-bottom: 0.8rem; }
.g636-mb-2 { margin-bottom: 1.5rem; }
.g636-mt-1 { margin-top: 0.8rem; }
.g636-mt-2 { margin-top: 1.5rem; }
.g636-hidden { display: none; }
.g636-flex { display: flex; }
.g636-flex-wrap { flex-wrap: wrap; }
.g636-gap-1 { gap: 0.5rem; }
.g636-gap-2 { gap: 1rem; }

/* Responsive adjustments */
@media (max-width: 768px) {
  body { max-width: 100%; }
  .g636-header { max-width: 100%; }
  .g636-bottom-nav { max-width: 100%; }
}

/* Winner List Animation */
.g636-winner-list { overflow: hidden; max-height: 20rem; }
.g636-winner-item {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.6rem 0; border-bottom: 1px solid rgba(220, 20, 60, 0.1);
  animation: g636-fadeIn 0.5s ease;
}
@keyframes g636-fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
.g636-winner-avatar {
  width: 3.2rem; height: 3.2rem; border-radius: 50%;
  object-fit: cover; border: 2px solid var(--g636-primary);
}
.g636-winner-name { font-size: 1.2rem; color: var(--g636-text); flex: 1; }
.g636-winner-amount { font-size: 1.3rem; color: var(--g636-gold); font-weight: 700; }

/* Feature Icons Row */
.g636-feature-row {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem;
  padding: 1rem 0;
}
.g636-feature-item {
  display: flex; flex-direction: column; align-items: center;
  width: 6rem; text-align: center;
}
.g636-feature-icon {
  width: 4rem; height: 4rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--g636-bg3); margin-bottom: 0.4rem;
  font-size: 1.8rem; color: var(--g636-primary);
}
.g636-feature-label { font-size: 1rem; color: var(--g636-text2); }

/* Testimonial Card */
.g636-testimonial {
  background: var(--g636-bg2); border-radius: var(--g636-radius);
  border-left: 3px solid var(--g636-primary); padding: 1rem;
  margin-bottom: 0.8rem;
}
.g636-testimonial-text { font-size: 1.2rem; color: var(--g636-text2); font-style: italic; line-height: 1.8rem; }
.g636-testimonial-author { font-size: 1.1rem; color: var(--g636-accent); margin-top: 0.5rem; font-weight: 600; }

/* Payment Methods */
.g636-payment-row {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem;
}
.g636-payment-item {
  background: var(--g636-bg3); border-radius: 0.6rem; padding: 0.5rem 1rem;
  font-size: 1.2rem; color: var(--g636-text2); border: 1px solid var(--g636-border);
}

/* RTP Bar */
.g636-rtp-bar-wrap {
  background: var(--g636-bg3); border-radius: 0.6rem; overflow: hidden;
  height: 1.8rem; position: relative;
}
.g636-rtp-bar {
  height: 100%; border-radius: 0.6rem;
  background: linear-gradient(90deg, var(--g636-primary), var(--g636-gold));
  transition: width 1s ease;
}
.g636-rtp-label {
  position: absolute; top: 0; left: 0.8rem; height: 100%;
  display: flex; align-items: center; font-size: 1rem;
  color: #fff; font-weight: 600;
}
