/* 477bt.css - Core Stylesheet for 477bt gaming platform */
/* All classes use sd90- prefix for namespace isolation */
/* Color palette: #9370DB | #FF4500 | #9932CC | #273746 */

:root {
  --sd90-primary: #9370DB;
  --sd90-accent: #FF4500;
  --sd90-secondary: #9932CC;
  --sd90-bg-dark: #273746;
  --sd90-bg-darker: #1e2d3a;
  --sd90-bg-card: #2c3e50;
  --sd90-text-light: #f0f0f0;
  --sd90-text-muted: #b0b8c1;
  --sd90-border: #3d5166;
  --sd90-gold: #FFD700;
  --sd90-success: #2ecc71;
}

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

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

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

/* === HEADER === */
.sd90-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: linear-gradient(135deg, var(--sd90-bg-darker), var(--sd90-bg-dark));
  border-bottom: 2px solid var(--sd90-primary);
  z-index: 1000;
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sd90-header-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.sd90-header-logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.sd90-header-brand {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--sd90-primary);
  text-decoration: none;
}

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

.sd90-btn-register, .sd90-btn-login {
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.sd90-btn-register {
  background: linear-gradient(135deg, var(--sd90-accent), #ff6b35);
  color: #fff;
}

.sd90-btn-login {
  background: linear-gradient(135deg, var(--sd90-primary), var(--sd90-secondary));
  color: #fff;
}

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

/* === MOBILE MENU === */
.sd90-menu-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9998;
}

.sd90-mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 260px;
  height: 100%;
  background: var(--sd90-bg-darker);
  z-index: 9999;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  padding: 2rem 1.5rem;
  overflow-y: auto;
}

.sd90-mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--sd90-border);
}

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

.sd90-mobile-menu-close {
  background: none;
  border: none;
  color: var(--sd90-text-light);
  font-size: 2rem;
  cursor: pointer;
}

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

.sd90-mobile-menu a:hover {
  color: var(--sd90-primary);
  padding-left: 0.5rem;
}

/* === MAIN CONTENT === */
.sd90-main {
  padding-top: 5.5rem;
  min-height: 100vh;
}

@media (max-width: 768px) {
  .sd90-main { padding-bottom: 80px; }
}

/* === CAROUSEL === */
.sd90-carousel {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  margin-top: 0.5rem;
}

.sd90-carousel-slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.sd90-carousel-slide.sd90-carousel-active {
  opacity: 1;
}

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

/* === SECTIONS === */
.sd90-section {
  padding: 1.5rem 1rem;
}

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

.sd90-section-title i {
  margin-right: 0.5rem;
}

/* === GAME GRID === */
.sd90-category-label {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--sd90-accent);
  margin: 1.2rem 0 0.8rem;
  padding-left: 0.5rem;
  border-left: 3px solid var(--sd90-accent);
}

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

.sd90-game-item {
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s;
  padding: 0.4rem;
  border-radius: 8px;
}

.sd90-game-item:hover {
  transform: scale(1.05);
  background: var(--sd90-bg-card);
}

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

.sd90-game-item p {
  font-size: 1rem;
  color: var(--sd90-text-light);
  margin-top: 0.3rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* === CONTENT CARDS === */
.sd90-card {
  background: var(--sd90-bg-card);
  border-radius: 10px;
  padding: 1.2rem;
  margin-bottom: 1rem;
  border: 1px solid var(--sd90-border);
}

.sd90-card h3 {
  font-size: 1.5rem;
  color: var(--sd90-primary);
  margin-bottom: 0.6rem;
}

.sd90-card p {
  font-size: 1.3rem;
  color: var(--sd90-text-muted);
  line-height: 1.6;
}

.sd90-card ul {
  list-style: none;
  padding: 0;
}

.sd90-card ul li {
  padding: 0.4rem 0;
  font-size: 1.3rem;
  color: var(--sd90-text-muted);
  position: relative;
  padding-left: 1.5rem;
}

.sd90-card ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.9rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sd90-accent);
}

/* === PROMO BUTTONS === */
.sd90-promo-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--sd90-accent), #ff6b35);
  color: #fff;
  padding: 0.8rem 1.6rem;
  border-radius: 2.5rem;
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.sd90-promo-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(255, 69, 0, 0.4);
}

.sd90-promo-btn-purple {
  background: linear-gradient(135deg, var(--sd90-primary), var(--sd90-secondary));
}

.sd90-promo-btn-purple:hover {
  box-shadow: 0 4px 15px rgba(147, 112, 219, 0.4);
}

