/**
 * Arena Plus PH - Main Stylesheet
 * All classes use s1ef- prefix for namespace isolation
 * Color palette: #F0E68C | #00BFFF | #FFEBCD | #2C2C2C | #F5DEB3
 * Dark colors = backgrounds, Light colors = text/accents
 */

/* CSS Variables */
:root {
  --s1ef-primary: #00BFFF;
  --s1ef-secondary: #F0E68C;
  --s1ef-accent: #FFEBCD;
  --s1ef-bg-dark: #2C2C2C;
  --s1ef-bg-light: #F5DEB3;
  --s1ef-text-light: #FFEBCD;
  --s1ef-text-bright: #F0E68C;
  --s1ef-text-white: #FFFFFF;
  --s1ef-text-dark: #2C2C2C;
  --s1ef-gold: #F0E68C;
  --s1ef-blue: #00BFFF;
  --s1ef-radius: 8px;
  --s1ef-radius-lg: 12px;
  --s1ef-shadow: 0 2px 12px rgba(0,0,0,0.3);
  --s1ef-shadow-lg: 0 4px 24px rgba(0,0,0,0.4);
  --s1ef-transition: all 0.3s ease;
}

/* 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: var(--s1ef-bg-dark);
  color: var(--s1ef-text-light);
  line-height: 1.5rem;
  font-size: 1.4rem;
  min-height: 100vh;
  overflow-x: hidden;
}
a { text-decoration: none; color: var(--s1ef-blue); transition: var(--s1ef-transition); }
a:hover { color: var(--s1ef-gold); }
img { max-width: 100%; height: auto; display: block; }

/* Container */
.s1ef-container { max-width: 430px; margin: 0 auto; padding: 0 1.2rem; width: 100%; }
.s1ef-wrapper { width: 100%; overflow: hidden; }

/* Header */
.s1ef-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border-bottom: 2px solid var(--s1ef-blue);
  height: 56px;
}
.s1ef-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 56px; padding: 0 1rem;
}
.s1ef-logo-wrap { display: flex; align-items: center; gap: 8px; }
.s1ef-logo-wrap img { width: 32px; height: 32px; border-radius: 4px; }
.s1ef-logo-text {
  font-size: 1.6rem; font-weight: 700; color: var(--s1ef-gold);
  white-space: nowrap;
}
.s1ef-header-btns { display: flex; align-items: center; gap: 8px; }
.s1ef-btn-register {
  background: linear-gradient(135deg, var(--s1ef-blue), #0088cc);
  color: var(--s1ef-text-white); border: none; border-radius: var(--s1ef-radius);
  padding: 6px 14px; font-size: 1.2rem; font-weight: 600; cursor: pointer;
  transition: var(--s1ef-transition); white-space: nowrap;
}
.s1ef-btn-register:hover { transform: scale(1.05); box-shadow: 0 0 12px rgba(0,191,255,0.5); }
.s1ef-btn-login {
  background: transparent; color: var(--s1ef-gold);
  border: 1.5px solid var(--s1ef-gold); border-radius: var(--s1ef-radius);
  padding: 5px 14px; font-size: 1.2rem; font-weight: 600; cursor: pointer;
  transition: var(--s1ef-transition); white-space: nowrap;
}
.s1ef-btn-login:hover { background: rgba(240,230,140,0.1); }
.s1ef-menu-toggle {
  background: none; border: none; color: var(--s1ef-text-light);
  font-size: 2.2rem; cursor: pointer; padding: 4px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}

/* Mobile Menu Overlay */
.s1ef-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: var(--s1ef-transition);
}
.s1ef-overlay-active { opacity: 1; visibility: visible; }

/* Mobile Side Menu */
.s1ef-mobile-menu {
  position: fixed; top: 0; right: -280px; width: 280px; height: 100%;
  background: linear-gradient(180deg, #1a1a2e, #16213e);
  z-index: 9999; transition: right 0.3s ease; overflow-y: auto;
  box-shadow: -4px 0 20px rgba(0,0,0,0.5);
}
.s1ef-menu-active { right: 0; }
.s1ef-menu-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem 1.2rem; border-bottom: 1px solid rgba(0,191,255,0.2);
}
.s1ef-menu-title { color: var(--s1ef-gold); font-size: 1.6rem; font-weight: 700; }
.s1ef-menu-close { background: none; border: none; color: var(--s1ef-text-light); font-size: 2rem; cursor: pointer; }
.s1ef-menu-list { list-style: none; padding: 1rem 0; }
.s1ef-menu-item {
  display: block; padding: 1.2rem 1.6rem; color: var(--s1ef-text-light);
  font-size: 1.4rem; transition: var(--s1ef-transition); border-bottom: 1px solid rgba(255,255,255,0.05);
}
.s1ef-menu-item:hover { background: rgba(0,191,255,0.1); color: var(--s1ef-blue); }

