/**
 * Progressive Jackpot - Core Stylesheet
 * Prefix: s527-
 * Color palette: #0C0C0C (bg) | #F5F5F5 (text) | #E0F2F1 (accent) | #F0E68C (highlight)
 */

:root {
  --s527-primary: #0C0C0C;
  --s527-bg: #0C0C0C;
  --s527-bg-light: #1a1a1a;
  --s527-bg-card: #222222;
  --s527-text: #F5F5F5;
  --s527-text-muted: #b0b0b0;
  --s527-accent: #E0F2F1;
  --s527-highlight: #F0E68C;
  --s527-highlight-dark: #d4c96e;
  --s527-border: #333333;
  --s527-gradient-gold: linear-gradient(135deg, #F0E68C, #d4c96e);
  --s527-gradient-dark: linear-gradient(180deg, #0C0C0C 0%, #1a1a1a 100%);
  --s527-radius: 8px;
  --s527-radius-lg: 12px;
  --s527-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  --s527-shadow-gold: 0 2px 16px rgba(240, 230, 140, 0.25);
  --s527-transition: all 0.3s ease;
  --s527-header-h: 56px;
  --s527-bottom-h: 60px;
}

/* Reset & Base */
*, *::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(--s527-bg);
  color: var(--s527-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--s527-highlight); text-decoration: none; transition: var(--s527-transition); }
a:hover { color: var(--s527-highlight-dark); }
img { max-width: 100%; height: auto; display: block; }

/* Container */
.s527-container { max-width: 430px; margin: 0 auto; padding: 0 1.2rem; width: 100%; }
.s527-wrapper { padding-top: var(--s527-header-h); }

/* Header */
.s527-header {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--s527-header-h);
  background: var(--s527-bg);
  border-bottom: 1px solid var(--s527-border);
  z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.2rem;
}
.s527-header-brand {
  display: flex; align-items: center; gap: 0.8rem;
}
.s527-header-brand img { width: 28px; height: 28px; }
.s527-header-brand span {
  font-size: 1.5rem; font-weight: 700; color: var(--s527-highlight);
  letter-spacing: 0.5px;
}
.s527-header-actions { display: flex; align-items: center; gap: 0.6rem; }
.s527-header-actions button {
  padding: 0.6rem 1.2rem; border-radius: var(--s527-radius);
  font-size: 1.2rem; font-weight: 600; border: none; cursor: pointer;
  transition: var(--s527-transition);
}
.s527-btn-register {
  background: var(--s527-gradient-gold); color: var(--s527-primary);
}
.s527-btn-register:hover { box-shadow: var(--s527-shadow-gold); transform: scale(1.03); }
.s527-btn-login {
  background: transparent; color: var(--s527-highlight);
  border: 1px solid var(--s527-highlight) !important;
}
.s527-btn-login:hover { background: rgba(240, 230, 140, 0.1); }
.s527-menu-toggle {
  background: none; border: none; color: var(--s527-text); font-size: 2rem;
  cursor: pointer; padding: 0.4rem; line-height: 1;
}

/* Mobile Menu */
.s527-mobile-menu {
  position: fixed; top: 0; right: -280px; width: 280px; height: 100vh;
  background: var(--s527-bg-light); z-index: 9999;
  transition: right 0.3s ease; padding: 2rem 1.6rem;
  overflow-y: auto;
}
.s527-menu-active { right: 0; }
.s527-mobile-menu .s527-menu-close {
  background: none; border: none; color: var(--s527-text);
  font-size: 2.4rem; cursor: pointer; position: absolute; top: 1rem; right: 1.2rem;
}
.s527-mobile-menu nav { margin-top: 3rem; }
.s527-mobile-menu nav a {
  display: block; padding: 1.2rem 0; font-size: 1.4rem;
  color: var(--s527-text); border-bottom: 1px solid var(--s527-border);
}
.s527-mobile-menu nav a:hover { color: var(--s527-highlight); }

/* Overlay */
.s527-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.6); z-index: 9998;
  opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.s527-overlay-active { opacity: 1; pointer-events: auto; }