.sd90-promo-text {
  color: var(--sd90-accent);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.sd90-promo-text:hover {
  text-decoration: underline;
}

/* === FAQ === */
.sd90-faq-item {
  margin-bottom: 0.8rem;
  border-bottom: 1px solid var(--sd90-border);
  padding-bottom: 0.8rem;
}

.sd90-faq-item h4 {
  font-size: 1.3rem;
  color: var(--sd90-gold);
  margin-bottom: 0.3rem;
}

.sd90-faq-item p {
  font-size: 1.2rem;
  color: var(--sd90-text-muted);
  line-height: 1.5;
}

/* === STATS BAR === */
.sd90-stats {
  display: flex;
  justify-content: space-around;
  padding: 1rem;
  background: var(--sd90-bg-card);
  border-radius: 10px;
  margin: 1rem 0;
}

.sd90-stat-item {
  text-align: center;
}

.sd90-stat-num {
  font-size: 2rem;
  font-weight: 700;
  color: var(--sd90-accent);
}

.sd90-stat-label {
  font-size: 1.1rem;
  color: var(--sd90-text-muted);
}

/* === TESTIMONIALS === */
.sd90-testimonial {
  background: var(--sd90-bg-card);
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 0.8rem;
  border-left: 3px solid var(--sd90-primary);
}

.sd90-testimonial p {
  font-size: 1.2rem;
  color: var(--sd90-text-muted);
  font-style: italic;
}

.sd90-testimonial span {
  display: block;
  margin-top: 0.5rem;
  font-size: 1.1rem;
  color: var(--sd90-primary);
  font-style: normal;
}

/* === WINNER LIST === */
.sd90-winner-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--sd90-border);
}

.sd90-winner-name {
  font-size: 1.2rem;
  color: var(--sd90-text-light);
}

.sd90-winner-amount {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--sd90-success);
}

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

/* === PAYMENT METHODS === */
.sd90-payment-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}

.sd90-payment-item {
  background: var(--sd90-bg-card);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-size: 1.2rem;
  color: var(--sd90-text-light);
  border: 1px solid var(--sd90-border);
}

/* === FOOTER === */
.sd90-footer {
  background: var(--sd90-bg-darker);
  padding: 1.5rem 1rem;
  border-top: 2px solid var(--sd90-primary);
}

.sd90-footer-brand {
  font-size: 1.4rem;
  color: var(--sd90-text-muted);
  margin-bottom: 1rem;
  line-height: 1.6;
}

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

.sd90-footer-links a {
  color: var(--sd90-primary);
  text-decoration: none;
  font-size: 1.2rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--sd90-border);
  border-radius: 1.5rem;
  transition: background 0.2s;
}

.sd90-footer-links a:hover {
  background: var(--sd90-bg-card);
}

.sd90-footer-copy {
  font-size: 1.1rem;
  color: var(--sd90-text-muted);
  text-align: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--sd90-border);
}

.sd90-footer-site-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.sd90-footer-site-links a {
  color: var(--sd90-text-muted);
  text-decoration: none;
  font-size: 1.1rem;
}

.sd90-footer-site-links a:hover {
  color: var(--sd90-primary);
}

/* === BOTTOM NAV === */
.sd90-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 60px;
  background: linear-gradient(135deg, var(--sd90-bg-darker), #1a2530);
  border-top: 2px solid var(--sd90-primary);
  z-index: 1000;
  justify-content: space-around;
  align-items: center;
  padding: 0 0.3rem;
}

.sd90-bnav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 54px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--sd90-text-muted);
  transition: color 0.2s, transform 0.2s;
  text-decoration: none;
  padding: 0.3rem;
}

.sd90-bnav-btn:hover, .sd90-bnav-btn.sd90-bnav-active {
  color: var(--sd90-primary);
  transform: scale(1.1);
}

.sd90-bnav-btn i, .sd90-bnav-btn .material-icons {
  font-size: 22px;
}

.sd90-bnav-btn span {
  font-size: 1rem;
  margin-top: 0.2rem;
}

@media (max-width: 768px) {
  .sd90-bottom-nav { display: flex; }
}

/* === HELP PAGE === */
.sd90-help-section {
  padding: 1.2rem 1rem;
}

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

.sd90-help-section h3 {
  font-size: 1.4rem;
  color: var(--sd90-accent);
  margin: 0.8rem 0 0.4rem;
}

.sd90-help-section p {
  font-size: 1.3rem;
  color: var(--sd90-text-muted);
  line-height: 1.6;
}

.sd90-help-section ul {
  list-style: none;
  padding: 0;
}

.sd90-help-section ul li {
  padding: 0.4rem 0 0.4rem 1.5rem;
  font-size: 1.3rem;
  color: var(--sd90-text-muted);
  position: relative;
}

.sd90-help-section ul li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--sd90-success);
  font-size: 1rem;
}

/* === UTILITY === */
.sd90-text-center { text-align: center; }
.sd90-mt-1 { margin-top: 1rem; }
.sd90-mb-1 { margin-bottom: 1rem; }
.sd90-hidden { display: none; }

/* === DESKTOP ADJUSTMENTS === */
@media (min-width: 769px) {
  .sd90-bottom-nav { display: none !important; }
}
