/* 222bet apk - Layout Stylesheet */
/* All classes use s2f3- prefix for namespace isolation */

:root {
  --s2f3-primary: #8B0000;
  --s2f3-bg: #273746;
  --s2f3-text: #F8F8FF;
  --s2f3-accent: #FFC0CB;
  --s2f3-highlight: #FF1493;
  --s2f3-bg-dark: #1a2530;
  --s2f3-bg-card: #2c3e50;
  --s2f3-bg-light: #34495e;
  --s2f3-border: #3d566e;
  --s2f3-font-size: 62.5%;
}

html {
  font-size: var(--s2f3-font-size);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--s2f3-bg);
  color: var(--s2f3-text);
  line-height: 1.5rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Container */
.s2f3-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.2rem;
  position: relative;
}

/* Wrapper */
.s2f3-wrapper {
  width: 100%;
  min-height: 100vh;
}

/* Header */
.s2f3-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--s2f3-bg-dark);
  border-bottom: 2px solid var(--s2f3-primary);
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
}

.s2f3-header-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.s2f3-header-logo img {
  width: 28px;
  height: 28px;
  border-radius: 4px;
}

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

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

.s2f3-header-menu {
  background: none;
  border: none;
  color: var(--s2f3-text);
  font-size: 22px;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
}

/* Buttons */
.s2f3-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  min-height: 36px;
  transition: all 0.2s ease;
}

.s2f3-btn-register {
  background: var(--s2f3-highlight);
  color: #fff;
}

.s2f3-btn-login {
  background: var(--s2f3-primary);
  color: var(--s2f3-text);
}

.s2f3-btn:hover {
  opacity: 0.9;
  transform: scale(1.02);
}

.s2f3-btn-promo {
  background: linear-gradient(135deg, var(--s2f3-primary), var(--s2f3-highlight));
  color: #fff;
  font-size: 1.3rem;
  padding: 10px 20px;
  border-radius: 8px;
  width: 100%;
  margin: 6px 0;
}

/* Mobile Menu */
.s2f3-mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 100vh;
  background: var(--s2f3-bg-dark);
  z-index: 9999;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  padding-top: 60px;
  border-right: 2px solid var(--s2f3-primary);
}

.s2f3-mobile-menu a {
  display: block;
  padding: 12px 20px;
  color: var(--s2f3-text);
  text-decoration: none;
  font-size: 1.4rem;
  border-bottom: 1px solid var(--s2f3-border);
}

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

.s2f3-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9998;
}

/* Banner Slider */
.s2f3-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
  margin-top: 60px;
}

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

.s2f3-slide img {
  width: 100%;
  height: auto;
  display: block;
}

.s2f3-active {
  display: block;
}

.s2f3-slider-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

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

.s2f3-dot-active {
  background: var(--s2f3-highlight);
}

/* Category Tabs */
.s2f3-cat-tabs {
  display: flex;
  overflow-x: auto;
  gap: 8px;
  padding: 10px 0;
  scrollbar-width: none;
}

.s2f3-cat-tabs::-webkit-scrollbar {
  display: none;
}

.s2f3-cat-tab {
  flex-shrink: 0;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  background: var(--s2f3-bg-card);
  color: var(--s2f3-text);
  border: 1px solid var(--s2f3-border);
  transition: all 0.2s;
}

.s2f3-cat-active {
  background: var(--s2f3-primary);
  border-color: var(--s2f3-highlight);
  color: #fff;
}

/* Game Grid */
.s2f3-game-section {
  margin: 10px 0;
}

.s2f3-section-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 12px 0 8px;
  padding-left: 10px;
  border-left: 3px solid var(--s2f3-highlight);
  color: var(--s2f3-text);
}

.s2f3-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 4px 0;
}

.s2f3-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  background: var(--s2f3-bg-card);
  transition: transform 0.15s;
}

.s2f3-game-item:hover {
  transform: scale(1.03);
}

