/**
 * CEO Game - Main Stylesheet
 * All classes use sb77- prefix for namespace isolation
 * Mobile-first design, max-width: 430px
 * Color palette: #A0522D | #BC8F8F | #333333 | #8B4513 | #BF360C
 */

/* CSS Variables */
:root {
  --sb77-primary: #BF360C;
  --sb77-secondary: #A0522D;
  --sb77-accent: #BC8F8F;
  --sb77-bg: #1a1210;
  --sb77-bg-light: #2a1f1a;
  --sb77-bg-card: #322518;
  --sb77-text: #f5ece4;
  --sb77-text-muted: #c4b5a5;
  --sb77-border: #5a4232;
  --sb77-gold: #d4a853;
  --sb77-success: #4caf50;
  --sb77-radius: 0.8rem;
  --sb77-radius-sm: 0.4rem;
  --sb77-shadow: 0 2px 12px rgba(0,0,0,0.4);
  --sb77-transition: all 0.3s ease;
}

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

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

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

a {
  color: var(--sb77-gold);
  text-decoration: none;
  transition: var(--sb77-transition);
}

a:hover {
  color: var(--sb77-primary);
  text-decoration: underline;
}

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

/* Container */
.sb77-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.2rem;
}

.sb77-wrapper {
  padding: 1.5rem 0;
}

/* Header */
.sb77-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 1000;
  background: linear-gradient(135deg, #2a1a10 0%, #3d2816 100%);
  border-bottom: 2px solid var(--sb77-primary);
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sb77-header-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.sb77-header-logo img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.sb77-header-logo span {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--sb77-gold);
  white-space: nowrap;
}

.sb77-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.sb77-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.2rem;
  border-radius: var(--sb77-radius-sm);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--sb77-transition);
  min-height: 32px;
}

.sb77-btn-register {
  background: linear-gradient(135deg, var(--sb77-primary), #e65100);
  color: #fff;
  box-shadow: 0 2px 6px rgba(191,54,12,0.4);
}

.sb77-btn-register:hover {
  background: linear-gradient(135deg, #e65100, var(--sb77-primary));
  transform: translateY(-1px);
}

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

.sb77-btn-login:hover {
  background: rgba(212,168,83,0.1);
}

.sb77-btn-promo {
  background: linear-gradient(135deg, var(--sb77-gold), #c49b3a);
  color: #1a1210;
  font-weight: 700;
  padding: 0.8rem 2rem;
  border-radius: var(--sb77-radius);
  font-size: 1.4rem;
  display: block;
  width: 100%;
  text-align: center;
  box-shadow: 0 3px 10px rgba(212,168,83,0.3);
}

.sb77-btn-promo:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(212,168,83,0.5);
}

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

.sb77-mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 75%;
  max-width: 300px;
  height: 100%;
  background: linear-gradient(180deg, #2a1a10, #1a1210);
  z-index: 9999;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  padding: 2rem 1.5rem;
  overflow-y: auto;
}

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

.sb77-mobile-menu-header span {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--sb77-gold);
}

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

.sb77-mobile-menu-nav a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  color: var(--sb77-text);
  font-size: 1.4rem;
  border-bottom: 1px solid rgba(90,66,50,0.3);
}

.sb77-mobile-menu-nav a:hover {
  color: var(--sb77-gold);
  background: rgba(212,168,83,0.05);
  padding-left: 0.5rem;
}

.sb77-mobile-menu-nav a .material-icons,
.sb77-mobile-menu-nav a .fas,
.sb77-mobile-menu-nav a .far {
  font-size: 2rem;
  width: 2.4rem;
  text-align: center;
}

/* Main Content Area */
.sb77-main {
  padding-top: 5.5rem;
  min-height: 100vh;
}

/* Carousel */
.sb77-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 0 0 var(--sb77-radius) var(--sb77-radius);
}

.gameb71c-carousel-slide {
  display: none;
  width: 100%;
  cursor: pointer;
}

.gameb71c-carousel-slide img {
  width: 100%;
  height: auto;
  min-height: 160px;
  object-fit: cover;
}

.sb77-carousel-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.gameb71c-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: var(--sb77-transition);
}

.gameb71c-dot-active,
.gameb71c-carousel-dot:hover {
  background: var(--sb77-gold);
  transform: scale(1.2);
}

/* Section Titles */
.sb77-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--sb77-gold);
  margin: 2rem 0 1rem;
  padding-left: 1rem;
  border-left: 3px solid var(--sb77-primary);
  line-height: 2.2rem;
}

.sb77-section-subtitle {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--sb77-text);
  margin: 1.5rem 0 0.8rem;
}

/* Game Grid */
.sb77-game-category-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--sb77-accent);
  margin: 1.5rem 0 0.8rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(90deg, rgba(160,82,45,0.3), transparent);
  border-radius: var(--sb77-radius-sm);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.sb77-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  padding: 0.5rem 0;
}

.sb77-game-item {
  text-align: center;
  cursor: pointer;
  transition: var(--sb77-transition);
  border-radius: var(--sb77-radius-sm);
  padding: 0.4rem;
}

.sb77-game-item:hover {
  background: rgba(212,168,83,0.08);
  transform: translateY(-2px);
}

.sb77-game-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--sb77-radius-sm);
  border: 1.5px solid var(--sb77-border);
  margin-bottom: 0.3rem;
}

.sb77-game-item span {
  display: block;
  font-size: 1.1rem;
  color: var(--sb77-text-muted);
  line-height: 1.3rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Card Component */
.sb77-card {
  background: var(--sb77-bg-card);
  border-radius: var(--sb77-radius);
  padding: 1.5rem;
  margin: 1rem 0;
  border: 1px solid var(--sb77-border);
  box-shadow: var(--sb77-shadow);
}

.sb77-card-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--sb77-gold);
  margin-bottom: 0.8rem;
}

