/* ============================================================
 * jilino1.homes - Core Theme Stylesheet
 * All custom classes use the "g675-" prefix.
 * Palette: #8B4513 (brand brown) | #2C2C2C (dark bg) | #E0E0E0 (light text)
 * Mobile-first, max-width 430px, rem units (root 62.5%).
 * ============================================================ */

:root {
  --g675-primary: #8B4513;
  --g675-primary-light: #B5651D;
  --g675-bg: #2C2C2C;
  --g675-bg-dark: #1E1E1E;
  --g675-bg-card: #3A3A3A;
  --g675-text: #E0E0E0;
  --g675-text-muted: #B0B0B0;
  --g675-accent: #F2C14E;
  --g675-border: #4A4A4A;
}

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

html { font-size: 62.5%; -webkit-text-size-adjust: 100%; }

body {
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--g675-bg);
  color: var(--g675-text);
  font-size: 1.5rem;
  line-height: 1.5;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: var(--g675-accent); text-decoration: none; }
a:hover { color: var(--g675-primary-light); }
img { max-width: 100%; display: block; }

/* ---------- Layout ---------- */
.g675-container { width: 100%; padding: 0 1.2rem; }
.g675-wrapper { padding: 1rem 1.2rem; }
.g675-section { padding: 2rem 1.2rem; border-bottom: 1px solid var(--g675-border); }
.g675-section h2 {
  font-size: 2rem; color: var(--g675-accent); margin-bottom: 1rem;
  border-left: 4px solid var(--g675-primary); padding-left: 0.8rem;
}
.g675-section h3 { font-size: 1.7rem; color: var(--g675-text); margin: 1rem 0 0.5rem; }
.g675-section p { margin-bottom: 0.8rem; color: var(--g675-text-muted); }

/* ---------- Header ---------- */
.g675-header {
  position: sticky; top: 0; z-index: 1000;
  background: linear-gradient(135deg, var(--g675-bg-dark), #3D2817);
  border-bottom: 2px solid var(--g675-primary);
  padding: 0.6rem 1rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.5rem;
}
.g675-brand {
  display: flex; align-items: center; gap: 0.5rem; flex: 1; min-width: 0;
}
.g675-brand img { width: 28px; height: 28px; border-radius: 6px; }
.g675-brand-name {
  font-size: 1.7rem; font-weight: 700; color: var(--g675-accent);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.g675-header-actions { display: flex; align-items: center; gap: 0.4rem; }
.g675-menu-btn {
  background: transparent; border: 1px solid var(--g675-primary);
  color: var(--g675-text); width: 34px; height: 34px; border-radius: 6px;
  font-size: 1.6rem; cursor: pointer; display: flex; align-items: center; justify-content: center;
}

/* ---------- Buttons ---------- */
.g675-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.6rem 1rem; border-radius: 8px; font-size: 1.3rem; font-weight: 700;
  cursor: pointer; border: none; min-height: 36px; text-align: center;
  transition: transform 0.15s, filter 0.15s;
}
.g675-btn:hover { filter: brightness(1.1); }
.g675-btn:active { transform: scale(0.96); }
.g675-btn-register {
  background: linear-gradient(135deg, var(--g675-primary), var(--g675-primary-light));
  color: #fff;
}
.g675-btn-login {
  background: transparent; color: var(--g675-accent);
  border: 1px solid var(--g675-accent);
}
.g675-btn-promo {
  background: linear-gradient(135deg, var(--g675-accent), #E08E0B);
  color: #2C2C2C; font-weight: 800; padding: 0.8rem 1.4rem;
}
.g675-link-text {
  color: var(--g675-accent); font-weight: 700; text-decoration: underline;
}

/* ---------- Mobile expandable menu ---------- */
.g675-mobile-menu {
  display: none; flex-direction: column; gap: 0.2rem;
  background: var(--g675-bg-dark); padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--g675-primary);
}
.g675-mobile-menu.g675-menu-open { display: flex; }
.g675-mobile-menu a {
  color: var(--g675-text); padding: 0.8rem 0.5rem;
  border-bottom: 1px dashed var(--g675-border); font-size: 1.4rem;
}
.g675-mobile-menu a:last-child { border-bottom: none; }

/* ---------- Desktop nav (hidden on mobile) ---------- */
.g675-desktop-nav { display: none; }

/* ---------- Carousel ---------- */
.g675-carousel {
  position: relative; width: 100%; height: 180px; overflow: hidden;
  border-radius: 12px; margin: 1rem 0;
}
.g675-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s ease;
  cursor: pointer;
}
.g675-slide.g675-slide-active { opacity: 1; }
.g675-slide img { width: 100%; height: 180px; object-fit: cover; border-radius: 12px; }
.g675-dots {
  position: absolute; bottom: 8px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 6px; z-index: 2;
}
.g675-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(224,224,224,0.4); cursor: pointer;
}
.g675-dot.g675-dot-active { background: var(--g675-accent); }

/* ---------- Hero ---------- */
.g675-hero { padding: 1.5rem 1.2rem; text-align: center; }
.g675-hero h1 {
  font-size: 2.4rem; color: var(--g675-accent); margin-bottom: 0.8rem;
  line-height: 1.2;
}
.g675-hero p { color: var(--g675-text-muted); margin-bottom: 1rem; }

