/* =========================================
   LotteryCheckerPro – Latest Results Page
   ========================================= */

/* GRID (mobile first) */
.lcpro-latest-results-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin: 1.5rem 0;
}

/* Tablet */
@media (min-width: 600px) {
  .lcpro-latest-results-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .lcpro-latest-results-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* CARD */
.lcpro-result-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 1.25rem;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

/* TITLE */
.lcpro-lottery-title {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
}

/* DATE */
.lcpro-draw-date {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.75rem;
}

/* BALLS WRAPPER */
.lcpro-balls {
  margin: 1rem 0;
}

/* BONUS BALLS */
.lcpro-bonus-balls {
  margin-top: 0.5rem;
}

/* CTA */
.lcpro-cta {
  display: block;
  margin-top: 1rem;
  padding: 12px;
  background: #0073aa;
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}

.lcpro-cta:hover {
  background: #005f8d;
}
/* =========================================
   LotteryCheckerPro – Latest Results Page
   Single-column layout
   ========================================= */

/* CONTAINER */
.lcpro-latest-results-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: 1.5rem 0;
}

/* CARD */
.lcpro-result-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 1.25rem;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

/* TITLE */
.lcpro-lottery-title {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
}

/* DATE */
.lcpro-draw-date {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.75rem;
}

/* BALLS */
.lcpro-balls {
  margin: 1rem 0;
}

.lcpro-bonus-balls {
  margin-top: 0.5rem;
}

/* CTA */
.lcpro-cta {
  display: block;
  margin-top: 1rem;
  padding: 12px;
  background: #0073aa;
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}

.lcpro-cta:hover {
  background: #005f8d;
}
/* ================================
   BALL LAYOUT FIX (WRAPPING)
   ================================ */

/* Main balls container */
.lcpro-balls {
  display: flex;
  flex-wrap: wrap;              /* ? THIS IS THE KEY */
  justify-content: center;
  gap: 0.5rem;
  margin: 1rem 0;
  max-width: 100%;
  box-sizing: border-box;
}

/* Bonus balls container */
.lcpro-bonus-balls {
  display: flex;
  flex-wrap: wrap;              /* ? ALSO REQUIRED */
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

/* Safety: prevent balls forcing overflow */
.lcpro-ball {
  flex: 0 0 auto;
  max-width: 100%;
}
/* Force black text on bonus & lucky star balls */
.lcpro-ball-bonus,
.lcpro-ball-star {
  color: #000 !important;
}

/* Make Lucky Stars visually match bonus ball */
.lcpro-ball-star {
  background: linear-gradient(145deg, #ffd700, #f2b600);
  box-shadow:
    inset -2px -2px 4px rgba(255,255,255,0.4),
    inset 2px 2px 4px rgba(0,0,0,0.25),
    0 3px 6px rgba(0,0,0,0.25);
}

/* CTA – mobile default */
.lcpro-cta {
  display: block;
  width: 100%;
  text-align: center;
}

/* CTA – desktop */
@media (min-width: 768px) {
  .lcpro-cta {
    display: inline-block;
    width: auto;
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* =========================================
   Latest Results – Visual Tweaks
   ========================================= */

/* 1?? Black text on bonus & lucky star balls */
.lcpro-ball-bonus,
.lcpro-ball-star {
  color: #000 !important;
}

/* 2?? Lucky Stars styled gold (like bonus ball) */
.lcpro-ball-star {
  background: linear-gradient(145deg, #ffd700, #f2b600);
  box-shadow:
    inset -2px -2px 4px rgba(255,255,255,0.4),
    inset 2px 2px 4px rgba(0,0,0,0.25),
    0 3px 6px rgba(0,0,0,0.25);
}

/* 3?? CTA button: full-width mobile, natural width desktop */
.lcpro-cta {
  display: block;
  width: 100%;
  text-align: center;
}

@media (min-width: 768px) {
  .lcpro-cta {
    display: inline-block;
    width: auto;
    padding-left: 20px;
    padding-right: 20px;
  }
}
/* Keep all balls aligned on one row */
.lcpro-balls {
    display: flex;
    align-items: center;   /* vertical alignment fix */
    flex-wrap: wrap;       /* safety on small screens */
    gap: 6px;
}

/* Bonus balls container should NOT force a new line */
.lcpro-bonus-balls {
    display: flex;
    align-items: center;
    margin-left: 6px;      /* spacing from main balls */
}

/* Keep bonus / thunderball inline with main balls */
.lcpro-balls {
    white-space: nowrap;
}

.lcpro-bonus-balls {
    display: inline-block;
    vertical-align: middle;
    margin-left: 6px;
}

/* Align balls themselves */
.lcpro-ball {
    vertical-align: middle;
}

.lcpro-ball {
    line-height: normal;
}

.lcpro-latest-results-cta {
  margin: 2em 0;
  padding: 1em 1.2em;
  background: #f8fafc;
  border-radius: 8px;
}

.lcpro-latest-results-cta em {
  display: block;
  margin-bottom: 0.6em;
}
.lcpro-section-divider {
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    #e5e7eb,
    transparent
  );
  margin: 1.6em 0;
}
/* Ensure bonus balls always use gold styling */
.lcpro-ball.lcpro-ball-bonus {
  background: linear-gradient(145deg, #f5c542, #d4a017);
  color: #1f2933;
  border: 1px solid #d4a017;
}
@media (min-width: 768px) {
  .lcpro-latest-results-cta {
    text-align: left;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
  }
}


  .lcpro-latest-results-cta .lcpro-context-cta {
    margin-left: auto;
    margin-right: auto;
  }
}
