/**
 * SpinTime PH - Main Stylesheet
 * Dark theme with ice blue accents
 * All classes prefixed with w112e-
 */

:root {
  --w112e-primary: #0C0C0C;
  --w112e-bg: #0C0C0C;
  --w112e-bg-card: #1A1A1A;
  --w112e-bg-section: #111111;
  --w112e-text: #E0E0E0;
  --w112e-text-muted: #999999;
  --w112e-accent: #F0FDFF;
  --w112e-accent-glow: rgba(240, 253, 255, 0.15);
  --w112e-highlight: #7DD3FC;
  --w112e-border: #2A2A2A;
  --w112e-btn-bg: #F0FDFF;
  --w112e-btn-text: #0C0C0C;
  --w112e-radius: 8px;
  --w112e-radius-lg: 12px;
  --w112e-shadow: 0 2px 8px rgba(0,0,0,0.4);
  --w112e-transition: all 0.3s ease;
}

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

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

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

a {
  color: var(--w112e-highlight);
  text-decoration: none;
  transition: var(--w112e-transition);
}

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

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

/* ===== HEADER ===== */
.w112e-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  max-width: 430px;
  margin: 0 auto;
  z-index: 1000;
  background: rgba(12, 12, 12, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--w112e-border);
  padding: 0 1.2rem;
  height: 5.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.w112e-logo-area {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.w112e-logo-area img {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 0.6rem;
}

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

.w112e-header-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.w112e-btn-register {
  background: var(--w112e-btn-bg);
  color: var(--w112e-btn-text);
  border: none;
  padding: 0.6rem 1.4rem;
  border-radius: var(--w112e-radius);
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--w112e-transition);
}

.w112e-btn-register:hover {
  background: var(--w112e-highlight);
  transform: scale(1.05);
}

.w112e-btn-login {
  background: transparent;
  color: var(--w112e-accent);
  border: 1px solid var(--w112e-accent);
  padding: 0.6rem 1.4rem;
  border-radius: var(--w112e-radius);
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--w112e-transition);
}

.w112e-btn-login:hover {
  background: var(--w112e-accent-glow);
}

.w112e-hamburger {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  cursor: pointer;
  padding: 0.8rem;
  background: none;
  border: none;
}

.w112e-hamburger span {
  display: block;
  width: 2.2rem;
  height: 0.2rem;
  background: var(--w112e-text);
  border-radius: 2px;
  transition: var(--w112e-transition);
}

/* ===== MOBILE MENU ===== */
.w112e-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.w112e-overlay-active {
  opacity: 1;
  pointer-events: auto;
}

.w112e-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100vh;
  background: #111111;
  z-index: 9999;
  transition: right 0.3s ease;
  padding: 2rem 0;
  overflow-y: auto;
}

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

.w112e-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1.6rem 1.6rem;
  border-bottom: 1px solid var(--w112e-border);
}

.w112e-menu-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--w112e-accent);
}

.w112e-menu-close {
  background: none;
  border: none;
  color: var(--w112e-text);
  font-size: 2.4rem;
  cursor: pointer;
  padding: 0.4rem;
}

.w112e-menu-nav {
  list-style: none;
  padding: 1rem 0;
}

.w112e-menu-nav li a {
  display: block;
  padding: 1.2rem 1.6rem;
  color: var(--w112e-text);
  font-size: 1.4rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: var(--w112e-transition);
}

.w112e-menu-nav li a:hover {
  background: var(--w112e-accent-glow);
  color: var(--w112e-accent);
  padding-left: 2.2rem;
}

/* ===== MAIN CONTENT ===== */
main {
  padding-top: 5.6rem;
  min-height: 100vh;
}

/* ===== BANNER SLIDER ===== */
.w112e-banner {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 0 0 var(--w112e-radius-lg) var(--w112e-radius-lg);
}

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

.w112e-slide img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.w112e-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.8rem;
}

.w112e-dot {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: var(--w112e-transition);
  border: none;
}

.w112e-dot-active {
  background: var(--w112e-accent);
  transform: scale(1.2);
}

/* ===== SECTIONS ===== */
.w112e-section {
  padding: 2rem 1.2rem;
}

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

.w112e-section-title i {
  color: var(--w112e-highlight);
  font-size: 2rem;
}

/* ===== GAME GRID ===== */
.w112e-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}

.w112e-game-item {
  text-align: center;
  cursor: pointer;
  transition: var(--w112e-transition);
  border-radius: var(--w112e-radius);
  padding: 0.6rem;
  background: var(--w112e-bg-card);
}

.w112e-game-item:hover {
  transform: translateY(-2px);
  background: rgba(240, 253, 255, 0.08);
  box-shadow: 0 4px 12px rgba(240, 253, 255, 0.1);
}

.w112e-game-item img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--w112e-radius);
  margin-bottom: 0.4rem;
}

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

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

.w112e-card h2 {
  font-size: 1.6rem;
  color: var(--w112e-accent);
  margin-bottom: 1rem;
}

.w112e-card h3 {
  font-size: 1.4rem;
  color: var(--w112e-highlight);
  margin: 1rem 0 0.6rem;
}

.w112e-card p {
  font-size: 1.3rem;
  color: var(--w112e-text);
  line-height: 2rem;
  margin-bottom: 0.8rem;
}

.w112e-card ul {
  list-style: none;
  padding: 0;
}

.w112e-card ul li {
  font-size: 1.3rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  color: var(--w112e-text);
  line-height: 1.8rem;
}

.w112e-card ul li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: var(--w112e-highlight);
  margin-right: 0.8rem;
  font-size: 1.1rem;
}

