/**
 * Good 1111 Love - Design CSS
 * All classes use prefix "s75b-" for namespace isolation
 * Colors: #0E1621 (dark bg), #F8F8FF (light text), #3C3C3C (secondary)
 * Mobile-first design, max-width 430px
 */

:root {
  --s75b-primary: #0E1621;
  --s75b-secondary: #3C3C3C;
  --s75b-text: #F8F8FF;
  --s75b-accent: #FF6B35;
  --s75b-accent2: #FFD700;
  --s75b-bg: #0E1621;
  --s75b-card-bg: #1A2332;
  --s75b-card-border: #2A3544;
  --s75b-gradient: linear-gradient(135deg, #0E1621 0%, #1A2332 100%);
  --s75b-radius: 8px;
  --s75b-radius-lg: 12px;
  --s75b-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Base reset */
*, *::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: var(--s75b-bg);
  color: var(--s75b-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  overflow-x: hidden;
  max-width: 430px;
  margin: 0 auto;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--s75b-accent);
  text-decoration: none;
}

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

/* Header */
.s75b-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 56px;
  background: var(--s75b-primary);
  border-bottom: 1px solid var(--s75b-card-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  z-index: 1000;
}

.s75b-logo-area {
  display: flex;
  align-items: center;
  gap: 8px;
}

.s75b-logo-area img {
  width: 28px;
  height: 28px;
  border-radius: 4px;
}

.s75b-logo-area span {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--s75b-accent2);
  white-space: nowrap;
}

.s75b-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.s75b-btn-register {
  background: var(--s75b-accent);
  color: #fff;
  border: none;
  padding: 6px 14px;
  border-radius: var(--s75b-radius);
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s, background 0.2s;
}

.s75b-btn-register:hover {
  transform: scale(1.05);
  background: #E55A2B;
}

.s75b-btn-login {
  background: transparent;
  color: var(--s75b-accent2);
  border: 1px solid var(--s75b-accent2);
  padding: 5px 12px;
  border-radius: var(--s75b-radius);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, background 0.2s;
}

.s75b-btn-login:hover {
  background: rgba(255, 215, 0, 0.1);
}

.s75b-menu-btn {
  background: none;
  border: none;
  color: var(--s75b-text);
  font-size: 2rem;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
}

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

.s75b-mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 260px;
  height: 100%;
  background: #111822;
  z-index: 9999;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  padding: 60px 0 20px;
  overflow-y: auto;
}

.s75b-mobile-menu a {
  display: block;
  padding: 14px 20px;
  color: var(--s75b-text);
  font-size: 1.4rem;
  border-bottom: 1px solid var(--s75b-card-border);
  transition: background 0.15s, color 0.15s;
}

.s75b-mobile-menu a:hover {
  background: var(--s75b-card-bg);
  color: var(--s75b-accent);
}

.s75b-mobile-menu-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  color: var(--s75b-text);
  font-size: 2.2rem;
  cursor: pointer;
}

/* Main Content */
.s75b-main {
  margin-top: 56px;
  padding: 0;
}

/* Carousel */
.s75b-carousel {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.s75b-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease;
  cursor: pointer;
}

.s75b-slide-active {
  opacity: 1;
}

.s75b-slide img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* Sections */
.s75b-section {
  padding: 16px 12px;
}

.s75b-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--s75b-accent2);
  margin-bottom: 12px;
  padding-left: 4px;
  border-left: 3px solid var(--s75b-accent);
}

.s75b-section-title i {
  margin-right: 6px;
}

/* Game Grid */
.s75b-category-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--s75b-accent);
  margin: 16px 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--s75b-card-border);
}

.s75b-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.s75b-game-item {
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s;
  border-radius: var(--s75b-radius);
  overflow: hidden;
  background: var(--s75b-card-bg);
  padding-bottom: 4px;
}

.s75b-game-item:hover {
  transform: scale(1.04);
}

.s75b-game-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--s75b-radius) var(--s75b-radius) 0 0;
}

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

/* Content Cards */
.s75b-card {
  background: var(--s75b-card-bg);
  border: 1px solid var(--s75b-card-border);
  border-radius: var(--s75b-radius-lg);
  padding: 16px;
  margin-bottom: 12px;
}

.s75b-card h3 {
  font-size: 1.5rem;
  color: var(--s75b-accent2);
  margin-bottom: 8px;
}

.s75b-card p {
  font-size: 1.3rem;
  color: #ccc;
  line-height: 1.6rem;
  margin-bottom: 8px;
}

/* Promo CTA */
.s75b-cta {
  text-align: center;
  padding: 20px 12px;
  margin: 12px 0;
  background: linear-gradient(135deg, #FF6B35 0%, #FFD700 100%);
  border-radius: var(--s75b-radius-lg);
  cursor: pointer;
  transition: transform 0.15s;
}

.s75b-cta:hover {
  transform: scale(1.02);
}

.s75b-cta h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #0E1621;
  margin-bottom: 4px;
}

.s75b-cta p {
  font-size: 1.3rem;
  color: #333;
}

/* Winners list */
.s75b-winners {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.s75b-winner-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: rgba(255,215,0,0.06);
  border-radius: var(--s75b-radius);
  font-size: 1.2rem;
}

