/**
 * 76jl Main Stylesheet
 * Class prefix: s25d-
 * Color palette: #8FBC8F (dark sea green) | #1C2833 (dark slate bg) | #DEE2E6 (light gray text) | #2E8B57 (sea green accent)
 * Mobile-first design, max-width 430px
 */

/* ==================== CSS Variables ==================== */
:root {
  --s25d-primary: #8FBC8F;
  --s25d-bg: #1C2833;
  --s25d-bg-light: #243342;
  --s25d-bg-card: #1a2a3a;
  --s25d-text: #DEE2E6;
  --s25d-accent: #2E8B57;
  --s25d-accent-light: #3CB371;
  --s25d-border: #2C3E50;
  --s25d-gradient: linear-gradient(135deg, #2E8B57 0%, #8FBC8F 100%);
  --s25d-radius: 10px;
  --s25d-radius-sm: 6px;
  --s25d-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  --s25d-font-size-base: 62.5%;
}

/* ==================== Reset & Base ==================== */
html {
  font-size: var(--s25d-font-size-base);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--s25d-bg);
  color: var(--s25d-text);
  line-height: 1.5rem;
  min-height: 100vh;
  overflow-x: hidden;
  padding-top: 60px;
  max-width: 430px;
  margin: 0 auto;
}

@media (min-width: 769px) {
  body {
    max-width: 430px;
  }
}

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

a {
  color: var(--s25d-accent-light);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--s25d-primary);
}

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

/* ==================== Header / Top Navigation ==================== */
.s25d-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 60px;
  background: linear-gradient(180deg, #1a2d3d 0%, #162536 100%);
  border-bottom: 2px solid var(--s25d-accent);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
}

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

.s25d-logo-area img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.s25d-logo-area span {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--s25d-primary);
  letter-spacing: 1px;
}

.s25d-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.s25d-btn-register {
  background: var(--s25d-gradient);
  color: #fff;
  border: none;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  min-height: 36px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.s25d-btn-register:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 10px rgba(46, 139, 87, 0.4);
}

.s25d-btn-login {
  background: transparent;
  color: var(--s25d-primary);
  border: 1.5px solid var(--s25d-primary);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  min-height: 36px;
  transition: background 0.2s, color 0.2s;
}

.s25d-btn-login:hover {
  background: var(--s25d-primary);
  color: var(--s25d-bg);
}

.s25d-menu-toggle {
  background: none;
  border: none;
  color: var(--s25d-text);
  font-size: 2.2rem;
  cursor: pointer;
  padding: 4px 8px;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.s25d-menu-toggle:hover {
  color: var(--s25d-primary);
}

/* ==================== Mobile Menu ==================== */
.s25d-menu-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;
}

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

.s25d-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100%;
  background: linear-gradient(180deg, #1a2d3d 0%, #0f1f2f 100%);
  z-index: 9999;
  transition: right 0.3s ease;
  padding: 20px;
  overflow-y: auto;
}

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

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

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

.s25d-menu-close {
  background: none;
  border: none;
  color: var(--s25d-text);
  font-size: 2.4rem;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.s25d-mobile-menu ul {
  list-style: none;
}

.s25d-mobile-menu ul li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.s25d-mobile-menu ul li a {
  display: block;
  padding: 14px 8px;
  color: var(--s25d-text);
  font-size: 1.5rem;
  transition: color 0.2s, padding-left 0.2s;
}

.s25d-mobile-menu ul li a:hover {
  color: var(--s25d-primary);
  padding-left: 16px;
}

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

.s25d-carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.s25d-carousel-slide {
  min-width: 100%;
  cursor: pointer;
}

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

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

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

.s25d-dot-active {
  background: var(--s25d-accent);
}

.s25d-carousel-arrows {
  display: none;
}

/* ==================== Section Containers ==================== */
.s25d-section {
  padding: 16px 12px;
}

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

.s25d-section-title i,
.s25d-section-title .material-icons {
  font-size: 2rem;
  color: var(--s25d-accent);
}

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

.s25d-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s;
  text-align: center;
}

.s25d-game-item:hover {
  transform: translateY(-2px);
}

.s25d-game-item img {
  width: 70px;
  height: 70px;
  border-radius: var(--s25d-radius-sm);
  margin-bottom: 4px;
  border: 1px solid var(--s25d-border);
}

