/* ============================================================
 * ldplayer.homes - Core stylesheet
 * Palette: #3A3A3A / #DA70D6 / #E8F5E8 / #2C3E50
 * All custom classes use the g135- prefix.
 * ============================================================ */

:root {
  --g135-bg: #2C3E50;
  --g135-bg-dark: #3A3A3A;
  --g135-accent: #DA70D6;
  --g135-accent-soft: #E8F5E8;
  --g135-text: #E8F5E8;
  --g135-muted: #B8C4CC;
  --g135-card: rgba(255, 255, 255, 0.04);
  --g135-border: rgba(218, 112, 214, 0.25);
  --g135-radius: 14px;
  --g135-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: linear-gradient(160deg, var(--g135-bg) 0%, var(--g135-bg-dark) 100%);
  color: var(--g135-text);
  line-height: 1.5rem;
  font-size: 1.5rem;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--g135-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.g135-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.2rem;
}

.g135-wrapper {
  padding-top: 6.4rem;
  padding-bottom: 8rem;
}

/* ===================== Header ===================== */
.g135-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(44, 62, 80, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--g135-border);
}

.g135-header-inner {
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1rem;
  gap: 0.6rem;
}

.g135-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--g135-text);
  font-weight: 700;
  font-size: 1.7rem;
}

.g135-brand img {
  width: 30px; height: 30px;
  border-radius: 8px;
  border: 1px solid var(--g135-border);
}

.g135-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.g135-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: none;
  border-radius: 999px;
  font-size: 1.3rem;
  font-weight: 700;
  padding: 0.7rem 1.3rem;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.2s ease, background 0.2s ease;
  min-height: 36px;
}

.g135-btn:active { transform: scale(0.96); }

.g135-btn-primary {
  background: linear-gradient(135deg, var(--g135-accent), #b85bb4);
  color: #1a1a1a;
}

.g135-btn-ghost {
  background: transparent;
  color: var(--g135-text);
  border: 1px solid var(--g135-accent);
}

.g135-btn-block {
  width: 100%;
  padding: 1.1rem;
  font-size: 1.5rem;
}

.g135-icon-btn {
  background: transparent;
  border: none;
  color: var(--g135-text);
  font-size: 1.9rem;
  cursor: pointer;
  padding: 0.4rem;
  min-width: 40px;
  min-height: 40px;
}

/* ===================== Mobile menu ===================== */
.g135-mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease;
  background: rgba(58, 58, 58, 0.98);
  border-top: 1px solid var(--g135-border);
}

.g135-mobile-menu.g135-menu-open { max-height: 460px; }

.g135-mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 0.4rem 0;
}

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

.g135-mobile-menu li a:hover { background: rgba(218, 112, 214, 0.12); }

/* ===================== Hero carousel ===================== */
.g135-hero {
  position: relative;
  border-radius: var(--g135-radius);
  overflow: hidden;
  margin: 1rem 0 1.4rem;
  box-shadow: var(--g135-shadow);
}

.g135-hero-track { position: relative; }

.g135-hero-slide {
  display: none;
  cursor: pointer;
}

.g135-hero-slide.g135-hero-active { display: block; }

.g135-hero-slide img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.g135-hero-caption {
  position: absolute;
  left: 1.2rem; bottom: 1.2rem;
  right: 1.2rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.6));
  color: #fff;
  padding: 1.5rem 0.4rem 0.2rem;
  font-weight: 700;
  font-size: 1.5rem;
}

.g135-hero-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 0;
}

.g135-hero-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(232, 245, 232, 0.4);
  border: none; cursor: pointer;
}

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

/* ===================== Sections ===================== */
.g135-section {
  margin: 1.6rem 0;
  padding: 1.4rem;
  background: var(--g135-card);
  border: 1px solid var(--g135-border);
  border-radius: var(--g135-radius);
}