/* ===== CTA BUTTON ===== */
.w112e-cta-btn {
  display: inline-block;
  background: var(--w112e-btn-bg);
  color: var(--w112e-btn-text);
  padding: 1rem 2.4rem;
  border-radius: var(--w112e-radius);
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--w112e-transition);
  border: none;
  text-align: center;
}

.w112e-cta-btn:hover {
  background: var(--w112e-highlight);
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(240, 253, 255, 0.3);
}

.w112e-promo-text {
  display: inline-block;
  color: var(--w112e-highlight);
  font-weight: 700;
  cursor: pointer;
  transition: var(--w112e-transition);
  text-decoration: underline;
}

.w112e-promo-text:hover {
  color: var(--w112e-accent);
}

/* ===== TESTIMONIALS ===== */
.w112e-testimonial {
  background: var(--w112e-bg-section);
  border-radius: var(--w112e-radius);
  padding: 1.2rem;
  margin-bottom: 1rem;
  border-left: 3px solid var(--w112e-highlight);
}

.w112e-testimonial p {
  font-size: 1.2rem;
  font-style: italic;
  color: var(--w112e-text-muted);
  margin-bottom: 0.4rem;
}

.w112e-testimonial strong {
  color: var(--w112e-highlight);
  font-size: 1.1rem;
}

/* ===== WINNERS ===== */
.w112e-winner-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 1.2rem;
}

.w112e-winner-row:last-child {
  border-bottom: none;
}

.w112e-winner-name {
  color: var(--w112e-highlight);
  font-weight: 600;
}

.w112e-winner-game {
  color: var(--w112e-text-muted);
  flex: 1;
  text-align: center;
}

.w112e-winner-amount {
  color: var(--w112e-accent);
  font-weight: 700;
}

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

.w112e-footer-brand {
  font-size: 1.3rem;
  color: var(--w112e-text-muted);
  line-height: 1.8rem;
  margin-bottom: 1.2rem;
}

.w112e-footer-promos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
}

.w112e-footer-promos button {
  background: var(--w112e-btn-bg);
  color: var(--w112e-btn-text);
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: var(--w112e-radius);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--w112e-transition);
}

.w112e-footer-promos button:hover {
  background: var(--w112e-highlight);
}

.w112e-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  margin-bottom: 1.2rem;
}

.w112e-footer-links a {
  font-size: 1.2rem;
  color: var(--w112e-text-muted);
}

.w112e-footer-links a:hover {
  color: var(--w112e-accent);
}

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

/* ===== BOTTOM NAVIGATION ===== */
.w112e-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 430px;
  margin: 0 auto;
  height: 60px;
  background: rgba(12, 12, 12, 0.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--w112e-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  padding: 0 0.4rem;
}

.w112e-bottom-nav button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 56px;
  background: none;
  border: none;
  color: var(--w112e-text-muted);
  cursor: pointer;
  transition: var(--w112e-transition);
  padding: 0.4rem;
  border-radius: var(--w112e-radius);
}

.w112e-bottom-nav button:hover,
.w112e-bottom-nav button:active {
  color: var(--w112e-accent);
  background: var(--w112e-accent-glow);
  transform: scale(1.1);
}

.w112e-bottom-nav button .w112e-nav-icon {
  font-size: 2.2rem;
  margin-bottom: 0.2rem;
}

.w112e-bottom-nav button .w112e-nav-icon.material-icons-outlined {
  font-size: 2.4rem;
}

.w112e-bottom-nav button span {
  font-size: 1rem;
  color: inherit;
}

/* ===== H1 TITLE ===== */
.w112e-h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--w112e-accent);
  text-align: center;
  padding: 1.6rem 1.2rem 0.8rem;
  line-height: 2.6rem;
}

/* ===== FEATURE LIST ===== */
.w112e-feature-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.w112e-feature-item {
  background: var(--w112e-bg-card);
  border-radius: var(--w112e-radius);
  padding: 1.2rem;
  text-align: center;
  border: 1px solid var(--w112e-border);
}

.w112e-feature-item i {
  font-size: 2.4rem;
  color: var(--w112e-highlight);
  margin-bottom: 0.6rem;
}

.w112e-feature-item p {
  font-size: 1.2rem;
  color: var(--w112e-text);
}

/* ===== STEP LIST ===== */
.w112e-steps {
  counter-reset: step;
}

.w112e-step-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.2rem;
  align-items: flex-start;
}

.w112e-step-number {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--w112e-highlight);
  color: var(--w112e-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
}

.w112e-step-content h3 {
  font-size: 1.3rem;
  color: var(--w112e-accent);
  margin-bottom: 0.4rem;
}

.w112e-step-content p {
  font-size: 1.2rem;
  color: var(--w112e-text-muted);
  line-height: 1.6rem;
}

/* ===== FAQ ===== */
.w112e-faq-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--w112e-border);
}

.w112e-faq-item:last-child {
  border-bottom: none;
}

.w112e-faq-q {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--w112e-highlight);
  margin-bottom: 0.4rem;
}

.w112e-faq-a {
  font-size: 1.2rem;
  color: var(--w112e-text-muted);
  line-height: 1.8rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 320px) {
  .w112e-game-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
  }
  .w112e-header {
    padding: 0 0.8rem;
  }
  .w112e-btn-register, .w112e-btn-login {
    padding: 0.5rem 1rem;
    font-size: 1.2rem;
  }
}

@media (min-width: 769px) {
  .w112e-bottom-nav {
    display: none;
  }
}

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