/**
 * lovejl.click - Main Stylesheet
 * All classes use s4ef- prefix for namespace isolation
 * Color palette: #1B263B | #F0FDFF | #00CED1 | #6C757D
 */

:root {
  --s4ef-primary: #00CED1;
  --s4ef-bg: #1B263B;
  --s4ef-bg-light: #243352;
  --s4ef-bg-card: #1e2d47;
  --s4ef-text: #F0FDFF;
  --s4ef-text-muted: #6C757D;
  --s4ef-accent: #00CED1;
  --s4ef-accent-hover: #00b3b6;
  --s4ef-border: #2a3f5f;
  --s4ef-danger: #e74c3c;
  --s4ef-success: #27ae60;
  --s4ef-warning: #f39c12;
  --s4ef-radius: 8px;
  --s4ef-radius-lg: 14px;
  --s4ef-shadow: 0 2px 12px rgba(0,0,0,0.25);
  --s4ef-header-h: 56px;
  --s4ef-bottom-h: 60px;
}

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

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--s4ef-bg);
  color: var(--s4ef-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  min-height: 100vh;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--s4ef-accent); text-decoration: none; }
a:hover { color: var(--s4ef-accent-hover); text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

/* === HEADER === */
.s4ef-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--s4ef-header-h);
  background: var(--s4ef-bg);
  border-bottom: 1px solid var(--s4ef-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.2rem;
  z-index: 1000;
}

.s4ef-header-left {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.s4ef-logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.s4ef-site-name {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--s4ef-primary);
  letter-spacing: 0.5px;
}

.s4ef-header-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

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

.s4ef-btn-register {
  background: var(--s4ef-primary);
  color: var(--s4ef-bg);
}

.s4ef-btn-register:hover {
  background: var(--s4ef-accent-hover);
  transform: scale(1.03);
}

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

.s4ef-btn-login:hover {
  background: rgba(0,206,209,0.1);
}

.s4ef-menu-toggle {
  background: none;
  border: none;
  color: var(--s4ef-text);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
  align-items: center;
}

/* === MOBILE MENU === */
.s4ef-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100vh;
  background: var(--s4ef-bg-light);
  z-index: 9999;
  transition: right 0.3s ease;
  padding: 2rem 1.5rem;
  overflow-y: auto;
}

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

.s4ef-menu-close {
  background: none;
  border: none;
  color: var(--s4ef-text);
  font-size: 2.2rem;
  cursor: pointer;
  position: absolute;
  top: 1rem;
  right: 1.2rem;
}

.s4ef-menu-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--s4ef-primary);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--s4ef-border);
}

.s4ef-menu-list { list-style: none; }

.s4ef-menu-list li {
  margin-bottom: 0.4rem;
}

.s4ef-menu-list a {
  display: block;
  padding: 1rem 0.8rem;
  color: var(--s4ef-text);
  font-size: 1.4rem;
  border-radius: var(--s4ef-radius);
  transition: background 0.2s;
}

.s4ef-menu-list a:hover {
  background: rgba(0,206,209,0.1);
  text-decoration: none;
  color: var(--s4ef-primary);
}

.s4ef-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 9998;
  display: none;
}

.s4ef-overlay-active { display: block; }

/* === MAIN CONTENT === */
.s4ef-main {
  padding-top: var(--s4ef-header-h);
  min-height: 100vh;
}

/* === CAROUSEL === */
.s4ef-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  max-height: 200px;
}

.s4ef-slides-wrapper {
  display: flex;
  transition: none;
}

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

.s4ef-slide-active { display: block; }

.s4ef-slide img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

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

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

.s4ef-dot-active { background: var(--s4ef-primary); }

/* === SECTION STYLES === */
.s4ef-section {
  padding: 2rem 1.2rem;
}

.s4ef-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--s4ef-text);
  margin-bottom: 1.2rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--s4ef-primary);
  display: inline-block;
}

.s4ef-section-subtitle {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--s4ef-primary);
  margin: 1.2rem 0 0.8rem;
}

/* === GAME GRID === */
.s4ef-game-category-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--s4ef-primary);
  margin: 1.6rem 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

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

