/* Doremon X Game - Core Stylesheet */
/* All classes use sab7- prefix for namespace isolation */

:root {
  --sab7-primary: #FF6347;
  --sab7-accent: #FFCC02;
  --sab7-bg: #141414;
  --sab7-bg-light: #1E1E1E;
  --sab7-bg-card: #252525;
  --sab7-text: #FFCC02;
  --sab7-text-light: #FFFFFF;
  --sab7-text-muted: #CCCCCC;
  --sab7-border: rgba(255, 99, 71, 0.15);
  --sab7-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
  --sab7-radius: 10px;
  --sab7-radius-sm: 6px;
}

*, *::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', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--sab7-bg);
  color: var(--sab7-text-muted);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

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

/* ===== Header ===== */
.sab7-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  max-width: 430px;
  margin: 0 auto;
  height: 56px;
  background: linear-gradient(135deg, #1a1a1a 0%, #141414 100%);
  border-bottom: 1px solid var(--sab7-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.2rem;
  z-index: 1000;
}

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

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

.sab7-header-logo span {
  color: var(--sab7-accent);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.3px;
}

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

.sab7-btn-register, .sab7-btn-login {
  border: none;
  border-radius: var(--sab7-radius-sm);
  padding: 0.6rem 1.2rem;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sab7-btn-register {
  background: linear-gradient(135deg, var(--sab7-primary), #e5533a);
  color: #fff;
}

.sab7-btn-register:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 10px rgba(255, 99, 71, 0.4);
}

.sab7-btn-login {
  background: transparent;
  color: var(--sab7-accent);
  border: 1px solid var(--sab7-accent);
}

.sab7-btn-login:hover {
  background: rgba(255, 204, 2, 0.1);
}

.sab7-hamburger {
  background: none;
  border: none;
  color: var(--sab7-accent);
  font-size: 2.2rem;
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
  align-items: center;
}

/* ===== Mobile Menu ===== */
.sab7-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.sab7-overlay-active {
  opacity: 1;
  visibility: visible;
}

.sab7-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100%;
  background: linear-gradient(180deg, #1E1E1E, #141414);
  z-index: 9999;
  transition: right 0.3s ease;
  overflow-y: auto;
  padding: 2rem 0;
}

.sab7-menu-open {
  right: 0;
}

.sab7-menu-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--sab7-text-muted);
  font-size: 2.4rem;
  cursor: pointer;
}

.sab7-menu-nav {
  list-style: none;
  padding: 3rem 0 0;
}

.sab7-menu-nav li a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 2rem;
  color: var(--sab7-text-muted);
  font-size: 1.4rem;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.sab7-menu-nav li a:hover,
.sab7-menu-nav li a:active {
  color: var(--sab7-accent);
  background: rgba(255, 204, 2, 0.05);
  border-left-color: var(--sab7-accent);
}

.sab7-menu-nav li a .material-icons,
.sab7-menu-nav li a ion-icon {
  font-size: 2rem;
}

/* ===== Carousel ===== */
.sab7-carousel {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  margin-top: 56px;
}

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

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

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

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

.sab7-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}

.sab7-dot-active {
  background: var(--sab7-primary);
  width: 22px;
  border-radius: 4px;
}

/* ===== Main Content ===== */
.sab7-main {
  padding: 1.2rem;
}

.sab7-section {
  margin-bottom: 2rem;
}

.sab7-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--sab7-accent);
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--sab7-primary);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.sab7-section-title i,
.sab7-section-title .material-icons {
  font-size: 2rem;
  color: var(--sab7-primary);
}

/* ===== Game Grid ===== */
.sab7-game-category {
  margin-bottom: 2rem;
}

.sab7-category-label {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--sab7-primary);
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.sab7-game-item {
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.sab7-game-item:hover {
  transform: scale(1.08);
}

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

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

/* ===== Cards / Content Blocks ===== */
.sab7-card {
  background: var(--sab7-bg-card);
  border-radius: var(--sab7-radius);
  padding: 1.6rem;
  margin-bottom: 1.2rem;
  border: 1px solid var(--sab7-border);
}

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

.sab7-card-text {
  font-size: 1.3rem;
  line-height: 1.7;
  color: var(--sab7-text-muted);
}

.sab7-card-text p {
  margin-bottom: 0.8rem;
}

.sab7-promo-text {
  color: var(--sab7-primary);
  font-weight: 600;
  cursor: pointer;
  display: inline;
}

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

.sab7-promo-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--sab7-primary), #e5533a);
  color: #fff;
  font-weight: 600;
  padding: 0.8rem 2rem;
  border-radius: var(--sab7-radius);
  font-size: 1.4rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-align: center;
}

.sab7-promo-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 99, 71, 0.4);
}

.sab7-promo-btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--sab7-accent);
  border: 2px solid var(--sab7-accent);
  font-weight: 600;
  padding: 0.8rem 2rem;
  border-radius: var(--sab7-radius);
  font-size: 1.4rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.sab7-promo-btn-outline:hover {
  background: rgba(255, 204, 2, 0.1);
}

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