/* ---------- Game grid ---------- */
.g675-cat-title {
  font-size: 1.8rem; color: var(--g675-accent); margin: 1.5rem 0 0.8rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.g675-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem;
}
.g675-game-card {
  background: var(--g675-bg-card); border-radius: 10px; padding: 0.5rem;
  text-align: center; cursor: pointer; border: 1px solid var(--g675-border);
  transition: transform 0.15s, border-color 0.15s;
}
.g675-game-card:hover { transform: translateY(-3px); border-color: var(--g675-primary); }
.g675-game-card img {
  width: 100%; height: 80px; object-fit: cover; border-radius: 8px; margin-bottom: 0.4rem;
}
.g675-game-name {
  font-size: 1.1rem; color: var(--g675-text); line-height: 1.2;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ---------- Info / feature cards ---------- */
.g675-card {
  background: var(--g75-bg-card, var(--g675-bg-card)); border-radius: 10px;
  padding: 1rem; margin-bottom: 0.8rem; border: 1px solid var(--g675-border);
}
.g675-card-title { font-size: 1.5rem; color: var(--g675-accent); margin-bottom: 0.4rem; }
.g675-feature-row {
  display: flex; gap: 0.8rem; align-items: flex-start; margin-bottom: 0.6rem;
}
.g675-feature-row i { color: var(--g675-primary-light); font-size: 1.8rem; flex-shrink: 0; }

/* ---------- RTP table ---------- */
.g675-rtp-table { width: 100%; border-collapse: collapse; font-size: 1.3rem; }
.g675-rtp-table th, .g675-rtp-table td {
  border: 1px solid var(--g675-border); padding: 0.5rem; text-align: left;
}
.g675-rtp-table th { background: var(--g675-primary); color: #fff; }
.g675-rtp-table td { color: var(--g675-text-muted); }

/* ---------- Testimonials ---------- */
.g675-testi {
  background: var(--g675-bg-card); border-left: 3px solid var(--g675-accent);
  padding: 0.8rem 1rem; border-radius: 8px; margin-bottom: 0.6rem;
}
.g675-testi-name { color: var(--g675-accent); font-weight: 700; font-size: 1.3rem; }

/* ---------- Payment icons ---------- */
.g675-pay-row {
  display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin-top: 0.5rem;
}
.g675-pay-chip {
  background: var(--g675-bg-card); border: 1px solid var(--g675-border);
  border-radius: 20px; padding: 0.4rem 0.9rem; font-size: 1.2rem; color: var(--g675-text);
}

/* ---------- Winners ---------- */
.g675-winner {
  display: flex; justify-content: space-between; padding: 0.5rem 0;
  border-bottom: 1px dashed var(--g675-border); font-size: 1.3rem;
}
.g675-winner-amount { color: var(--g675-accent); font-weight: 700; }

/* ---------- App CTA ---------- */
.g675-app-cta {
  background: linear-gradient(135deg, var(--g675-primary), #5C2C0A);
  border-radius: 12px; padding: 1.2rem; text-align: center; margin: 1rem 0;
}
.g675-app-cta h3 { color: #fff; margin-bottom: 0.5rem; }

/* ---------- Footer ---------- */
.g675-footer {
  background: var(--g675-bg-dark); padding: 1.5rem 1.2rem 6rem;
  border-top: 2px solid var(--g675-primary);
}
.g675-footer p { font-size: 1.3rem; color: var(--g675-text-muted); margin-bottom: 0.8rem; }
.g675-footer-links {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem;
}
.g675-footer-links a {
  background: var(--g675-bg-card); border: 1px solid var(--g675-border);
  padding: 0.4rem 0.8rem; border-radius: 6px; font-size: 1.2rem; color: var(--g675-text);
}
.g675-footer-copy {
  font-size: 1.1rem; color: var(--g675-text-muted); text-align: center; margin-top: 1rem;
}

/* ---------- Mobile bottom nav ---------- */
.g675-bottom-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; height: 60px; z-index: 1000;
  background: linear-gradient(180deg, #3D2817, var(--g675-bg-dark));
  border-top: 2px solid var(--g675-primary);
  display: flex; justify-content: space-around; align-items: center;
  padding: 4px 0;
}
.g675-bnav-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 60px; min-height: 56px; background: transparent; border: none;
  color: var(--g675-text-muted); font-size: 1rem; cursor: pointer;
  transition: color 0.2s, transform 0.15s;
}
.g675-bnav-btn .material-icons,
.g675-bnav-btn ion-icon,
.g675-bnav-btn i { font-size: 22px; }
.g675-bnav-btn ion-icon { font-size: 24px; }
.g675-bnav-btn:hover { color: var(--g675-accent); }
.g675-nav-active { transform: scale(1.15); color: var(--g675-accent); }
.g675-bnav-current { color: var(--g675-accent); }
.g675-bnav-badge {
  position: absolute; top: 4px; right: 18px; background: #E03A3A; color: #fff;
  font-size: 0.9rem; padding: 0 4px; border-radius: 8px; line-height: 1.4;
}

/* ---------- Bottom padding for main content (mobile) ---------- */
main { padding-bottom: 80px; }

/* ---------- Desktop styles ---------- */
@media (min-width: 769px) {
  body { max-width: 768px; }
  .g675-bottom-nav { display: none; }
  main { padding-bottom: 20px; }
  .g675-grid { grid-template-columns: repeat(6, 1fr); }
  .g675-desktop-nav { display: flex; gap: 1rem; align-items: center; }
  .g675-desktop-nav a { color: var(--g675-text); font-size: 1.3rem; }
  .g675-menu-btn { display: none; }
  .g675-carousel, .g675-slide img { height: 280px; }
  .g675-footer { padding-bottom: 2rem; }
}