/* Carousel */
.s527-carousel { position: relative; overflow: hidden; border-radius: var(--s527-radius-lg); margin-bottom: 2rem; }
.s527-slide {
  display: none; width: 100%; cursor: pointer; position: relative;
}
.s527-slide img { width: 100%; height: auto; border-radius: var(--s527-radius-lg); }
.s527-slide-active { display: block; }
.s527-dots { display: flex; justify-content: center; gap: 0.6rem; margin-top: 0.8rem; }
.s527-slide-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--s527-border);
  border: none; cursor: pointer; transition: var(--s527-transition);
}
.s527-dot-active { background: var(--s527-highlight); transform: scale(1.3); }

/* Section titles */
.s527-section-title {
  font-size: 1.8rem; font-weight: 700; margin-bottom: 1.2rem;
  color: var(--s527-highlight); position: relative;
  padding-bottom: 0.6rem;
}
.s527-section-title::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 40px; height: 3px; background: var(--s527-gradient-gold);
  border-radius: 2px;
}

/* Game grid */
.s527-game-section { margin-bottom: 2.4rem; }
.s527-game-category {
  font-size: 1.4rem; font-weight: 600; color: var(--s527-accent);
  margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 1px;
}
.s527-game-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}
.s527-game-item {
  display: flex; flex-direction: column; align-items: center;
  cursor: pointer; transition: var(--s527-transition);
  border-radius: var(--s527-radius); padding: 0.4rem;
}
.s527-game-item:hover { transform: translateY(-2px); background: rgba(240,230,140,0.06); }
.s527-game-item img {
  width: 100%; aspect-ratio: 1; border-radius: var(--s527-radius);
  object-fit: cover; border: 1px solid var(--s527-border);
}
.s527-game-item span {
  font-size: 1rem; color: var(--s527-text-muted); margin-top: 0.3rem;
  text-align: center; line-height: 1.2; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; max-width: 100%;
}

/* Content cards */
.s527-card {
  background: var(--s527-bg-card); border-radius: var(--s527-radius-lg);
  padding: 1.6rem; margin-bottom: 1.6rem; border: 1px solid var(--s527-border);
}
.s527-card h2, .s527-card h3 { color: var(--s527-highlight); margin-bottom: 0.8rem; }
.s527-card p { color: var(--s527-text-muted); line-height: 1.8rem; margin-bottom: 0.8rem; }
.s527-card p:last-child { margin-bottom: 0; }

/* Promo buttons */
.s527-promo-btn {
  display: inline-block; padding: 1rem 2.4rem;
  background: var(--s527-gradient-gold); color: var(--s527-primary);
  font-size: 1.4rem; font-weight: 700; border-radius: var(--s527-radius);
  border: none; cursor: pointer; transition: var(--s527-transition);
  text-align: center;
}
.s527-promo-btn:hover { box-shadow: var(--s527-shadow-gold); transform: scale(1.04); }
.s527-promo-link {
  color: var(--s527-highlight); font-weight: 700;
  text-decoration: underline; cursor: pointer;
}
.s527-promo-link:hover { color: var(--s527-highlight-dark); }

/* FAQ section */
.s527-faq-item { margin-bottom: 1.2rem; }
.s527-faq-item h3 { font-size: 1.3rem; color: var(--s527-accent); margin-bottom: 0.4rem; }
.s527-faq-item p { font-size: 1.2rem; color: var(--s527-text-muted); line-height: 1.6rem; }

/* Footer */
.s527-footer {
  background: var(--s527-bg-light); border-top: 1px solid var(--s527-border);
  padding: 2rem 1.2rem 2rem;
  margin-top: 2rem;
}
.s527-footer-brand { text-align: center; margin-bottom: 1.6rem; }
.s527-footer-brand p { color: var(--s527-text-muted); font-size: 1.2rem; line-height: 1.6rem; }
.s527-footer-links {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem;
  margin-bottom: 1.6rem;
}
.s527-footer-links a {
  padding: 0.6rem 1.4rem; background: var(--s527-bg-card);
  border-radius: var(--s527-radius); font-size: 1.1rem; color: var(--s527-text);
  border: 1px solid var(--s527-border); transition: var(--s527-transition);
}
.s527-footer-links a:hover { border-color: var(--s527-highlight); color: var(--s527-highlight); }
.s527-footer-partners {
  display: flex; justify-content: center; gap: 1.2rem;
  flex-wrap: wrap; margin-bottom: 1.6rem; align-items: center;
}
.s527-footer-partners img { height: 24px; opacity: 0.7; transition: var(--s527-transition); }
.s527-footer-partners img:hover { opacity: 1; }
.s527-footer-copy { text-align: center; font-size: 1.1rem; color: var(--s527-text-muted); }