.s25d-game-item span {
  font-size: 1.1rem;
  color: var(--s25d-text);
  line-height: 1.3rem;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* ==================== Content Modules ==================== */
.s25d-card {
  background: var(--s25d-bg-card);
  border: 1px solid var(--s25d-border);
  border-radius: var(--s25d-radius);
  padding: 16px;
  margin-bottom: 16px;
}

.s25d-card h3 {
  font-size: 1.7rem;
  color: var(--s25d-primary);
  margin-bottom: 10px;
}

.s25d-card p {
  font-size: 1.3rem;
  line-height: 1.7rem;
  color: var(--s25d-text);
  margin-bottom: 10px;
}

.s25d-promo-link {
  display: inline-block;
  color: var(--s25d-accent-light);
  font-weight: 700;
  font-size: 1.4rem;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.2s;
}

.s25d-promo-link:hover {
  color: var(--s25d-primary);
}

.s25d-btn-play {
  display: inline-block;
  background: var(--s25d-gradient);
  color: #fff;
  padding: 12px 28px;
  border-radius: 25px;
  font-size: 1.5rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  min-height: 48px;
}

.s25d-btn-play:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(46, 139, 87, 0.5);
}

.s25d-center {
  text-align: center;
}

/* ==================== RTP Table ==================== */
.s25d-rtp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.2rem;
}

.s25d-rtp-table th {
  background: var(--s25d-accent);
  color: #fff;
  padding: 8px 6px;
  text-align: left;
  font-weight: 600;
}

.s25d-rtp-table td {
  padding: 8px 6px;
  border-bottom: 1px solid var(--s25d-border);
}

.s25d-rtp-table tr:hover {
  background: rgba(46, 139, 87, 0.1);
}

/* ==================== Testimonials ==================== */
.s25d-testimonial {
  background: var(--s25d-bg-light);
  border-left: 3px solid var(--s25d-accent);
  padding: 12px;
  margin-bottom: 10px;
  border-radius: 0 var(--s25d-radius-sm) var(--s25d-radius-sm) 0;
}

.s25d-testimonial p {
  font-size: 1.2rem;
  font-style: italic;
  margin-bottom: 6px;
}

.s25d-testimonial cite {
  font-size: 1.1rem;
  color: var(--s25d-primary);
  font-style: normal;
}

/* ==================== Winners Showcase ==================== */
.s25d-winner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.s25d-winner-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--s25d-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
}

.s25d-winner-info {
  flex: 1;
}

.s25d-winner-info span {
  display: block;
  font-size: 1.2rem;
}

.s25d-winner-info .s25d-winner-amount {
  color: var(--s25d-accent-light);
  font-weight: 700;
  font-size: 1.3rem;
}

/* ==================== Payment Methods ==================== */
.s25d-payment-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.s25d-payment-item {
  background: var(--s25d-bg-light);
  border: 1px solid var(--s25d-border);
  border-radius: var(--s25d-radius-sm);
  padding: 8px 14px;
  font-size: 1.2rem;
  color: var(--s25d-text);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ==================== Footer ==================== */
.s25d-footer {
  background: linear-gradient(180deg, #0f1f2f 0%, #0a1622 100%);
  padding: 24px 16px 32px;
  border-top: 2px solid var(--s25d-accent);
  text-align: center;
}

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

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

.s25d-footer-links a {
  color: var(--s25d-text);
  font-size: 1.2rem;
  padding: 4px 8px;
  transition: color 0.2s;
}

.s25d-footer-links a:hover {
  color: var(--s25d-primary);
}

.s25d-footer-copy {
  font-size: 1.1rem;
  color: rgba(222, 226, 230, 0.5);
  margin-top: 12px;
}

/* ==================== Bottom Navigation ==================== */
.s25d-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 60px;
  background: linear-gradient(180deg, #1a2d3d 0%, #0f1f2f 100%);
  border-top: 2px solid var(--s25d-accent);
  z-index: 1000;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 4px;
}

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

.s25d-bnav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 56px;
  background: none;
  border: none;
  color: var(--s25d-text);
  cursor: pointer;
  transition: color 0.2s, transform 0.2s;
  padding: 4px;
  position: relative;
}

.s25d-bnav-btn:hover,
.s25d-bnav-btn:active {
  color: var(--s25d-primary);
  transform: scale(1.1);
}

.s25d-bnav-active {
  color: var(--s25d-accent) !important;
}

.s25d-bnav-active::after {
  content: '';
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  background: var(--s25d-accent);
  border-radius: 2px;
}

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

.s25d-bnav-label {
  font-size: 1rem;
  font-weight: 500;
}

/* ==================== Utility Classes ==================== */
.s25d-mb-1 { margin-bottom: 8px; }
.s25d-mb-2 { margin-bottom: 16px; }
.s25d-mt-1 { margin-top: 8px; }
.s25d-mt-2 { margin-top: 16px; }
.s25d-text-center { text-align: center; }
.s25d-hidden { display: none; }
.s25d-divider {
  border: none;
  border-top: 1px solid var(--s25d-border);
  margin: 16px 0;
}

/* ==================== Responsive Adjustments ==================== */
@media (max-width: 360px) {
  .s25d-game-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .s25d-game-item img {
    width: 60px;
    height: 60px;
  }
}

@media (min-width: 769px) {
  .s25d-desktop-nav {
    display: flex !important;
    gap: 20px;
  }
}