/* Carousel */
.s1ef-carousel { position: relative; overflow: hidden; margin-top: 56px; }
.s1ef-slide {
  display: none; width: 100%; cursor: pointer;
  transition: opacity 0.5s ease;
}
.s1ef-slide-active { display: block; }
.s1ef-slide img { width: 100%; height: auto; min-height: 160px; object-fit: cover; }
.s1ef-carousel-dots {
  position: absolute; bottom: 10px; left: 50%;
  transform: translateX(-50%); display: flex; gap: 8px;
}
.s1ef-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.5); cursor: pointer; border: none;
  transition: var(--s1ef-transition);
}
.s1ef-dot-active { background: var(--s1ef-gold); transform: scale(1.3); }

/* Main Content */
.s1ef-main { padding-bottom: 20px; }
@media (max-width: 768px) {
  .s1ef-main { padding-bottom: 80px; }
}

/* Section */
.s1ef-section {
  padding: 2rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.s1ef-section-title {
  font-size: 1.8rem; font-weight: 700; color: var(--s1ef-gold);
  margin-bottom: 1.2rem; padding: 0 0.4rem;
  display: flex; align-items: center; gap: 8px;
}
.s1ef-section-title i { color: var(--s1ef-blue); }

/* H1 */
.s1ef-h1 {
  font-size: 2rem; font-weight: 800; color: var(--s1ef-gold);
  text-align: center; margin: 1.6rem 0; line-height: 1.4;
  padding: 0 0.8rem;
}

/* Game Grid */
.s1ef-game-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 8px; padding: 0.4rem;
}
.s1ef-game-item {
  text-align: center; cursor: pointer;
  transition: var(--s1ef-transition); border-radius: var(--s1ef-radius);
  padding: 6px; background: rgba(255,255,255,0.03);
}
.s1ef-game-item:hover {
  transform: translateY(-2px);
  background: rgba(0,191,255,0.1);
  box-shadow: 0 4px 12px rgba(0,191,255,0.2);
}
.s1ef-game-img {
  width: 100%; aspect-ratio: 1; border-radius: var(--s1ef-radius);
  object-fit: cover; margin-bottom: 4px;
}
.s1ef-game-name {
  font-size: 1.1rem; color: var(--s1ef-text-light);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  line-height: 1.3;
}

/* Category Header */
.s1ef-cat-header {
  display: flex; align-items: center; gap: 8px;
  margin: 1.6rem 0 1rem; padding: 0 0.4rem;
}
.s1ef-cat-icon {
  width: 28px; height: 28px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}
.s1ef-cat-name {
  font-size: 1.6rem; font-weight: 700; color: var(--s1ef-blue);
}

/* Content Cards */
.s1ef-card {
  background: linear-gradient(135deg, rgba(26,26,46,0.9), rgba(22,33,62,0.9));
  border: 1px solid rgba(0,191,255,0.15);
  border-radius: var(--s1ef-radius-lg); padding: 1.6rem;
  margin-bottom: 1.2rem;
  box-shadow: var(--s1ef-shadow);
}
.s1ef-card-title {
  font-size: 1.6rem; font-weight: 700; color: var(--s1ef-gold);
  margin-bottom: 0.8rem;
}
.s1ef-card-text {
  font-size: 1.3rem; line-height: 1.6; color: var(--s1ef-text-light);
}

/* Promo Button */
.s1ef-promo-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--s1ef-blue), #0088cc);
  color: var(--s1ef-text-white); font-weight: 700; font-size: 1.3rem;
  padding: 10px 24px; border-radius: var(--s1ef-radius);
  cursor: pointer; border: none; transition: var(--s1ef-transition);
  text-align: center;
}
.s1ef-promo-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(0,191,255,0.5);
}
.s1ef-promo-btn-gold {
  background: linear-gradient(135deg, var(--s1ef-gold), #daa520);
  color: var(--s1ef-text-dark);
}

/* Text Styles */
.s1ef-text-highlight { color: var(--s1ef-blue); font-weight: 600; }
.s1ef-text-gold { color: var(--s1ef-gold); font-weight: 600; }
.s1ef-text-muted { color: rgba(255,235,205,0.7); }
.s1ef-text-center { text-align: center; }

/* Promo Link Style */
.s1ef-promo-link {
  color: var(--s1ef-gold); font-weight: 700; cursor: pointer;
  border-bottom: 1px dashed var(--s1ef-gold);
  transition: var(--s1ef-transition);
}
.s1ef-promo-link:hover { color: var(--s1ef-blue); border-color: var(--s1ef-blue); }

/* Bottom Navigation */
.s1ef-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(180deg, #1a1a2e, #0d1117);
  border-top: 2px solid var(--s1ef-blue);
  display: none; align-items: center; justify-content: space-around;
  height: 60px; padding: 0 4px;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.4);
}
.s1ef-bottom-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 60px; min-height: 54px; background: none; border: none;
  color: var(--s1ef-text-muted); cursor: pointer;
  transition: var(--s1ef-transition); padding: 4px 2px;
}
.s1ef-bottom-btn:hover, .s1ef-bottom-btn:focus {
  color: var(--s1ef-blue); transform: scale(1.1);
}
.s1ef-bottom-btn-active { color: var(--s1ef-gold); }
.s1ef-bottom-btn i, .s1ef-bottom-btn .material-icons {
  font-size: 22px; margin-bottom: 2px;
}
.s1ef-bottom-btn span { font-size: 1rem; line-height: 1.2; }

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