/* Bottom Navigation */
.s527-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: var(--s527-bottom-h);
  background: var(--s527-bg-light);
  border-top: 1px solid var(--s527-border);
  display: flex; justify-content: space-around; align-items: center;
  z-index: 1000;
  padding: 0 0.4rem;
}
.s527-bottom-btn {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; min-width: 60px; min-height: 50px;
  background: none; border: none; cursor: pointer;
  color: var(--s527-text-muted); transition: var(--s527-transition);
  padding: 0.4rem; border-radius: var(--s527-radius);
}
.s527-bottom-btn i, .s527-bottom-btn span.material-symbols-outlined,
.s527-bottom-btn ion-icon, .s527-bottom-btn bi {
  font-size: 2.2rem; margin-bottom: 0.1rem; transition: var(--s527-transition);
}
.s527-bottom-btn ion-icon { font-size: 2.4rem; }
.s527-bottom-btn span {
  font-size: 1rem; color: var(--s527-text-muted);
}
.s527-bottom-btn:hover, .s527-bottom-btn.s527-active {
  color: var(--s527-highlight);
}
.s527-bottom-btn:hover i, .s527-bottom-btn.s527-active i,
.s527-bottom-btn:hover span.material-symbols-outlined,
.s527-bottom-btn.s527-active span.material-symbols-outlined,
.s527-bottom-btn:hover ion-icon, .s527-bottom-btn.s527-active ion-icon {
  color: var(--s527-highlight); transform: scale(1.12);
}
.s527-bottom-btn:hover span, .s527-bottom-btn.s527-active span {
  color: var(--s527-highlight);
}
.s527-bottom-btn:active { transform: scale(0.92); }

/* CTA center button special styling */
.s527-bottom-cta {
  background: var(--s527-gradient-gold); color: var(--s527-primary);
  border-radius: 50%; width: 48px; height: 48px;
  min-width: 48px; min-height: 48px; margin-top: -16px;
  box-shadow: var(--s527-shadow-gold);
}
.s527-bottom-cta i, .s527-bottom-cta span { color: var(--s527-primary); }
.s527-bottom-cta:hover i, .s527-bottom-cta:hover span { color: var(--s527-primary); }
.s527-bottom-cta span { font-size: 0.8rem; }

/* Utility */
.s527-text-center { text-align: center; }
.s527-text-highlight { color: var(--s527-highlight); font-weight: 600; }
.s527-mb-1 { margin-bottom: 0.8rem; }
.s527-mb-2 { margin-bottom: 1.6rem; }
.s527-mb-3 { margin-bottom: 2.4rem; }
.s527-mt-2 { margin-top: 1.6rem; }
.s527-mt-3 { margin-top: 2.4rem; }

/* Help page specific */
.s527-help-section { margin-bottom: 2rem; }
.s527-help-section h2 {
  font-size: 1.6rem; color: var(--s527-highlight); margin-bottom: 0.8rem;
  border-left: 3px solid var(--s527-highlight); padding-left: 1rem;
}
.s527-help-section p { color: var(--s527-text-muted); line-height: 1.8rem; }
.s527-help-section ul {
  list-style: none; padding: 0;
}
.s527-help-section ul li {
  padding: 0.6rem 0; color: var(--s527-text-muted); line-height: 1.6rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.s527-help-section ul li i { color: var(--s527-highlight); margin-right: 0.6rem; }

/* Responsive */
@media (max-width: 768px) {
  .s527-wrapper { padding-bottom: calc(var(--s527-bottom-h) + 1rem); }
}
@media (min-width: 769px) {
  .s527-bottom-nav { display: none; }
  .s527-container { max-width: 430px; }
}
