/**
 * 49999 Layout Stylesheet
 * Prefix: s180-
 * All classes use the s180- prefix for namespace isolation
 */

/* ===== CSS Variables ===== */
:root {
  --s180-primary: #BDC3C7;
  --s180-bg: #2C2C2C;
  --s180-text: #BDC3C7;
  --s180-muted: #95A5A6;
  --s180-accent: #AFEEEE;
  --s180-dark: #4A4A4A;
  --s180-light: #BDC3C7;
  --s180-font-size: 62.5%;
}

/* ===== Reset & Base ===== */
html { font-size: var(--s180-font-size); scroll-behavior: smooth; }
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--s180-bg);
  color: var(--s180-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  overflow-x: hidden;
  max-width: 430px;
  margin: 0 auto;
}
a { color: var(--s180-accent); text-decoration: none; }
a:hover { color: #fff; }
img { max-width: 100%; height: auto; display: block; }

/* ===== Header ===== */
.s180-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, #1a1a2e 0%, #2C2C2C 100%);
  border-bottom: 1px solid var(--s180-dark);
  max-width: 430px; margin: 0 auto;
  padding: 0.8rem 1rem;
  display: flex; align-items: center; justify-content: space-between;
}
.s180-logo-area {
  display: flex; align-items: center; gap: 0.6rem;
}
.s180-logo-area img { width: 28px; height: 28px; border-radius: 4px; }
.s180-logo-area span {
  font-size: 1.6rem; font-weight: 700;
  color: var(--s180-accent);
  letter-spacing: 0.5px;
}
.s180-header-actions { display: flex; gap: 0.5rem; align-items: center; }
.s180-btn-register, .s180-btn-login {
  padding: 0.5rem 1.2rem; border-radius: 20px;
  font-size: 1.2rem; font-weight: 600; cursor: pointer;
  border: none; transition: all 0.3s;
}
.s180-btn-register {
  background: linear-gradient(135deg, #AFEEEE, #7ec8c8);
  color: #2C2C2C;
}
.s180-btn-register:hover { background: linear-gradient(135deg, #7ec8c8, #5fb8b8); transform: scale(1.05); }
.s180-btn-login {
  background: transparent; color: var(--s180-accent);
  border: 1px solid var(--s180-accent);
}
.s180-btn-login:hover { background: rgba(175,238,238,0.15); transform: scale(1.05); }
.s180-menu-btn {
  background: none; border: none; color: var(--s180-primary);
  font-size: 2rem; cursor: pointer; padding: 0.4rem;
  display: flex; align-items: center;
}

/* ===== Mobile Menu ===== */
.s180-menu-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6); z-index: 9998;
  display: none; opacity: 0; transition: opacity 0.3s;
}
.s180-overlay-active { display: block; opacity: 1; }
#s180-mobile-menu {
  position: fixed; top: 0; right: -280px;
  width: 280px; height: 100vh; z-index: 9999;
  background: #1a1a2e;
  transition: right 0.3s ease;
  padding: 2rem 1.5rem;
  overflow-y: auto;
}
.s180-menu-active { right: 0 !important; }
.s180-menu-close {
  background: none; border: none; color: var(--s180-primary);
  font-size: 2.4rem; cursor: pointer; position: absolute;
  top: 1rem; right: 1rem;
}
.s180-menu-title {
  font-size: 1.8rem; color: var(--s180-accent);
  margin-bottom: 2rem; font-weight: 700;
}
.s180-menu-links { list-style: none; }
.s180-menu-links li {
  margin-bottom: 0.3rem;
}
.s180-menu-links a {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 1rem; border-radius: 8px;
  color: var(--s180-primary); font-size: 1.4rem;
  transition: background 0.2s;
}
.s180-menu-links a:hover { background: rgba(175,238,238,0.1); color: var(--s180-accent); }
.s180-menu-links .material-icons-outlined { font-size: 20px; }

/* ===== Main Content ===== */
.s180-main {
  padding-top: 5.5rem; padding-bottom: 1rem;
  min-height: 100vh;
}
@media (max-width: 768px) {
  .s180-main { padding-bottom: 80px; }
}

/* ===== Carousel ===== */
.s180-carousel {
  position: relative; width: 100%; overflow: hidden;
  border-radius: 0 0 12px 12px;
  margin-bottom: 1.5rem;
}
.s180-slide {
  display: none; width: 100%;
  cursor: pointer;
}
.s180-slide-active { display: block; }
.s180-slide img { width: 100%; height: 180px; object-fit: cover; }
.s180-carousel-dots {
  position: absolute; bottom: 10px; left: 50%;
  transform: translateX(-50%); display: flex; gap: 6px;
}
.s180-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.4); cursor: pointer;
  transition: background 0.3s;
}
.s180-dot-active { background: var(--s180-accent); }

