/**
 * PH Sky Layout Styles - ph-sky.sbs
 * All classes prefixed with s2e0- for namespace isolation
 * Mobile-first design, max-width 430px
 */

:root {
  --s2e0-primary: #A0522D;
  --s2e0-dark: #2E4057;
  --s2e0-light: #F8F9FA;
  --s2e0-coral: #F08080;
  --s2e0-rose: #B03060;
  --s2e0-silver: #BDC3C7;
  --s2e0-bg: #1a2a3a;
  --s2e0-bg-card: #243447;
  --s2e0-bg-alt: #1e3044;
  --s2e0-text: #F8F9FA;
  --s2e0-text-muted: #a0b0c0;
  --s2e0-accent: #F08080;
  --s2e0-radius: 8px;
  --s2e0-radius-lg: 12px;
  --s2e0-shadow: 0 2px 8px rgba(0,0,0,0.3);
  --s2e0-transition: all 0.3s ease;
}

*, *::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-color: var(--s2e0-bg);
  color: var(--s2e0-text);
  line-height: 1.5rem;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

/* Header */
.s2e0-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 56px;
  background: var(--s2e0-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  z-index: 1000;
  border-bottom: 2px solid var(--s2e0-primary);
}

.s2e0-logo-area {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.s2e0-logo-area img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.s2e0-logo-area span {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--s2e0-primary);
  letter-spacing: 0.5px;
}

.s2e0-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.s2e0-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border: none;
  border-radius: var(--s2e0-radius);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--s2e0-transition);
  text-decoration: none;
  min-height: 36px;
}

.s2e0-btn-register {
  background: var(--s2e0-primary);
  color: #fff;
}
.s2e0-btn-register:hover {
  background: #8B4513;
  transform: scale(1.05);
}

.s2e0-btn-login {
  background: transparent;
  color: var(--s2e0-coral);
  border: 1px solid var(--s2e0-coral);
}
.s2e0-btn-login:hover {
  background: var(--s2e0-coral);
  color: #fff;
}

.s2e0-menu-btn {
  background: none;
  border: none;
  color: var(--s2e0-light);
  font-size: 2rem;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

/* Mobile Side Menu */
.s2e0-mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 100%;
  background: var(--s2e0-dark);
  z-index: 9999;
  transform: translateX(-100%);
  visibility: hidden;
  transition: transform 0.3s ease, visibility 0.3s ease;
  overflow-y: auto;
  padding: 20px 16px;
}

.s2e0-mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.s2e0-mobile-menu-header span {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--s2e0-primary);
}

.s2e0-close-btn {
  background: none;
  border: none;
  color: var(--s2e0-light);
  font-size: 2.2rem;
  cursor: pointer;
}

.s2e0-mobile-menu nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 8px;
  color: var(--s2e0-text);
  font-size: 1.4rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: var(--s2e0-transition);
}

.s2e0-mobile-menu nav a:hover {
  color: var(--s2e0-primary);
  padding-left: 14px;
  text-decoration: none;
}

.s2e0-mobile-menu nav a i,
.s2e0-mobile-menu nav a .material-icons {
  font-size: 1.8rem;
  width: 24px;
  text-align: center;
}

/* Main Content */
.s2e0-main {
  padding-top: 56px;
  padding-bottom: 72px;
}

/* Carousel */
.s2e0-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 0 0 var(--s2e0-radius-lg) var(--s2e0-radius-lg);
}

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

.s2e0-slide.game2e2b-active {
  display: block;
}

.s2e0-slide img {
  width: 100%;
  height: auto;
  min-height: 180px;
  object-fit: cover;
}

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

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

.s2e0-dot.s2e0-active {
  background: var(--s2e0-primary);
  width: 24px;
  border-radius: 4px;
}

/* Sections */
.s2e0-section {
  padding: 20px 12px;
}

.s2e0-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--s2e0-primary);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--s2e0-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.s2e0-section-title i,
.s2e0-section-title .material-icons {
  font-size: 2rem;
}

/* Game Grid */
.s2e0-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.s2e0-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: var(--s2e0-transition);
  padding: 6px;
  border-radius: var(--s2e0-radius);
}

.s2e0-game-item:hover {
  background: var(--s2e0-bg-card);
  transform: translateY(-2px);
}

.s2e0-game-item img {
  width: 64px;
  height: 64px;
  border-radius: var(--s2e0-radius);
  margin-bottom: 4px;
  border: 1px solid rgba(255,255,255,0.1);
}

.s2e0-game-item span {
  font-size: 1.1rem;
  color: var(--s2e0-text-muted);
  line-height: 1.3rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Category Header */
.s2e0-cat-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  margin-top: 16px;
}

.s2e0-cat-header h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--s2e0-coral);
}

.s2e0-cat-header i,
.s2e0-cat-header .material-icons {
  font-size: 1.8rem;
  color: var(--s2e0-coral);
}

/* Content Card */
.s2e0-card {
  background: var(--s2e0-bg-card);
  border-radius: var(--s2e0-radius-lg);
  padding: 16px;
  margin-bottom: 12px;
  border: 1px solid rgba(255,255,255,0.06);
}

.s2e0-card h2 {
  font-size: 1.6rem;
  color: var(--s2e0-primary);
  margin-bottom: 10px;
}

.s2e0-card h3 {
  font-size: 1.4rem;
  color: var(--s2e0-coral);
  margin-bottom: 8px;
}

.s2e0-card p {
  font-size: 1.3rem;
  color: var(--s2e0-text-muted);
  line-height: 1.8rem;
  margin-bottom: 8px;
}