.s2f3-game-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.s2f3-game-item span {
  font-size: 1rem;
  text-align: center;
  padding: 4px 2px;
  color: var(--s2f3-text);
  line-height: 1.2rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Cards */
.s2f3-card {
  background: var(--s2f3-bg-card);
  border-radius: 10px;
  padding: 14px;
  margin: 10px 0;
  border: 1px solid var(--s2f3-border);
}

.s2f3-card h3 {
  margin: 0 0 8px;
  font-size: 1.5rem;
  color: var(--s2f3-accent);
}

.s2f3-card p {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.6rem;
  color: var(--s2f3-text);
}

/* Bottom Navigation */
.s2f3-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 60px;
  background: var(--s2f3-bg-dark);
  border-top: 2px solid var(--s2f3-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 4px;
}

.s2f3-bottom-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 56px;
  background: none;
  border: none;
  color: var(--s2f3-text);
  cursor: pointer;
  transition: color 0.2s, transform 0.15s;
  text-decoration: none;
  gap: 2px;
}

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

.s2f3-bottom-btn .s2f3-nav-icon {
  font-size: 22px;
  line-height: 1;
}

.s2f3-bottom-btn .s2f3-nav-label {
  font-size: 1rem;
  line-height: 1.2rem;
  font-weight: 500;
}

.s2f3-bottom-active {
  color: var(--s2f3-highlight) !important;
}

/* Footer */
.s2f3-footer {
  background: var(--s2f3-bg-dark);
  padding: 20px 14px;
  margin-top: 20px;
  border-top: 2px solid var(--s2f3-primary);
}

.s2f3-footer-desc {
  font-size: 1.2rem;
  line-height: 1.6rem;
  color: var(--s2f3-accent);
  margin-bottom: 12px;
}

.s2f3-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0;
}

.s2f3-footer-links a {
  color: var(--s2f3-text);
  font-size: 1.1rem;
  text-decoration: none;
  padding: 4px 8px;
  background: var(--s2f3-bg-card);
  border-radius: 4px;
  transition: color 0.2s;
}

.s2f3-footer-links a:hover {
  color: var(--s2f3-highlight);
}

.s2f3-footer-copy {
  text-align: center;
  font-size: 1.1rem;
  color: #8899a6;
  margin-top: 12px;
}

/* Promo text link */
.s2f3-promo-text {
  color: var(--s2f3-highlight);
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  border-bottom: 1px dashed var(--s2f3-highlight);
}

.s2f3-promo-text:hover {
  color: var(--s2f3-accent);
}

/* Section spacing */
.s2f3-section {
  padding: 8px 0;
}

/* Payment methods */
.s2f3-payment-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 8px 0;
}

.s2f3-payment-item {
  background: var(--s2f3-bg-card);
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--s2f3-accent);
  border: 1px solid var(--s2f3-border);
}

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

.s2f3-testimonial p {
  font-size: 1.2rem;
  margin: 0 0 6px;
}

.s2f3-testimonial cite {
  font-size: 1rem;
  color: var(--s2f3-accent);
  font-style: normal;
}

/* Winner showcase */
.s2f3-winner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  background: var(--s2f3-bg-card);
  border-radius: 8px;
  margin: 6px 0;
}

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

.s2f3-winner-amount {
  font-size: 1.3rem;
  color: #FFD700;
  font-weight: 700;
}

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

/* Mobile adjustments */
@media (max-width: 768px) {
  main {
    padding-bottom: 80px;
  }
  .s2f3-container {
    padding: 0 1rem;
  }
}

/* H1 heading */
.s2f3-h1 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--s2f3-text);
  margin: 14px 0 8px;
  line-height: 2.2rem;
}

.s2f3-h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--s2f3-accent);
  margin: 14px 0 6px;
}

.s2f3-h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--s2f3-highlight);
  margin: 10px 0 4px;
}

/* Text */
.s2f3-text {
  font-size: 1.2rem;
  line-height: 1.6rem;
  color: var(--s2f3-text);
  margin: 4px 0;
}

/* List */
.s2f3-list {
  padding-left: 20px;
  margin: 6px 0;
}

.s2f3-list li {
  font-size: 1.2rem;
  line-height: 1.6rem;
  margin: 4px 0;
}

/* Internal link */
.s2f3-internal-link {
  color: var(--s2f3-accent);
  text-decoration: underline;
}

.s2f3-internal-link:hover {
  color: var(--s2f3-highlight);
}

/* Back to top */
.s2f3-back-top {
  position: fixed;
  bottom: 72px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--s2f3-primary);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  z-index: 999;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
