/* Jackpotmeter page styles */

/* ── Jackpotmeter grid ── */
.jackpotmeter-page__subtitle {
  margin: 0 0 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
}

.jackpotmeter-page__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.jackpot-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  will-change: transform;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.jackpot-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.jackpot-card__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 360px;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(rgba(255, 255, 255, 0), rgb(25, 57, 138));
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.jackpot-card__inner--level-cold {
  background: linear-gradient(rgba(255, 255, 255, 0), rgb(45, 55, 72));
}

.jackpot-card__inner--level-warm {
  background: linear-gradient(rgba(255, 255, 255, 0), rgb(25, 57, 138));
}

.jackpot-card__inner--level-hot {
  background: linear-gradient(rgba(255, 255, 255, 0), rgb(120, 53, 15));
}

.jackpot-card__inner--level-fire {
  background: linear-gradient(rgba(255, 255, 255, 0), rgb(127, 29, 29));
  box-shadow: 0 0 24px rgba(236, 7, 102, 0.25);
}

.jackpot-card__hot {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  padding: 4px 10px;
  border-radius: 4px;
  background: linear-gradient(90deg, #ec0766, #ff4e5e);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  /* text-transform: uppercase; */
  letter-spacing: 0.04em;
}

.jackpot-card__coins {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.jackpot-card__coin {
  position: absolute;
  bottom: -20px;
  width: 28px;
  height: 28px;
  opacity: 0.7;
  animation: coin-float 6s linear infinite;
  will-change: transform, opacity;
}

.jackpot-card__coin:nth-child(1) {
  left: 15%;
  animation-delay: 0s;
}
.jackpot-card__coin:nth-child(2) {
  left: 55%;
  animation-delay: -2s;
  width: 22px;
  height: 22px;
}
.jackpot-card__coin:nth-child(3) {
  left: 78%;
  animation-delay: -4s;
  width: 24px;
  height: 24px;
}

.jackpot-card__coin img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@keyframes coin-float {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.8;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(-320px) rotate(360deg);
    opacity: 0;
  }
}

.jackpot-card__image {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  padding: 24px 16px 8px;
}

.jackpot-card__image img {
  display: block;
  max-width: 120px;
  max-height: 80px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.jackpot-card__body {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0 16px 16px;
}

.jackpot-card__label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 4px;
}

.jackpot-card__amount {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  letter-spacing: 0.01em;
  min-height: 28px;
}

.jackpot-card__meter {
  margin-bottom: 12px;
}

.jackpot-card__meter-track {
  position: relative;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
  overflow: visible;
}

.jackpot-card__meter-fill {
  height: 100%;
  border-radius: 4px;
  width: 0%;
  transition:
    width 2s linear,
    background 0.6s ease;
  will-change: width;
}

.jackpot-card__inner--level-cold .jackpot-card__meter-fill {
  background: linear-gradient(90deg, #6b7280, #9ca3af);
}

.jackpot-card__inner--level-warm .jackpot-card__meter-fill {
  background: linear-gradient(90deg, #064286, #00badc);
}

.jackpot-card__inner--level-hot .jackpot-card__meter-fill {
  background: linear-gradient(90deg, #ee8e07, #ffc423);
}

.jackpot-card__inner--level-fire .jackpot-card__meter-fill {
  background: linear-gradient(90deg, #e63131, #ec0766);
  box-shadow: 0 0 12px rgba(236, 7, 102, 0.6);
}

.jackpot-card__meter-markers {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.jackpot-card__meter-marker {
  position: absolute;
  top: -2px;
  bottom: -2px;
  width: 1px;
  background: rgba(255, 255, 255, 0.2);
}

.jackpot-card__meter-marker--25 {
  left: 25%;
}
.jackpot-card__meter-marker--50 {
  left: 50%;
}
.jackpot-card__meter-marker--75 {
  left: 75%;
}

.jackpot-card__fire {
  position: absolute;
  right: -4px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.jackpot-card__inner--level-fire .jackpot-card__fire {
  opacity: 1;
  animation: fire-pulse 1.2s ease-in-out infinite;
}

.jackpot-card__fire svg {
  display: block;
  width: 100%;
  height: 100%;
}

@keyframes fire-pulse {
  0%,
  100% {
    transform: translateY(-50%) scale(1);
    filter: drop-shadow(0 0 4px rgba(255, 120, 0, 0.6));
  }
  50% {
    transform: translateY(-50%) scale(1.12);
    filter: drop-shadow(0 0 12px rgba(255, 80, 0, 0.9));
  }
}

.jackpot-card__provider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
}

.jackpot-card__provider img {
  display: block;
  max-height: 24px;
  width: auto;
  opacity: 0.9;
}

.jackpot-card__play {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: auto;
  text-decoration: none;
}

/* ── Jackpot games grid (reuse game card styles from custom.css) ── */
.jackpots-section .game-group {
  display: grid;
  align-items: stretch;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 576px) {
  .jackpots-section .game-group {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .jackpots-section .game-group {
    gap: 16px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .jackpots-section .game-group {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .jackpots-section .game-group {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

.jackpot-game-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  height: 100%;
  border-radius: 6px;
  overflow: hidden;
  background: #142440;
}

.jackpot-game-card__link {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  flex: 1;
  color: inherit;
  cursor: default;
  outline: none;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.jackpot-game-card__link:hover,
.jackpot-game-card__link:focus-within {
  transform: translateY(-2px);
}

.jackpot-game-card__image {
  position: relative;
  aspect-ratio: 3 / 2;
  width: 100%;
  flex-shrink: 0;
  overflow: hidden;
  background: #142440;
}

.jackpot-game-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.jackpot-game-card__overlay {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.25s ease;
  background: rgba(20, 36, 64, 0.95);
  z-index: 4;
}

.jackpot-game-card__link:hover .jackpot-game-card__overlay,
.jackpot-game-card__link:focus-within .jackpot-game-card__overlay {
  opacity: 1;
}

.jackpot-game-card__actions {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  flex-direction: column;
  transition: opacity 0.25s ease;
  z-index: 5;
}

.jackpot-game-card__link:hover .jackpot-game-card__actions,
.jackpot-game-card__link:focus-within .jackpot-game-card__actions {
  opacity: 1;
}

.jackpot-game-card__actions .btn {
  min-width: 88px;
}

.jackpot-game-card__info {
  display: block;
  padding: 8px 10px 10px;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
  min-height: 52px;
  box-sizing: border-box;
}

.jackpot-game-card__name {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.jackpot-game-card__provider {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .jackpotmeter-page__grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
  }

  .jackpot-card__inner {
    min-height: 320px;
  }

  .jackpot-card__amount {
    font-size: 18px;
  }

  .jackpots-section .game-group {
    gap: 8px;
  }
}

@media (min-width: 1200px) {
  .jackpotmeter-page__grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .jackpot-card__coin,
  .jackpot-card__fire,
  .jackpot-card__meter-fill {
    animation: none;
    transition: none;
  }
}