.s75b-winner-row .s75b-winner-name {
  color: var(--s75b-accent2);
  font-weight: 600;
}

.s75b-winner-row .s75b-winner-amount {
  color: var(--s75b-accent);
  font-weight: 700;
}

/* Payment icons row */
.s75b-payment-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 0;
}

.s75b-payment-item {
  background: var(--s75b-card-bg);
  border: 1px solid var(--s75b-card-border);
  padding: 8px 14px;
  border-radius: var(--s75b-radius);
  font-size: 1.2rem;
  color: #ccc;
}

/* Testimonials */
.s75b-testimonial {
  background: var(--s75b-card-bg);
  border-left: 3px solid var(--s75b-accent);
  padding: 12px;
  margin-bottom: 8px;
  border-radius: 0 var(--s75b-radius) var(--s75b-radius) 0;
}

.s75b-testimonial p {
  font-size: 1.2rem;
  color: #bbb;
  font-style: italic;
  margin-bottom: 4px;
}

.s75b-testimonial strong {
  color: var(--s75b-accent2);
  font-size: 1.1rem;
}

/* Footer */
.s75b-footer {
  background: #0A0F18;
  padding: 20px 12px 10px;
  margin-top: 16px;
  border-top: 1px solid var(--s75b-card-border);
}

.s75b-footer-brand {
  text-align: center;
  margin-bottom: 12px;
}

.s75b-footer-brand p {
  font-size: 1.2rem;
  color: #888;
  line-height: 1.5rem;
}

.s75b-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 12px;
  margin-bottom: 12px;
}

.s75b-footer-links a {
  font-size: 1.2rem;
  color: #999;
  transition: color 0.15s;
}

.s75b-footer-links a:hover {
  color: var(--s75b-accent);
}

.s75b-footer-promo {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.s75b-footer-promo button {
  background: var(--s75b-accent);
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: var(--s75b-radius);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s;
}

.s75b-footer-promo button:hover {
  transform: scale(1.05);
}

.s75b-footer-copy {
  text-align: center;
  font-size: 1.1rem;
  color: #555;
  padding-top: 8px;
  border-top: 1px solid var(--s75b-card-border);
}

/* Bottom Nav */
.s75b-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 60px;
  background: #0A0F18;
  border-top: 1px solid var(--s75b-card-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
}

.s75b-bottom-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: #888;
  min-width: 60px;
  min-height: 52px;
  cursor: pointer;
  transition: color 0.15s, transform 0.15s;
  padding: 4px 0;
}

.s75b-bottom-btn:hover,
.s75b-bottom-btn:focus {
  color: var(--s75b-accent2);
  transform: scale(1.08);
}

.s75b-bottom-btn.active {
  color: var(--s75b-accent);
}

.s75b-bottom-btn i,
.s75b-bottom-btn span.material-symbols-outlined {
  font-size: 24px;
  margin-bottom: 2px;
}

.s75b-bottom-btn ion-icon {
  font-size: 24px;
  margin-bottom: 2px;
}

.s75b-bottom-btn span[class*="bi-"] {
  font-size: 22px;
  margin-bottom: 2px;
}

.s75b-bottom-label {
  font-size: 10px;
  text-align: center;
}

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

/* Mobile: bottom padding for nav */
@media (max-width: 768px) {
  .s75b-main {
    padding-bottom: 72px;
  }
}

/* Utility */
.s75b-text-center {
  text-align: center;
}

.s75b-mt-8 {
  margin-top: 8px;
}

.s75b-mb-8 {
  margin-bottom: 8px;
}

.s75b-promo-text {
  color: var(--s75b-accent);
  font-weight: 700;
  cursor: pointer;
  transition: color 0.15s;
}

.s75b-promo-text:hover {
  color: var(--s75b-accent2);
}

.s75b-divider {
  height: 1px;
  background: var(--s75b-card-border);
  margin: 12px 0;
}

/* H1 styling */
.s75b-page-h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--s75b-accent2);
  padding: 12px;
  line-height: 2.4rem;
}

/* Help page styles */
.s75b-help-section {
  padding: 16px 12px;
}

.s75b-help-section h2 {
  font-size: 1.6rem;
  color: var(--s75b-accent2);
  margin-bottom: 8px;
  border-left: 3px solid var(--s75b-accent);
  padding-left: 8px;
}

.s75b-help-section h3 {
  font-size: 1.4rem;
  color: var(--s75b-accent);
  margin: 10px 0 6px;
}

.s75b-help-section p {
  font-size: 1.3rem;
  color: #ccc;
  line-height: 1.7rem;
  margin-bottom: 8px;
}

.s75b-faq-item {
  margin-bottom: 10px;
  padding: 10px;
  background: var(--s75b-card-bg);
  border-radius: var(--s75b-radius);
  border-left: 3px solid var(--s75b-accent);
}

.s75b-faq-item strong {
  color: var(--s75b-accent2);
  font-size: 1.3rem;
}

.s75b-faq-item p {
  margin-top: 4px;
}

/* Responsive fine-tuning */
@media (max-width: 360px) {
  .s75b-game-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }

  .s75b-logo-area span {
    font-size: 1.2rem;
  }
}