.s4ef-game-item {
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s;
  border-radius: var(--s4ef-radius);
  padding: 0.5rem;
}

.s4ef-game-item:hover {
  transform: scale(1.05);
  background: var(--s4ef-bg-card);
}

.s4ef-game-item img {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  margin: 0 auto 0.4rem;
  object-fit: cover;
}

.s4ef-game-name {
  font-size: 1.1rem;
  color: var(--s4ef-text);
  line-height: 1.3rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* === CARDS === */
.s4ef-card {
  background: var(--s4ef-bg-card);
  border-radius: var(--s4ef-radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.2rem;
  border: 1px solid var(--s4ef-border);
}

.s4ef-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--s4ef-primary);
  margin-bottom: 0.8rem;
}

.s4ef-card p {
  font-size: 1.3rem;
  line-height: 1.8rem;
  color: var(--s4ef-text);
  margin-bottom: 0.6rem;
}

/* === PROMO BUTTONS === */
.s4ef-promo-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--s4ef-primary), #00a8aa);
  color: var(--s4ef-bg);
  padding: 1rem 2rem;
  border-radius: var(--s4ef-radius);
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.25s;
  text-align: center;
}

.s4ef-promo-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,206,209,0.4);
  text-decoration: none;
  color: var(--s4ef-bg);
}

.s4ef-promo-link {
  color: var(--s4ef-primary);
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s;
}

.s4ef-promo-link:hover {
  color: var(--s4ef-accent-hover);
  text-decoration: underline;
}

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

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

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

.s4ef-footer-links a {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--s4ef-bg-card);
  color: var(--s4ef-text);
  font-size: 1.2rem;
  border-radius: var(--s4ef-radius);
  border: 1px solid var(--s4ef-border);
  transition: all 0.2s;
}

.s4ef-footer-links a:hover {
  border-color: var(--s4ef-primary);
  color: var(--s4ef-primary);
  text-decoration: none;
}

.s4ef-footer-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  margin-bottom: 1.2rem;
  justify-content: center;
}

.s4ef-footer-partners img {
  height: 24px;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.s4ef-footer-partners img:hover { opacity: 1; }

.s4ef-footer-copy {
  text-align: center;
  font-size: 1.1rem;
  color: var(--s4ef-text-muted);
  padding-top: 1rem;
  border-top: 1px solid var(--s4ef-border);
}

/* === BOTTOM NAV === */
.s4ef-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--s4ef-bottom-h);
  background: var(--s4ef-bg);
  border-top: 1px solid var(--s4ef-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  padding: 0 0.3rem;
}

.s4ef-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(--s4ef-text-muted);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0.3rem 0;
  position: relative;
}

.s4ef-bottom-btn i,
.s4ef-bottom-btn .material-icons,
.s4ef-bottom-btn ion-icon {
  font-size: 22px;
  margin-bottom: 2px;
}

.s4ef-bottom-btn:hover {
  color: var(--s4ef-primary);
  transform: scale(1.08);
}

.s4ef-bottom-active {
  color: var(--s4ef-primary) !important;
}

.s4ef-bottom-active::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 2px;
  background: var(--s4ef-primary);
  border-radius: 2px;
}

.s4ef-bottom-label {
  font-size: 1rem;
  line-height: 1.2rem;
}

/* === RESPONSIVE === */
@media (min-width: 769px) {
  .s4ef-bottom-nav { display: none; }
  .s4ef-header { max-width: 430px; left: 50%; transform: translateX(-50%); }
  body { display: flex; justify-content: center; }
  .s4ef-main { max-width: 430px; width: 100%; }
  .s4ef-footer { max-width: 430px; }
  .s4ef-mobile-menu { max-width: 280px; }
}

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

/* === UTILITY === */
.s4ef-text-center { text-align: center; }
.s4ef-mt-1 { margin-top: 1rem; }
.s4ef-mt-2 { margin-top: 2rem; }
.s4ef-mb-1 { margin-bottom: 1rem; }
.s4ef-mb-2 { margin-bottom: 2rem; }
.s4ef-hidden { display: none; }
.s4ef-divider { border: none; border-top: 1px solid var(--s4ef-border); margin: 1.5rem 0; }