/* Footer */
.s1ef-footer {
  background: linear-gradient(180deg, #1a1a2e, #0d1117);
  border-top: 1px solid rgba(0,191,255,0.15);
  padding: 2rem 0 1rem; text-align: center;
}
@media (max-width: 768px) {
  .s1ef-footer { padding-bottom: 70px; }
}
.s1ef-footer-brand { color: var(--s1ef-gold); font-size: 1.6rem; font-weight: 700; margin-bottom: 0.8rem; }
.s1ef-footer-desc { color: var(--s1ef-text-muted); font-size: 1.2rem; margin-bottom: 1.2rem; line-height: 1.5; }
.s1ef-footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 1.2rem; }
.s1ef-footer-link {
  background: rgba(0,191,255,0.1); color: var(--s1ef-blue);
  padding: 6px 12px; border-radius: var(--s1ef-radius);
  font-size: 1.1rem; transition: var(--s1ef-transition);
}
.s1ef-footer-link:hover { background: rgba(0,191,255,0.2); }
.s1ef-footer-copy { color: rgba(255,255,255,0.4); font-size: 1.1rem; margin-top: 1rem; }

/* Breadcrumb */
.s1ef-breadcrumb {
  padding: 1rem 0; font-size: 1.2rem; color: var(--s1ef-text-muted);
  margin-top: 56px;
}
.s1ef-breadcrumb a { color: var(--s1ef-blue); }
.s1ef-breadcrumb span { margin: 0 4px; }

/* FAQ */
.s1ef-faq-item {
  background: rgba(0,191,255,0.05);
  border: 1px solid rgba(0,191,255,0.1);
  border-radius: var(--s1ef-radius); padding: 1.2rem;
  margin-bottom: 1rem;
}
.s1ef-faq-q {
  font-size: 1.4rem; font-weight: 700; color: var(--s1ef-gold);
  margin-bottom: 0.6rem;
}
.s1ef-faq-a {
  font-size: 1.3rem; color: var(--s1ef-text-light); line-height: 1.6;
}

/* Steps */
.s1ef-steps { counter-reset: s1ef-step; }
.s1ef-step {
  counter-increment: s1ef-step;
  display: flex; gap: 1rem; margin-bottom: 1.2rem;
  padding: 1rem; background: rgba(0,191,255,0.05);
  border-radius: var(--s1ef-radius);
  border-left: 3px solid var(--s1ef-blue);
}
.s1ef-step::before {
  content: counter(s1ef-step);
  min-width: 28px; height: 28px; border-radius: 50%;
  background: var(--s1ef-blue); color: var(--s1ef-text-white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.3rem;
}
.s1ef-step-content { flex: 1; }
.s1ef-step-title { font-weight: 700; color: var(--s1ef-gold); margin-bottom: 4px; font-size: 1.3rem; }
.s1ef-step-text { color: var(--s1ef-text-light); font-size: 1.2rem; line-height: 1.5; }

/* Feature List */
.s1ef-feature-list { list-style: none; }
.s1ef-feature-item {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1rem 0; border-bottom: 1px solid rgba(255,255,255,0.05);
}
.s1ef-feature-icon {
  min-width: 36px; height: 36px; border-radius: 8px;
  background: rgba(0,191,255,0.15);
  display: flex; align-items: center; justify-content: center;
  color: var(--s1ef-blue); font-size: 1.6rem;
}
.s1ef-feature-title { font-weight: 700; color: var(--s1ef-gold); font-size: 1.3rem; }
.s1ef-feature-desc { color: var(--s1ef-text-muted); font-size: 1.2rem; margin-top: 2px; }

/* Winner Badge */
.s1ef-winner-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(240,230,140,0.1); border: 1px solid rgba(240,230,140,0.3);
  border-radius: 20px; padding: 4px 12px; font-size: 1.1rem;
  color: var(--s1ef-gold);
}

/* Utility */
.s1ef-mt-1 { margin-top: 1rem; }
.s1ef-mt-2 { margin-top: 2rem; }
.s1ef-mb-1 { margin-bottom: 1rem; }
.s1ef-mb-2 { margin-bottom: 2rem; }
.s1ef-p-1 { padding: 1rem; }
.s1ef-text-sm { font-size: 1.2rem; }
.s1ef-text-lg { font-size: 1.6rem; }

/* Desktop adjustments */
@media (min-width: 769px) {
  .s1ef-container { max-width: 768px; }
  .s1ef-game-grid { grid-template-columns: repeat(5, 1fr); gap: 12px; }
  .s1ef-header-inner { max-width: 768px; margin: 0 auto; }
}
