/**
 * 4999bet Layout Stylesheet
 * All classes prefixed with s755- for namespace isolation
 * Design: Dark (#0A0A0A) background, gold (#FFD700) accents
 * Mobile-first, max-width 430px
 */

/* ===== CSS Custom Properties ===== */
:root {
  --s755-bg-dark: #0A0A0A;
  --s755-bg-card: #141414;
  --s755-bg-card-hover: #1C1C1C;
  --s755-bg-header: #0D0D0D;
  --s755-text-light: #CCCCCC;
  --s755-text-muted: #888888;
  --s755-gold: #FFD700;
  --s755-orange: #FF4500;
  --s755-amber: #FFBF00;
  --s755-radius: 10px;
  --s755-radius-sm: 6px;
  --s755-shadow: 0 2px 12px rgba(255, 215, 0, 0.08);
  --s755-transition: all 0.25s ease;
  --s755-max-width: 430px;
}

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

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

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

a:hover {
  color: var(--s755-amber);
}

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

/* ===== Header ===== */
.s755-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--s755-max-width);
  height: 56px;
  background: var(--s755-bg-header);
  border-bottom: 1px solid rgba(255, 215, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.s755-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 2rem;
  font-weight: 800;
  color: var(--s755-gold);
  letter-spacing: 1px;
  text-shadow: 0 0 12px rgba(255, 215, 0, 0.3);
}

.s755-logo img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

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

.s755-btn-register {
  background: linear-gradient(135deg, var(--s755-gold), var(--s755-amber));
  color: var(--s755-bg-dark);
  font-weight: 700;
  font-size: 1.2rem;
  padding: 7px 16px;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  transition: var(--s755-transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.s755-btn-register:hover {
  transform: scale(1.05);
  box-shadow: 0 0 16px rgba(255, 215, 0, 0.4);
}

.s755-btn-login {
  background: transparent;
  color: var(--s755-gold);
  font-weight: 600;
  font-size: 1.2rem;
  padding: 7px 16px;
  border: 1.5px solid var(--s755-gold);
  border-radius: 20px;
  cursor: pointer;
  transition: var(--s755-transition);
}

.s755-btn-login:hover {
  background: rgba(255, 215, 0, 0.1);
  transform: scale(1.05);
}

.s755-menu-toggle {
  background: none;
  border: none;
  color: var(--s755-gold);
  font-size: 2.2rem;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.s755-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100%;
  background: var(--s755-bg-dark);
  border-left: 1px solid rgba(255, 215, 0, 0.2);
  z-index: 9999;
  transition: right 0.3s ease;
  overflow-y: auto;
  padding: 60px 0 80px 0;
}

.s755-mobile-menu.s755-menu-open {
  right: 0;
}

.s755-mobile-menu.s755-menu-closed {
  right: -280px;
}

.s755-menu-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  color: var(--s755-text-light);
  font-size: 2.4rem;
  cursor: pointer;
}

.s755-menu-nav {
  list-style: none;
  padding: 0;
}

.s755-menu-nav li {
  border-bottom: 1px solid rgba(255, 215, 0, 0.08);
}

.s755-menu-nav li a {
  display: block;
  padding: 14px 20px;
  color: var(--s755-text-light);
  font-size: 1.5rem;
  font-weight: 500;
  transition: var(--s755-transition);
}

.s755-menu-nav li a:hover {
  color: var(--s755-gold);
  background: rgba(255, 215, 0, 0.06);
  padding-left: 28px;
}

/* ===== Main Content ===== */
main {
  padding-top: 56px;
  padding-bottom: 20px;
}

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

.s755-container {
  padding: 0 12px;
}

/* ===== Carousel ===== */
.s755-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--s755-radius);
  margin-top: 8px;
}

.s755-carousel-slide {
  display: none;
  width: 100%;
}

.s755-carousel-slide.s755-slide-active {
  display: block;
}

.s755-carousel-slide img {
  width: 100%;
  height: auto;
  border-radius: var(--s755-radius);
}

.s755-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 8px 0;
}

.s755-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 215, 0, 0.3);
  border: none;
  cursor: pointer;
  transition: var(--s755-transition);
}

.s755-carousel-dot.s755-dot-active {
  background: var(--s755-gold);
  width: 20px;
  border-radius: 4px;
}

/* ===== Category Tabs ===== */
.s755-category-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 12px 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.s755-category-tabs::-webkit-scrollbar {
  display: none;
}

.s755-cat-tab {
  flex-shrink: 0;
  padding: 8px 16px;
  background: var(--s755-bg-card);
  color: var(--s755-text-muted);
  border: 1px solid rgba(255, 215, 0, 0.1);
  border-radius: 20px;
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--s755-transition);
  white-space: nowrap;
}

.s755-cat-tab:hover,
.s755-cat-tab.s755-tab-active {
  background: linear-gradient(135deg, var(--s755-gold), var(--s755-amber));
  color: var(--s755-bg-dark);
  border-color: var(--s755-gold);
}

/* ===== Section Title ===== */
.s755-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--s755-gold);
  margin: 18px 0 10px 0;
  padding-left: 10px;
  border-left: 3px solid var(--s755-orange);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ===== Game Grid ===== */
.s755-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 4px 0 12px 0;
}

.s755-game-card {
  background: var(--s755-bg-card);
  border-radius: var(--s755-radius-sm);
  overflow: hidden;
  cursor: pointer;
  transition: var(--s755-transition);
  border: 1px solid rgba(255, 215, 0, 0.06);
}

.s755-game-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 215, 0, 0.2);
  box-shadow: var(--s755-shadow);
}

