/*!
 * jl22 layout.css - Mobile-first stylesheet for jl22.homes
 * All custom classes use the gf73- prefix.
 * Color palette: #FFEFD5 | #1C2833 | #A9A9A9 | #D2691E | #36454F | #FFDEAD
 */

:root {
  --gf73-cream: #FFDEAD;
  --gf73-cream-light: #FFEFD5;
  --gf73-dark: #1C2833;
  --gf73-charcoal: #36454F;
  --gf73-grey: #A9A9A9;
  --gf73-chocolate: #D2691E;
  --gf73-bg: #1C2833;
  --gf73-text: #FFEFD5;
  --gf73-primary: #D2691E;
  --gf73-radius: 12px;
  --gf73-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

/* rem root tuning: 62.5% makes 1rem = 10px */
html {
  font-size: 62.5%;
  -webkit-text-size-adjust: 100%;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--gf73-bg);
  color: var(--gf73-text);
  line-height: 1.5rem;
  font-size: 1.5rem;
  -webkit-font-smoothing: antialiased;
}

/* Mobile-first wrapper: literal max-width 430px */
.gf73-wrapper {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
  min-height: 100vh;
}

main.gf73-main {
  padding-bottom: 90px; /* clear the fixed bottom nav on mobile */
}

/* ===================== Header ===================== */
.gf73-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, #1C2833 0%, #36454F 100%);
  border-bottom: 2px solid var(--gf73-chocolate);
  box-shadow: var(--gf73-shadow);
}

.gf73-header-inner {
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  min-height: 56px;
}

.gf73-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.gf73-brand img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.gf73-brand-name {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--gf73-cream-light);
  letter-spacing: 0.5px;
}

.gf73-brand-name span {
  color: var(--gf73-chocolate);
}

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

.gf73-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.3rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
  min-height: 38px;
}

.gf73-btn:hover { transform: translateY(-1px); }
.gf73-btn:active { transform: scale(0.97); }

.gf73-btn-login {
  background: transparent;
  color: var(--gf73-cream-light);
  border: 1.5px solid var(--gf73-chocolate);
}

.gf73-btn-register {
  background: linear-gradient(135deg, #D2691E, #FFDEAD);
  color: #1C2833;
  box-shadow: 0 3px 10px rgba(210, 105, 30, 0.5);
}

.gf73-icon-btn {
  background: transparent;
  border: none;
  color: var(--gf73-cream-light);
  font-size: 2.2rem;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  cursor: pointer;
}

.gf73-icon-btn:active { background: rgba(255, 255, 255, 0.1); }

/* ===================== Mobile Nav Drawer ===================== */
.gf73-mobile-nav {
  position: fixed;
  top: 0;
  right: -85%;
  width: 80%;
  max-width: 340px;
  height: 100vh;
  background: #1C2833;
  z-index: 9999;
  padding: 72px 16px 24px;
  overflow-y: auto;
  transform: translateX(0);
  transition: right 0.3s ease;
  border-left: 2px solid var(--gf73-chocolate);
}

.gf73-mobile-nav.gf73-nav-active {
  right: 0;
}

.gf73-mobile-nav a {
  display: block;
  padding: 12px 14px;
  margin-bottom: 8px;
  color: var(--gf73-cream-light);
  text-decoration: none;
  font-size: 1.5rem;
  border-radius: 8px;
  border-left: 3px solid transparent;
  background: rgba(255, 255, 255, 0.04);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.gf73-mobile-nav a:hover,
.gf73-mobile-nav a:focus {
  background: rgba(210, 105, 30, 0.15);
  border-left-color: var(--gf73-chocolate);
}

.gf73-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
}

body.gf73-menu-open .gf73-overlay {
  opacity: 1;
  visibility: visible;
}

.gf73-nav-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: transparent;
  border: none;
  color: var(--gf73-cream-light);
  font-size: 2.6rem;
  cursor: pointer;
}

/* ===================== Hero Carousel ===================== */
.gf73-hero {
  margin-top: 64px;
  width: 100%;
  overflow: hidden;
  position: relative;
  border-radius: 0;
}

.gf73-hero-track {
  display: flex;
  transition: transform 0.5s ease;
}

.gf73-hero-slide {
  min-width: 100%;
  position: relative;
}

.gf73-hero-slide img {
  width: 100%;
  display: block;
  max-height: 220px;
  object-fit: cover;
}

.gf73-hero-dots {
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.gf73-hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 239, 213, 0.5);
  cursor: pointer;
}

.gf73-hero-dot-active {
  background: var(--gf73-chocolate);
}

/* ===================== Section layout ===================== */
.gf73-section {
  padding: 18px 14px 4px;
}

.gf73-section-title {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--gf73-cream);
  border-left: 4px solid var(--gf73-chocolate);
  padding-left: 10px;
}

.gf73-section-title em {
  color: var(--gf73-chocolate);
  font-style: normal;
}

.gf73-lead {
  color: var(--gf73-cream-light);
  margin: 0 0 12px;
  font-size: 1.45rem;
}

/* ===================== Game grid ===================== */
.gf73-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.gf73-card {
  background: var(--gf73-charcoal);
  border-radius: var(--gf73-radius);
  overflow: hidden;
  text-align: center;
  text-decoration: none;
  color: var(--gf73-cream-light);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: block;
}