.sb77-card p {
  color: var(--sb77-text-muted);
  font-size: 1.3rem;
  line-height: 1.8rem;
  margin-bottom: 0.6rem;
}

/* FAQ Styles */
.sb77-faq-item {
  border-bottom: 1px solid var(--sb77-border);
  padding: 1rem 0;
}

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

.sb77-faq-question {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--sb77-text);
  margin-bottom: 0.4rem;
}

.sb77-faq-answer {
  font-size: 1.3rem;
  color: var(--sb77-text-muted);
  line-height: 1.7rem;
}

/* Testimonials */
.sb77-testimonial {
  background: var(--sb77-bg-light);
  border-radius: var(--sb77-radius);
  padding: 1.2rem;
  margin: 0.8rem 0;
  border-left: 3px solid var(--sb77-gold);
}

.sb77-testimonial-name {
  font-weight: 600;
  color: var(--sb77-gold);
  font-size: 1.3rem;
}

.sb77-testimonial-text {
  color: var(--sb77-text-muted);
  font-size: 1.2rem;
  margin-top: 0.4rem;
  line-height: 1.6rem;
}

/* Winner Showcase */
.sb77-winner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem;
  background: var(--sb77-bg-light);
  border-radius: var(--sb77-radius-sm);
  margin: 0.5rem 0;
}

.sb77-winner-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--sb77-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  flex-shrink: 0;
}

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

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

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

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

/* Payment Methods */
.sb77-payment-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}

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

/* App Download CTA */
.sb77-app-cta {
  background: linear-gradient(135deg, var(--sb77-secondary), var(--sb77-primary));
  border-radius: var(--sb77-radius);
  padding: 2rem 1.5rem;
  text-align: center;
  margin: 1.5rem 0;
}

.sb77-app-cta h3 {
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 0.8rem;
}

.sb77-app-cta p {
  color: rgba(255,255,255,0.8);
  font-size: 1.3rem;
  margin-bottom: 1.2rem;
}

/* Footer */
.sb77-footer {
  background: var(--sb77-bg-light);
  padding: 2rem 1.2rem 8rem;
  border-top: 2px solid var(--sb77-primary);
  margin-top: 2rem;
}

.sb77-footer-brand {
  text-align: center;
  margin-bottom: 1.5rem;
}

.sb77-footer-brand p {
  font-size: 1.2rem;
  color: var(--sb77-text-muted);
  line-height: 1.6rem;
}

.sb77-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin: 1rem 0;
}

.sb77-footer-links a {
  font-size: 1.2rem;
  color: var(--sb77-text-muted);
  padding: 0.3rem 0.6rem;
}

.sb77-footer-links a:hover {
  color: var(--sb77-gold);
}

.sb77-footer-partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 1.5rem 0;
  opacity: 0.6;
}

.sb77-footer-partners span {
  font-size: 1.1rem;
  color: var(--sb77-text-muted);
  background: rgba(90,66,50,0.3);
  padding: 0.3rem 0.8rem;
  border-radius: var(--sb77-radius-sm);
}

.sb77-footer-copy {
  text-align: center;
  font-size: 1.1rem;
  color: var(--sb77-text-muted);
  margin-top: 1rem;
  opacity: 0.7;
}

/* Bottom Navigation */
.sb77-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 1000;
  background: linear-gradient(180deg, #2a1a10, #1a1210);
  border-top: 2px solid var(--sb77-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 60px;
  padding: 0 0.4rem;
}

.gameb71c-bottom-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 52px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--sb77-text-muted);
  transition: var(--sb77-transition);
  border-radius: var(--sb77-radius-sm);
  padding: 0.3rem;
}

.gameb71c-bottom-nav-btn:hover,
.gameb71c-bottom-nav-btn:focus {
  color: var(--sb77-gold);
  background: rgba(212,168,83,0.1);
}

.gameb71c-bottom-nav-btn .material-icons,
.gameb71c-bottom-nav-btn .fas,
.gameb71c-bottom-nav-btn .far,
.gameb71c-bottom-nav-btn .fad,
.gameb71c-bottom-nav-btn ion-icon,
.gameb71c-bottom-nav-btn bi {
  font-size: 22px;
  margin-bottom: 2px;
}

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

.gameb71c-bottom-nav-btn.gameb71c-nav-active {
  color: var(--sb77-gold);
}

.gameb71c-bottom-nav-btn.gameb71c-nav-active::after {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--sb77-gold);
  border-radius: 1px;
  margin-top: 1px;
}

/* Hamburger button */
.sb77-hamburger {
  background: none;
  border: none;
  color: var(--sb77-text);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
  align-items: center;
}

/* Promo text link */
.sb77-promo-link {
  color: var(--sb77-gold);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

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

/* Inline promo text */
.sb77-text-promo {
  font-weight: 700;
  color: var(--sb77-primary);
  cursor: pointer;
}

/* Utility */
.sb77-text-center { text-align: center; }
.sb77-text-gold { color: var(--sb77-gold); }
.sb77-text-muted { color: var(--sb77-text-muted); }
.sb77-mt-1 { margin-top: 0.8rem; }
.sb77-mt-2 { margin-top: 1.5rem; }
.sb77-mb-1 { margin-bottom: 0.8rem; }
.sb77-mb-2 { margin-bottom: 1.5rem; }

/* Responsive - Mobile bottom padding */
@media (max-width: 768px) {
  .sb77-main {
    padding-bottom: 80px;
  }
}

/* Desktop - hide bottom nav */
@media (min-width: 769px) {
  .sb77-bottom-nav {
    display: none;
  }
}