.g135-section h2 {
  font-size: 1.9rem;
  margin: 0 0 0.8rem;
  color: var(--g135-accent);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.g135-section h3 {
  font-size: 1.6rem;
  margin: 1rem 0 0.5rem;
  color: var(--g135-text);
}

.g135-section p {
  margin: 0 0 0.8rem;
  color: var(--g135-muted);
}

.g135-h1 {
  font-size: 2.1rem;
  margin: 1.2rem 0 0.6rem;
  color: var(--g135-text);
  line-height: 1.25;
}

/* ===================== Game grid ===================== */
.g135-cat-title {
  font-size: 1.6rem;
  color: var(--g135-accent);
  margin: 1.4rem 0 0.6rem;
  font-weight: 700;
  border-left: 3px solid var(--g135-accent);
  padding-left: 0.8rem;
}

.g135-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}

.g135-game-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--g135-border);
  border-radius: 10px;
  padding: 0.6rem 0.4rem;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.g135-game-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--g135-shadow);
  text-decoration: none;
}

.g135-game-card img {
  width: 60px; height: 60px;
  border-radius: 10px;
  object-fit: cover;
  margin-bottom: 0.4rem;
}

.g135-game-card span {
  font-size: 1.1rem;
  color: var(--g135-text);
  line-height: 1.25;
  word-break: break-word;
}

/* ===================== Info / RTP / list cards ===================== */
.g135-stat-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}

.g135-stat {
  background: rgba(218, 112, 214, 0.08);
  border: 1px solid var(--g135-border);
  border-radius: 10px;
  padding: 0.8rem;
  text-align: center;
}

.g135-stat-num {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--g135-accent);
}

.g135-stat-label { font-size: 1.1rem; color: var(--g135-muted); }

.g135-list { padding-left: 1.4rem; margin: 0.4rem 0; color: var(--g135-muted); }
.g135-list li { margin-bottom: 0.4rem; }

.g135-testimonial {
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid var(--g135-accent);
  padding: 0.8rem 1rem;
  border-radius: 8px;
  margin-bottom: 0.7rem;
}

.g135-testimonial strong { color: var(--g135-accent); }

.g135-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.6rem;
}

.g135-link-row a {
  background: rgba(218, 112, 214, 0.1);
  border: 1px solid var(--g135-border);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-size: 1.2rem;
}

/* ===================== Footer ===================== */
.g135-footer {
  margin-top: 2rem;
  padding: 1.6rem 1.2rem 1rem;
  background: var(--g135-bg-dark);
  border-top: 1px solid var(--g135-border);
  font-size: 1.3rem;
  color: var(--g135-muted);
}

.g135-footer-brand { color: var(--g135-text); margin-bottom: 0.6rem; }

.g135-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 0.8rem 0;
}

.g135-footer-links a {
  color: var(--g135-accent-soft);
  font-size: 1.2rem;
}

.g135-footer-copy {
  font-size: 1.1rem;
  color: #6b7a83;
  margin-top: 0.6rem;
}

/* ===================== Mobile bottom nav ===================== */
.g135-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1000;
  height: 62px;
  background: rgba(44, 62, 80, 0.98);
  border-top: 1px solid var(--g135-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0.3rem 0.2rem;
}

.g135-bottom-nav-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  min-width: 60px;
  min-height: 58px;
  background: transparent;
  border: none;
  color: var(--g135-muted);
  font-size: 1rem;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.15s ease;
  text-decoration: none;
  padding: 0.2rem;
}

.g135-bottom-nav-btn i,
.g135-bottom-nav-btn .material-icons-outlined,
.g135-bottom-nav-btn ion-icon {
  font-size: 22px;
}

.g135-bottom-nav-btn:active { transform: scale(0.92); }

.g135-bottom-nav-active {
  color: var(--g135-accent);
}

.g135-bottom-nav-btn.g135-bottom-nav-active i { color: var(--g135-accent); }

/* ===================== Reveal animation ===================== */
.g135-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.g135-reveal.g135-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ===================== Desktop ===================== */
@media (min-width: 769px) {
  .g135-bottom-nav { display: none; }
  .g135-container { max-width: 760px; }
  .g135-grid { grid-template-columns: repeat(6, 1fr); }
  .g135-stat-row { grid-template-columns: repeat(4, 1fr); }
  .g135-wrapper { padding-bottom: 2rem; }
}

/* Keep mobile bottom clearance for content */
@media (max-width: 768px) {
  main { padding-bottom: 80px; }
}