/* ===== Section Headings ===== */
.s180-section { padding: 1.5rem 1rem; }
.s180-section-title {
  font-size: 1.8rem; font-weight: 700;
  color: var(--s180-accent); margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--s180-dark);
  display: flex; align-items: center; gap: 0.6rem;
}
.s180-section-title .material-icons-outlined { font-size: 22px; }

/* ===== Game Grid ===== */
.s180-cat-title {
  font-size: 1.5rem; font-weight: 600;
  color: var(--s180-accent); margin: 1.2rem 0 0.8rem;
  padding-left: 0.5rem;
  border-left: 3px solid var(--s180-accent);
}
.s180-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  padding: 0.5rem 0;
}
.s180-game-item {
  display: flex; flex-direction: column; align-items: center;
  cursor: pointer; transition: transform 0.2s;
  text-align: center;
}
.s180-game-item:hover { transform: scale(1.05); }
.s180-game-item img {
  width: 70px; height: 70px; border-radius: 10px;
  object-fit: cover; margin-bottom: 0.3rem;
  border: 1px solid var(--s180-dark);
}
.s180-game-name {
  font-size: 1rem; color: var(--s180-primary);
  line-height: 1.2; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
  max-width: 80px;
}

/* ===== Cards ===== */
.s180-card {
  background: linear-gradient(135deg, #333 0%, #3d3d3d 100%);
  border-radius: 12px; padding: 1.5rem;
  margin-bottom: 1.2rem;
  border: 1px solid var(--s180-dark);
}
.s180-card h3 {
  color: var(--s180-accent); font-size: 1.5rem;
  margin-bottom: 0.8rem;
}
.s180-card p {
  color: var(--s180-primary); font-size: 1.3rem;
  line-height: 1.6;
}
.s180-card-highlight {
  background: linear-gradient(135deg, #1a3a3a 0%, #2C2C2C 100%);
  border: 1px solid rgba(175,238,238,0.3);
}

/* ===== Promo Buttons ===== */
.s180-promo-btn {
  display: inline-block;
  background: linear-gradient(135deg, #AFEEEE, #7ec8c8);
  color: #2C2C2C; padding: 1rem 2rem;
  border-radius: 25px; font-weight: 700;
  font-size: 1.4rem; cursor: pointer;
  border: none; text-align: center;
  transition: all 0.3s; width: 100%;
  margin: 0.5rem 0;
}
.s180-promo-btn:hover { transform: scale(1.03); background: linear-gradient(135deg, #7ec8c8, #5fb8b8); }
.s180-promo-link {
  color: var(--s180-accent); font-weight: 600;
  border-bottom: 1px dashed var(--s180-accent);
  cursor: pointer;
}
.s180-promo-link:hover { color: #fff; }

/* ===== FAQ ===== */
.s180-faq-item {
  margin-bottom: 1rem; padding: 1rem;
  background: rgba(74,74,74,0.3);
  border-radius: 8px; border-left: 3px solid var(--s180-accent);
}
.s180-faq-q {
  font-weight: 700; color: var(--s180-accent);
  margin-bottom: 0.5rem; font-size: 1.3rem;
}
.s180-faq-a {
  color: var(--s180-primary); font-size: 1.2rem; line-height: 1.5;
}

/* ===== Testimonials ===== */
.s180-testimonial {
  background: rgba(74,74,74,0.4); border-radius: 10px;
  padding: 1rem; margin-bottom: 0.8rem;
  border-left: 3px solid #95A5A6;
}
.s180-testimonial-name {
  font-weight: 600; color: var(--s180-accent); font-size: 1.2rem;
}
.s180-testimonial-text {
  color: var(--s180-primary); font-size: 1.2rem; margin-top: 0.3rem;
}

/* ===== Winner List ===== */
.s180-winner-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.6rem 0; border-bottom: 1px solid rgba(74,74,74,0.5);
  font-size: 1.2rem;
}
.s180-winner-name { color: var(--s180-accent); font-weight: 600; }
.s180-winner-game { color: var(--s180-primary); }
.s180-winner-amount { color: #4ade80; font-weight: 700; }

/* ===== Payment Methods ===== */
.s180-payment-grid {
  display: flex; flex-wrap: wrap; gap: 0.8rem;
  justify-content: center;
}
.s180-payment-item {
  background: rgba(74,74,74,0.4); border-radius: 8px;
  padding: 0.8rem 1.2rem; text-align: center;
  font-size: 1.1rem; color: var(--s180-primary);
  border: 1px solid var(--s180-dark);
}

/* ===== RTP Table ===== */
.s180-rtp-table {
  width: 100%; border-collapse: collapse; font-size: 1.2rem;
}
.s180-rtp-table th {
  background: var(--s180-dark); color: var(--s180-accent);
  padding: 0.6rem; text-align: left;
}
.s180-rtp-table td {
  padding: 0.6rem; border-bottom: 1px solid rgba(74,74,74,0.5);
  color: var(--s180-primary);
}
.s180-rtp-bar {
  height: 6px; border-radius: 3px; background: var(--s180-dark);
  overflow: hidden;
}
.s180-rtp-fill {
  height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, #AFEEEE, #7ec8c8);
}

/* ===== Footer ===== */
.s180-footer {
  background: linear-gradient(135deg, #1a1a2e 0%, #1e1e30 100%);
  padding: 2rem 1rem 1.5rem; margin-top: 2rem;
  border-top: 1px solid var(--s180-dark);
}
.s180-footer-brand {
  color: var(--s180-muted); font-size: 1.2rem;
  line-height: 1.5; margin-bottom: 1rem;
}
.s180-footer-links {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-bottom: 1rem;
}
.s180-footer-link {
  color: var(--s180-accent); font-size: 1.1rem;
  padding: 0.3rem 0.6rem; border-radius: 4px;
  background: rgba(74,74,74,0.3);
  transition: background 0.2s;
}
.s180-footer-link:hover { background: rgba(175,238,238,0.15); }
.s180-footer-copy {
  color: var(--s180-muted); font-size: 1rem;
  text-align: center; margin-top: 1rem;
  padding-top: 1rem; border-top: 1px solid var(--s180-dark);
}

/* ===== Bottom Navigation ===== */
.s180-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, #1a1a2e 0%, #111122 100%);
  border-top: 1px solid rgba(175,238,238,0.2);
  display: flex; justify-content: space-around; align-items: center;
  height: 60px; max-width: 430px; margin: 0 auto;
  padding: 0 0.3rem;
}
.s180-bottom-btn {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; min-width: 60px; min-height: 52px;
  background: none; border: none; color: var(--s180-muted);
  cursor: pointer; transition: all 0.25s; border-radius: 8px;
  padding: 0.3rem;
}
.s180-bottom-btn:hover { color: var(--s180-accent); }
.s180-bottom-btn:hover .s180-bottom-icon { transform: scale(1.15); }
.s180-bottom-btn-icon { font-size: 22px; margin-bottom: 2px; }
.s180-bottom-btn-label { font-size: 1rem; }
.s180-bottom-active { color: var(--s180-accent); }
.s180-bottom-active .s180-bottom-icon { transform: scale(1.1); }

/* ===== Desktop Hide ===== */
@media (min-width: 769px) {
  .s180-bottom-nav { display: none; }
}
@media (min-width: 769px) {
  .s180-menu-btn { display: none; }
  .s180-header { max-width: 100%; }
  body { max-width: 100%; }
  .s180-bottom-nav { max-width: 100%; }
}

/* ===== Utility ===== */
.s180-text-center { text-align: center; }
.s180-mt-1 { margin-top: 1rem; }
.s180-mb-1 { margin-bottom: 1rem; }
.s180-mt-2 { margin-top: 2rem; }
.s180-hidden { display: none; }
.s180-divider {
  height: 1px; background: var(--s180-dark);
  margin: 1.5rem 0;
}
.s180-badge {
  display: inline-block; background: var(--s180-accent);
  color: #2C2C2C; font-size: 1rem; padding: 0.2rem 0.6rem;
  border-radius: 10px; font-weight: 600;
}

/* ===== App Download CTA ===== */
.s180-app-cta {
  background: linear-gradient(135deg, #1a3a3a 0%, #2C2C2C 100%);
  border-radius: 12px; padding: 1.5rem;
  text-align: center; border: 1px solid rgba(175,238,238,0.2);
}
.s180-app-cta h3 { color: var(--s180-accent); font-size: 1.5rem; margin-bottom: 0.5rem; }
.s180-app-cta p { color: var(--s180-primary); font-size: 1.2rem; margin-bottom: 1rem; }

/* ===== Internal Links ===== */
.s180-internal-link {
  color: var(--s180-accent); font-weight: 500;
  text-decoration: underline; text-underline-offset: 2px;
}
.s180-internal-link:hover { color: #fff; }