.s755-game-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.s755-game-card-name {
  padding: 4px 4px 6px 4px;
  font-size: 1.05rem;
  color: var(--s755-text-light);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

/* ===== Promo Banner ===== */
.s755-promo-banner {
  background: linear-gradient(135deg, rgba(255, 69, 0, 0.15), rgba(255, 215, 0, 0.1));
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: var(--s755-radius);
  padding: 16px;
  margin: 14px 0;
  text-align: center;
}

.s755-promo-banner h3 {
  color: var(--s755-gold);
  font-size: 1.6rem;
  margin-bottom: 6px;
}

.s755-promo-banner p {
  color: var(--s755-text-muted);
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.s755-promo-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--s755-orange), var(--s755-gold));
  color: var(--s755-bg-dark);
  font-weight: 700;
  font-size: 1.3rem;
  padding: 10px 28px;
  border: none;
  border-radius: 24px;
  cursor: pointer;
  transition: var(--s755-transition);
}

.s755-promo-btn:hover {
  transform: scale(1.06);
  box-shadow: 0 4px 20px rgba(255, 69, 0, 0.4);
}

/* ===== Bottom Navigation ===== */
.s755-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--s755-max-width);
  height: 60px;
  background: linear-gradient(180deg, #0F0F0F, #080808);
  border-top: 1px solid rgba(255, 215, 0, 0.2);
  z-index: 1000;
  justify-content: space-around;
  align-items: center;
  padding: 0 4px;
}

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

.s755-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 54px;
  background: none;
  border: none;
  color: var(--s755-text-muted);
  font-size: 1rem;
  cursor: pointer;
  transition: var(--s755-transition);
  gap: 2px;
  position: relative;
}

.s755-nav-btn:hover,
.s755-nav-btn.s755-nav-active {
  color: var(--s755-gold);
}

.s755-nav-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--s755-gold);
  transition: width 0.2s ease;
}

.s755-nav-btn.s755-nav-active::after {
  width: 30px;
}

.s755-nav-btn .material-icons-outlined {
  font-size: 22px;
}

.s755-nav-btn ion-icon {
  font-size: 22px;
}

.s755-nav-btn i {
  font-size: 20px;
}

.s755-nav-label {
  font-size: 1rem;
  line-height: 1.2;
}

/* ===== Footer ===== */
.s755-footer {
  background: #060606;
  border-top: 1px solid rgba(255, 215, 0, 0.1);
  padding: 20px 12px 24px 12px;
  margin-top: 20px;
}

.s755-footer-logo {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--s755-gold);
  margin-bottom: 12px;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}

.s755-footer-desc {
  text-align: center;
  font-size: 1.2rem;
  color: var(--s755-text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.s755-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}

.s755-footer-links a {
  font-size: 1.1rem;
  color: var(--s755-text-muted);
  padding: 4px 8px;
  border-radius: 4px;
  transition: var(--s755-transition);
}

.s755-footer-links a:hover {
  color: var(--s755-gold);
  background: rgba(255, 215, 0, 0.06);
}

.s755-footer-partners {
  text-align: center;
  margin-bottom: 12px;
}

.s755-footer-partners span {
  font-size: 1rem;
  color: var(--s755-text-muted);
  margin: 0 6px;
}

.s755-footer-copy {
  text-align: center;
  font-size: 1.1rem;
  color: #555;
  margin-top: 8px;
}

/* ===== Help Page Content ===== */
.s755-page-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--s755-gold);
  text-align: center;
  margin: 14px 0 10px 0;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.2);
}

.s755-page-subtitle {
  font-size: 1.3rem;
  color: var(--s755-text-muted);
  text-align: center;
  margin-bottom: 16px;
}

.s755-content-block {
  background: var(--s755-bg-card);
  border-radius: var(--s755-radius);
  padding: 16px;
  margin-bottom: 12px;
  border: 1px solid rgba(255, 215, 0, 0.06);
}

.s755-content-block h2 {
  font-size: 1.6rem;
  color: var(--s755-gold);
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}

.s755-content-block h3 {
  font-size: 1.4rem;
  color: var(--s755-amber);
  margin: 10px 0 6px 0;
}

.s755-content-block p {
  font-size: 1.3rem;
  line-height: 1.7;
  color: var(--s755-text-light);
  margin-bottom: 8px;
}

.s755-content-block ul,
.s755-content-block ol {
  padding-left: 20px;
  margin-bottom: 8px;
}

.s755-content-block li {
  font-size: 1.3rem;
  line-height: 1.7;
  color: var(--s755-text-light);
  margin-bottom: 4px;
}

.s755-inline-link {
  color: var(--s755-orange);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

.s755-inline-link:hover {
  color: var(--s755-gold);
}

/* ===== FAQ Accordion ===== */
.s755-faq-item {
  background: var(--s755-bg-card);
  border-radius: var(--s755-radius-sm);
  margin-bottom: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 215, 0, 0.06);
}

.s755-faq-q {
  padding: 12px 14px;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--s755-gold);
  cursor: default;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.s755-faq-q::before {
  content: 'Q:';
  color: var(--s755-orange);
  font-weight: 700;
  flex-shrink: 0;
}

.s755-faq-a {
  padding: 0 14px 12px 34px;
  font-size: 1.25rem;
  color: var(--s755-text-light);
  line-height: 1.6;
}

/* ===== Responsive Utilities ===== */
@media (min-width: 769px) {
  .s755-bottom-nav {
    display: none !important;
  }
}

@media (max-width: 360px) {
  .s755-game-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .s755-game-card-name {
    font-size: 0.95rem;
  }
}

/* ===== Scrollbar Styling ===== */
::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: var(--s755-bg-dark);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 215, 0, 0.3);
  border-radius: 2px;
}

/* ===== Selection Color ===== */
::selection {
  background: rgba(255, 215, 0, 0.3);
  color: var(--s755-bg-dark);
}