/* CTA / Promo Link */
.s2e0-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--s2e0-primary), var(--s2e0-rose));
  color: #fff;
  padding: 10px 20px;
  border-radius: var(--s2e0-radius);
  font-size: 1.4rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--s2e0-transition);
  border: none;
  text-decoration: none;
}

.s2e0-cta:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(160,82,45,0.4);
  text-decoration: none;
}

/* Promo text link */
.s2e0-text-link {
  color: var(--s2e0-coral);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

.s2e0-text-link:hover {
  color: var(--s2e0-primary);
}

/* Footer */
.s2e0-footer {
  background: var(--s2e0-dark);
  padding: 24px 12px 80px;
  border-top: 2px solid var(--s2e0-primary);
  text-align: center;
}

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

.s2e0-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}

.s2e0-footer-links a {
  color: var(--s2e0-coral);
  font-size: 1.2rem;
  padding: 4px 8px;
  background: var(--s2e0-bg-card);
  border-radius: var(--s2e0-radius);
  transition: var(--s2e0-transition);
}

.s2e0-footer-links a:hover {
  background: var(--s2e0-primary);
  color: #fff;
  text-decoration: none;
}

.s2e0-footer-copy {
  font-size: 1.1rem;
  color: var(--s2e0-silver);
  margin-top: 12px;
}

/* Bottom Navigation */
.s2e0-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 60px;
  background: var(--s2e0-dark);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 1000;
  border-top: 2px solid var(--s2e0-primary);
  box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
}

.s2e0-bottom-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 56px;
  background: none;
  border: none;
  color: var(--s2e0-text-muted);
  cursor: pointer;
  transition: var(--s2e0-transition);
  padding: 4px;
  gap: 2px;
}

.s2e0-bottom-nav-btn i,
.s2e0-bottom-nav-btn .material-icons {
  font-size: 22px;
  transition: var(--s2e0-transition);
}

.s2e0-bottom-nav-btn span {
  font-size: 1rem;
  font-weight: 500;
}

.s2e0-bottom-nav-btn:hover,
.s2e0-bottom-nav-btn.s2e0-active {
  color: var(--s2e0-primary);
}

.s2e0-bottom-nav-btn:hover i,
.s2e0-bottom-nav-btn:hover .material-icons,
.s2e0-bottom-nav-btn.s2e0-active i,
.s2e0-bottom-nav-btn.s2e0-active .material-icons {
  transform: scale(1.15);
}

/* FAQ Accordion */
.s2e0-faq-item {
  background: var(--s2e0-bg-card);
  border-radius: var(--s2e0-radius);
  margin-bottom: 8px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
}

.s2e0-faq-question {
  padding: 12px 14px;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--s2e0-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.s2e0-faq-question i {
  color: var(--s2e0-primary);
  font-size: 1.4rem;
}

.s2e0-faq-answer {
  padding: 0 14px 12px;
  font-size: 1.2rem;
  color: var(--s2e0-text-muted);
  line-height: 1.7rem;
}

/* Winner List */
.s2e0-winner-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.s2e0-winner-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--s2e0-bg-card);
  border-radius: var(--s2e0-radius);
  font-size: 1.2rem;
}

.s2e0-winner-name {
  color: var(--s2e0-coral);
  font-weight: 600;
}

.s2e0-winner-amount {
  color: #2ecc71;
  font-weight: 700;
}

.s2e0-winner-game {
  color: var(--s2e0-text-muted);
  font-size: 1.1rem;
}

/* Payment Icons */
.s2e0-payment-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.s2e0-payment-item {
  background: var(--s2e0-bg-card);
  padding: 8px 14px;
  border-radius: var(--s2e0-radius);
  font-size: 1.2rem;
  color: var(--s2e0-text-muted);
  border: 1px solid rgba(255,255,255,0.08);
}

/* Responsive - hide bottom nav on desktop */
@media (min-width: 769px) {
  .s2e0-bottom-nav {
    display: none;
  }
  .s2e0-footer {
    padding-bottom: 24px;
  }
}

/* Mobile padding for bottom nav */
@media (max-width: 768px) {
  .s2e0-main {
    padding-bottom: 72px;
  }
}

/* Partner logos row */
.s2e0-partners {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0;
}

.s2e0-partners img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  opacity: 0.7;
  transition: var(--s2e0-transition);
}

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

/* Safety feature box */
.s2e0-feature-box {
  background: var(--s2e0-bg-card);
  border-radius: var(--s2e0-radius-lg);
  padding: 14px;
  margin-bottom: 10px;
  border-left: 3px solid var(--s2e0-primary);
}

.s2e0-feature-box h3 {
  font-size: 1.4rem;
  color: var(--s2e0-primary);
  margin-bottom: 6px;
}

.s2e0-feature-box p {
  font-size: 1.2rem;
  color: var(--s2e0-text-muted);
  line-height: 1.7rem;
}

/* Step list */
.s2e0-steps {
  counter-reset: s2e0-step;
  padding-left: 0;
  list-style: none;
}

.s2e0-steps li {
  counter-increment: s2e0-step;
  padding: 8px 0 8px 32px;
  position: relative;
  font-size: 1.3rem;
  color: var(--s2e0-text-muted);
  line-height: 1.7rem;
}

.s2e0-steps li::before {
  content: counter(s2e0-step);
  position: absolute;
  left: 0;
  top: 8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--s2e0-primary);
  color: #fff;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