.gf73-card:hover { transform: translateY(-2px); box-shadow: var(--gf73-shadow); }

.gf73-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.gf73-card-name {
  padding: 6px 4px;
  font-size: 1.2rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===================== Category badges ===================== */
.gf73-cat-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 6px;
}

.gf73-cat-badge {
  background: var(--gf73-charcoal);
  color: var(--gf73-cream-light);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 1.25rem;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid var(--gf73-chocolate);
}

/* ===================== Promo text link ===================== */
.gf73-text-link {
  color: var(--gf73-chocolate);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px dashed var(--gf73-chocolate);
  cursor: pointer;
}

/* ===================== Features / Info modules ===================== */
.gf73-feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.gf73-feature {
  background: linear-gradient(135deg, #36454F, #1C2833);
  border-radius: var(--gf73-radius);
  padding: 14px;
  border-left: 4px solid var(--gf73-chocolate);
}

.gf73-feature h3 {
  margin: 0 0 6px;
  font-size: 1.7rem;
  color: var(--gf73-cream);
}

.gf73-feature p {
  margin: 0;
  font-size: 1.35rem;
  color: var(--gf73-grey);
}

/* RTP compact table */
.gf73-rtp-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 10px;
  background: var(--gf73-charcoal);
  border-radius: 8px;
  margin-bottom: 6px;
  font-size: 1.35rem;
}

.gf73-rtp-row span:last-child {
  color: var(--gf73-chocolate);
  font-weight: 700;
}

/* Testimonial */
.gf73-testimonial {
  background: var(--gf73-charcoal);
  border-radius: var(--gf73-radius);
  padding: 12px;
  margin-bottom: 8px;
}

.gf73-testimonial p { margin: 0 0 6px; font-size: 1.35rem; }
.gf73-testimonial cite { color: var(--gf73-chocolate); font-style: normal; font-weight: 700; }

/* Payment chips */
.gf73-pay-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.gf73-pay-chip {
  background: var(--gf73-charcoal);
  color: var(--gf73-cream-light);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* CTA block */
.gf73-cta {
  background: linear-gradient(135deg, #D2691E, #FFDEAD);
  color: #1C2833;
  border-radius: var(--gf73-radius);
  padding: 18px;
  text-align: center;
  margin: 14px 0;
}

.gf73-cta h2 { margin: 0 0 8px; font-size: 2.1rem; }
.gf73-cta p { margin: 0 0 12px; font-size: 1.4rem; }

.gf73-cta .gf73-btn-register {
  background: #1C2833;
  color: var(--gf73-cream-light);
}

/* Winners list */
.gf73-winner {
  display: flex;
  justify-content: space-between;
  padding: 8px 10px;
  background: var(--gf73-charcoal);
  border-radius: 8px;
  margin-bottom: 6px;
  font-size: 1.3rem;
}

/* ===================== Footer ===================== */
.gf73-footer {
  background: #141c25;
  padding: 22px 14px 30px;
  border-top: 2px solid var(--gf73-chocolate);
  margin-top: 18px;
}

.gf73-footer p { font-size: 1.3rem; color: var(--gf73-grey); margin: 0 0 10px; }

.gf73-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.gf73-footer-links a {
  color: var(--gf73-cream-light);
  text-decoration: none;
  font-size: 1.25rem;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
}

.gf73-footer-links a:hover { color: var(--gf73-chocolate); }

.gf73-footer-copy {
  font-size: 1.2rem;
  color: var(--gf73-grey);
  text-align: center;
  margin-top: 8px;
}

/* ===================== Bottom Nav (mobile only) ===================== */
.gf73-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 62px;
  background: linear-gradient(180deg, #36454F, #1C2833);
  border-top: 2px solid var(--gf73-chocolate);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
}

.gf73-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  border: none;
  color: var(--gf73-cream-light);
  text-decoration: none;
  cursor: pointer;
  gap: 2px;
  transition: transform 0.15s ease, color 0.15s ease;
  position: relative;
}

.gf73-nav-item .material-icons,
.gf73-nav-item .fas,
.gf73-nav-item .far,
.gf73-nav-item .bi {
  font-size: 24px;
}

.gf73-nav-item span.gf73-nav-label {
  font-size: 1.05rem;
  font-weight: 600;
}

.gf73-nav-item:active { transform: scale(0.92); }

.gf73-nav-current {
  color: var(--gf73-chocolate);
}

.gf73-nav-current::before {
  content: "";
  position: absolute;
  top: 0;
  width: 32px;
  height: 3px;
  background: var(--gf73-chocolate);
  border-radius: 0 0 6px 6px;
}

.gf73-nav-badge {
  position: absolute;
  top: 6px;
  right: 14px;
  background: #e74c3c;
  color: #fff;
  font-size: 0.95rem;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* ===================== Desktop ===================== */
@media (min-width: 769px) {
  .gf73-bottom-nav { display: none; }
  main.gf73-main { padding-bottom: 24px; }
  .gf73-grid { grid-template-columns: repeat(5, 1fr); }
  .gf73-feature-grid { grid-template-columns: repeat(2, 1fr); }
}

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

/* Accessible focus rings */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gf73-cream);
  outline-offset: 2px;
}
