/* U888VIP - Theme Stylesheet */
/* All classes use s2c4 prefix for namespace isolation */

:root {
  --s2c4-primary: #AD1457;
  --s2c4-secondary: #FFC0CB;
  --s2c4-bg-dark: #1C2833;
  --s2c4-bg-darker: #0F1419;
  --s2c4-text: #FFFFFF;
  --s2c4-text-muted: #B0BEC5;
  --s2c4-accent: #D81B60;
  --s2c4-accent2: #FFC0CB;
  --s2c4-font-size-base: 62.5%;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--s2c4-bg-dark);
  color: var(--s2c4-text);
  line-height: 1.5rem;
  font-size: 1.6rem;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
}

.s2c4-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
}

.s2c4-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  max-width: 430px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--s2c4-primary), var(--s2c4-accent));
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  z-index: 1000;
}

.s2c4-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
}

.s2c4-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--s2c4-text);
  font-weight: bold;
  font-size: 1.4rem;
}

.s2c4-logo-icon {
  width: 28px;
  height: 28px;
  margin-right: 0.5rem;
  color: var(--s2c4-secondary);
}

.s2c4-header-buttons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.s2c4-menu-toggle {
  background: none;
  border: none;
  color: var(--s2c4-text);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

.s2c4-btn {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 6px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.s2c4-btn-register {
  background: var(--s2c4-secondary);
  color: var(--s2c4-primary);
}

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

.s2c4-btn-login {
  background: transparent;
  color: var(--s2c4-text);
  border: 2px solid var(--s2c4-text);
}

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

.s2c4-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.6);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}

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

.s2c4-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100vh;
  background: var(--s2c4-bg-darker);
  padding: 4rem 1.5rem 2rem;
  transition: right 0.3s ease;
  z-index: 9999;
  overflow-y: auto;
}

.s2c4-menu-active {
  right: 0;
}

.s2c4-mobile-link {
  display: flex;
  align-items: center;
  padding: 1rem;
  color: var(--s2c4-text);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,192,203,0.1);
  transition: all 0.2s ease;
}

.s2c4-mobile-link:hover {
  background: var(--s2c4-primary);
  padding-left: 1.5rem;
}

.s2c4-mobile-link i {
  margin-right: 0.8rem;
  width: 20px;
  text-align: center;
}

.s2c4-main {
  padding-top: 70px;
  padding-bottom: 80px;
  min-height: calc(100vh - 150px);
}

.s2c4-card {
  background: var(--s2c4-bg-darker);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  border: 1px solid var(--s2c4-primary);
}

.s2c4-card-title {
  color: var(--s2c4-secondary);
  font-size: 1.8rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.s2c4-card-content {
  color: var(--s2c4-text);
  line-height: 1.7;
}

.s2c4-text-highlight {
  color: var(--s2c4-secondary);
}

.s2c4-carousel {
  margin: 1.5rem 0;
  border-radius: 12px;
  overflow: hidden;
}

.s2c4-carousel img {
  width: 100%;
  height: auto;
  display: block;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.s2c4-carousel img:hover {
  transform: scale(1.02);
}

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

.s2c4-game-item {
  background: var(--s2c4-bg-dark);
  border-radius: 8px;
  padding: 0.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.s2c4-game-item:hover {
  border-color: var(--s2c4-secondary);
  transform: scale(1.05);
}

.s2c4-game-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 0.3rem;
}

.s2c4-game-name {
  display: block;
  font-size: 0.9rem;
  color: var(--s2c4-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.s2c4-footer {
  background: var(--s2c4-bg-darker);
  padding: 2rem 1rem 1rem;
  text-align: center;
}

.s2c4-footer-title {
  color: var(--s2c4-secondary);
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.s2c4-footer-text {
  color: var(--s2c4-text);
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.s2c4-partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 1.5rem 0;
}

.s2c4-partners img {
  width: 50px;
  height: 30px;
  object-fit: contain;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.s2c4-partners img:hover {
  opacity: 1;
}

.s2c4-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 430px;
  margin: 0 auto;
  background: linear-gradient(to top, var(--s2c4-bg-darker), var(--s2c4-bg-dark));
  border-top: 2px solid var(--s2c4-primary);
  z-index: 1000;
}

.s2c4-bottom-nav-content {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0.5rem 0;
  height: 60px;
}

.s2c4-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--s2c4-text);
  min-width: 60px;
  min-height: 60px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.s2c4-nav-item:active {
  transform: scale(0.95);
}

.s2c4-nav-icon {
  font-size: 22px;
  margin-bottom: 0.2rem;
  color: var(--s2c4-secondary);
}

.s2c4-nav-label {
  font-size: 0.9rem;
  color: var(--s2c4-text);
}

.s2c4-nav-item:hover .s2c4-nav-label {
  color: var(--s2c4-secondary);
}

.s2c4-touch-active {
  transform: scale(0.9);
}

a {
  color: var(--s2c4-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--s2c4-accent);
}

strong {
  color: var(--s2c4-secondary);
}

@media (min-width: 769px) {
  .s2c4-bottom-nav {
    display: none;
  }
  .s2c4-main {
    padding-bottom: 2rem;
  }
}

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