/* Results Page — Premium Layout */

.results-page {
  margin-top: -1px;
}

/* Hero band */
.results-hero {
  position: relative;
  padding: 3rem 0 2.5rem;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(108, 99, 255, 0.12) 0%, transparent 70%);
}

.results-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 150%;
  background: radial-gradient(ellipse, rgba(0, 229, 255, 0.15), transparent 65%);
  pointer-events: none;
}

.results-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 50px;
  background: rgba(63, 185, 80, 0.15);
  border: 1px solid rgba(63, 185, 80, 0.4);
  color: #3fb950;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

.results-hero-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.results-hero-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 520px;
  margin-bottom: 1.25rem;
}

.results-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.results-hero-meta i {
  color: var(--secondary);
  margin-right: 6px;
}

/* Spotlight card */
.results-spotlight {
  position: relative;
  padding: 2rem 1.5rem;
  text-align: center;
  overflow: hidden;
  border: 1px solid rgba(0, 229, 255, 0.25);
  box-shadow: 0 0 60px rgba(108, 99, 255, 0.15), inset 0 0 40px rgba(108, 99, 255, 0.05);
}

.spotlight-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(255, 60, 172, 0.12), transparent 55%);
  pointer-events: none;
  animation: spotlightPulse 4s ease-in-out infinite;
}

@keyframes spotlightPulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.spotlight-label {
  position: relative;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--secondary);
  margin-bottom: 0.35rem;
}

.spotlight-market {
  position: relative;
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.25rem;
}

.spotlight-date {
  position: relative;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Large reveal layout */
.result-reveal-lg {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 1rem 0;
}

.result-reveal-lg .digit-box,
.result-reveal-lg .jodi-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.result-reveal-lg .digit-box small,
.result-reveal-lg .jodi-box small {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.result-reveal-lg .digit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  font-size: 2.5rem;
  font-weight: 800;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(108, 99, 255, 0.35), rgba(255, 60, 172, 0.2));
  border: 2px solid rgba(0, 229, 255, 0.35);
  color: #fff;
  -webkit-text-fill-color: #fff;
  box-shadow: 0 8px 32px rgba(108, 99, 255, 0.35);
}

.result-reveal-lg .jodi-box .jodi-val {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  height: 72px;
  padding: 0 12px;
  font-size: 1.75rem;
  font-weight: 800;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  color: #fff;
  box-shadow: 0 8px 28px rgba(255, 60, 172, 0.35);
}

.digit-pop {
  animation: digitPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes digitPop {
  0% { transform: scale(0.3) rotate(-8deg); opacity: 0; }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}

/* Filter bar */
.results-filter-section {
  margin-top: -1.5rem;
  position: relative;
  z-index: 2;
  margin-bottom: 2rem;
}

.results-filter-bar {
  border: 1px solid rgba(108, 99, 255, 0.2);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.results-count-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 50px;
  background: rgba(108, 99, 255, 0.12);
  border: 1px solid rgba(108, 99, 255, 0.25);
  color: var(--secondary);
  font-weight: 600;
  font-size: 0.9rem;
}

/* Result cards */
.result-card {
  position: relative;
  padding: 0;
  overflow: hidden;
  animation: cardFadeIn 0.5s ease backwards;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

@keyframes cardFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.result-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 229, 255, 0.35);
  box-shadow: 0 20px 50px rgba(108, 99, 255, 0.2);
}

.result-card-latest {
  border-color: rgba(255, 60, 172, 0.4);
}

.result-card-latest::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--secondary));
}

.result-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 1.25rem 1.25rem 0.75rem;
}

.result-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(108, 99, 255, 0.3), rgba(0, 229, 255, 0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--secondary);
  flex-shrink: 0;
}

.result-card-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

.result-card-date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.result-new-badge {
  margin-left: auto;
  padding: 4px 10px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #fff;
}

.result-card-numbers {
  display: grid;
  grid-template-columns: 1fr 1.1fr 1fr;
  gap: 8px;
  padding: 0 1rem 1rem;
}

.result-card-numbers .rc-num,
.result-card-numbers .rc-jodi {
  text-align: center;
  padding: 14px 8px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.result-card-numbers span {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.result-card-numbers strong {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, #fff, var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.result-card-numbers .rc-jodi {
  background: linear-gradient(145deg, rgba(255, 60, 172, 0.2), rgba(108, 99, 255, 0.15));
  border-color: rgba(255, 60, 172, 0.25);
}

.result-card-numbers .rc-jodi strong {
  background: linear-gradient(135deg, var(--accent), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.result-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.result-card-foot i {
  color: #3fb950;
  margin-right: 4px;
}

.result-slug {
  text-transform: uppercase;
  opacity: 0.6;
}

/* Empty & loading */
.results-empty i {
  color: var(--primary);
  opacity: 0.5;
}

.results-skeleton {
  min-height: 200px;
  background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@media (max-width: 991px) {
  .results-hero {
    padding-top: 2rem;
  }
  .results-spotlight {
    margin-top: 0.5rem;
  }
  .result-reveal-lg .digit,
  .result-reveal-lg .jodi-box .jodi-val {
    width: 58px;
    height: 58px;
    font-size: 2rem;
  }
  .result-reveal-lg .jodi-box .jodi-val {
    font-size: 1.35rem;
    min-width: 52px;
  }
}

@media (max-width: 576px) {
  .result-card-numbers strong {
    font-size: 1.35rem;
  }
  .results-count-pill {
    width: 100%;
    justify-content: center;
    margin-top: 0.5rem;
  }
}