.sab7-footer-about {
  color: var(--sab7-text-muted);
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

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

.sab7-footer-links a {
  color: var(--sab7-text-muted);
  font-size: 1.2rem;
  padding: 0.4rem 0.8rem;
  background: var(--sab7-bg-card);
  border-radius: var(--sab7-radius-sm);
  transition: all 0.2s ease;
}

.sab7-footer-links a:hover {
  color: var(--sab7-accent);
  background: rgba(255, 204, 2, 0.1);
}

.sab7-footer-promo {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.sab7-footer-promo button {
  flex: 1;
  min-width: calc(50% - 0.6rem);
  padding: 0.8rem 0.5rem;
  border: none;
  border-radius: var(--sab7-radius-sm);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sab7-footer-promo .sab7-fp-primary {
  background: linear-gradient(135deg, var(--sab7-primary), #e5533a);
  color: #fff;
}

.sab7-footer-promo .sab7-fp-accent {
  background: linear-gradient(135deg, var(--sab7-accent), #e6b800);
  color: #141414;
}

.sab7-footer-copy {
  text-align: center;
  color: rgba(204, 204, 204, 0.5);
  font-size: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--sab7-border);
}

/* ===== Bottom Navigation ===== */
.sab7-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 430px;
  margin: 0 auto;
  height: 60px;
  background: linear-gradient(180deg, #1E1E1E 0%, #141414 100%);
  border-top: 1px solid var(--sab7-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  padding: 0 0.4rem;
}

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

.sab7-bottom-nav-btn i,
.sab7-bottom-nav-btn .material-icons,
.sab7-bottom-nav-btn ion-icon {
  font-size: 2.2rem;
}

.sab7-bottom-nav-btn span {
  font-size: 1rem;
  white-space: nowrap;
}

.sab7-bottom-nav-btn:active {
  transform: scale(0.92);
}

.sab7-bottom-nav-active {
  color: var(--sab7-accent) !important;
}

.sab7-bottom-nav-active::after {
  content: '';
  position: absolute;
  top: -1px;
  left: 20%;
  right: 20%;
  height: 2px;
  background: var(--sab7-accent);
  border-radius: 0 0 2px 2px;
}

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

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

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

.sab7-mt-1 {
  margin-top: 0.8rem;
}

.sab7-mb-1 {
  margin-bottom: 0.8rem;
}

.sab7-mt-2 {
  margin-top: 1.6rem;
}

.sab7-mb-2 {
  margin-bottom: 1.6rem;
}

.sab7-divider {
  height: 1px;
  background: var(--sab7-border);
  margin: 1.5rem 0;
}

.sab7-highlight {
  color: var(--sab7-primary);
  font-weight: 600;
}

.sab7-winner-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}

.sab7-winner-card {
  background: var(--sab7-bg-card);
  border-radius: var(--sab7-radius-sm);
  padding: 1rem;
  text-align: center;
  border: 1px solid var(--sab7-border);
}

.sab7-winner-name {
  color: var(--sab7-accent);
  font-weight: 600;
  font-size: 1.3rem;
}

.sab7-winner-amount {
  color: var(--sab7-primary);
  font-weight: 700;
  font-size: 1.5rem;
  margin: 0.3rem 0;
}

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

.sab7-rtp-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}

.sab7-rtp-item {
  background: var(--sab7-bg-card);
  border-radius: var(--sab7-radius-sm);
  padding: 0.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--sab7-border);
}

.sab7-rtp-name {
  font-size: 1.2rem;
  color: var(--sab7-text-muted);
}

.sab7-rtp-value {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--sab7-primary);
}

.sab7-faq-item {
  margin-bottom: 1rem;
  padding: 1.2rem;
  background: var(--sab7-bg-card);
  border-radius: var(--sab7-radius-sm);
  border: 1px solid var(--sab7-border);
}

.sab7-faq-q {
  font-weight: 600;
  color: var(--sab7-accent);
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.sab7-faq-a {
  color: var(--sab7-text-muted);
  font-size: 1.3rem;
  line-height: 1.6;
}

.sab7-cta-block {
  background: linear-gradient(135deg, rgba(255, 99, 71, 0.1), rgba(255, 204, 2, 0.1));
  border: 1px solid var(--sab7-border);
  border-radius: var(--sab7-radius);
  padding: 2rem 1.5rem;
  text-align: center;
  margin: 2rem 0;
}

.sab7-cta-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--sab7-accent);
  margin-bottom: 0.8rem;
}

.sab7-cta-text {
  color: var(--sab7-text-muted);
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
}

.sab7-list {
  list-style: none;
  padding: 0;
}

.sab7-list li {
  padding: 0.6rem 0;
  padding-left: 1.8rem;
  position: relative;
  font-size: 1.3rem;
  color: var(--sab7-text-muted);
  line-height: 1.6;
}

.sab7-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1.1rem;
  width: 6px;
  height: 6px;
  background: var(--sab7-primary);
  border-radius: 50%;
}
