/* ============================================================
   JACKPOT WIDGET – Premium Tabbed Multi-Provider
   ============================================================ */

.jp-section {
  width: 100%;
  max-width: var(--max-width, 2620px);
  margin: 20px auto 8px;
  padding: 0 15px;
  box-sizing: border-box;
}

/* ---- Background Container (jackpot-bg.png = kiraz, zar, elmas vb. dekoratif arka plan) ---- */
.jp-bg {
  position: relative;
  width: 100%;
  min-height: 380px;
  background:
    linear-gradient(140deg, rgba(26, 10, 62, 0.42) 0%, rgba(18, 7, 48, 0.48) 40%, rgba(13, 5, 32, 0.52) 70%, rgba(26, 10, 62, 0.42) 100%),
    url('/assets/images/jackpot/jackpot-bg.png') no-repeat center center;
  background-size: cover;
  border-radius: 20px;
  padding: 30px 40px 28px;
  overflow: hidden;
  box-sizing: border-box;
}

/* Görseldeki dekoratif öğeler jackpot-bg.png içinde; CSS deko kapalı */
.jp-deco {
  display: none;
}

/* ---- Tab Navigation ---- */
.jp-tabs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 36px;
  position: relative;
  z-index: 2;
  flex-wrap: wrap;
}

.jp-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
  text-transform: uppercase;
}

.jp-tab:hover {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.jp-tab--active {
  border-color: rgba(255, 255, 255, 0.9);
  color: #1a0a2e;
  background: rgba(255, 255, 255, 0.95);
}

/* ---- Provider Panels ---- */
.jp-panel {
  display: none;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

.jp-panel--active {
  display: flex;
}

/* ---- Provider Title ---- */
.jp-provider-title {
  margin: 0 0 28px;
  padding: 0;
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 800;
  color: #fff;
  text-align: center;
  letter-spacing: 3px;
  text-transform: uppercase;
}

/* ---- Main Jackpot Card ---- */
.jp-main-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 540px;
  background: rgba(50, 40, 80, 0.55);
  border-radius: 12px;
  padding: 18px 28px 22px;
  margin-bottom: 30px;
  backdrop-filter: blur(4px);
}

.jp-main-label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.jp-main-amount {
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 900;
  color: #fff;
  white-space: nowrap;
  line-height: 1.2;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
  animation: jpAmountGlow 3s ease-in-out infinite;
}

/* ---- Sub-tier Cards ---- */
.jp-sub-cards {
  display: flex;
  gap: 14px;
  width: 100%;
  margin-bottom: 40px;
}

.jp-sub-card {
  flex: 1 1 0;
  min-width: 0;
  background: rgba(50, 40, 80, 0.5);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  backdrop-filter: blur(4px);
}

.jp-sub-label {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.jp-sub-amount {
  font-size: clamp(16px, 1.6vw, 22px);
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  line-height: 1.3;
}

/* ---- "Daha Fazla Göster" Button ---- */
.jp-show-more {
  display: block;
  width: 100%;
  text-align: center;
  padding: 14px 0;
  background: linear-gradient(90deg, rgba(40, 80, 100, 0.5) 0%, rgba(50, 90, 110, 0.55) 50%, rgba(40, 80, 100, 0.5) 100%);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  position: relative;
  z-index: 1;
  transition: background 0.25s ease, color 0.25s ease;
}

.jp-show-more:hover {
  background: linear-gradient(90deg, rgba(50, 100, 120, 0.6) 0%, rgba(60, 110, 130, 0.65) 50%, rgba(50, 100, 120, 0.6) 100%);
  color: #fff;
}

@keyframes jpAmountGlow {
  0%, 100% { text-shadow: 0 0 20px rgba(255, 255, 255, 0.12); }
  50%      { text-shadow: 0 0 32px rgba(255, 255, 255, 0.25), 0 0 60px rgba(200, 170, 255, 0.1); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
  .jp-section {
    padding: 0 8px;
    margin: 8px auto 10px;
    max-width: none;
  }

  /* Sekme değişince kutu boyu zıplamasın (en uzun içerik + pay) */
  .jp-bg {
    padding: 16px 12px 14px;
    min-height: 430px;
    border-radius: 10px;
  }

  .jp-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    justify-content: flex-start;
    gap: 6px;
    margin-bottom: 22px;
    /* overflow-x scroll kutusu üst/alt border+glow'u kesmesin */
    padding: 6px 2px 8px;
  }

  .jp-tabs::-webkit-scrollbar {
    display: none;
  }

  .jp-tab {
    flex: 1 0 auto;
    min-width: max-content;
    justify-content: center;
    padding: 8px 14px;
    font-size: 11px;
    letter-spacing: 0.5px;
    border-radius: 6px;
  }

  .jp-provider-title {
    font-size: 20px;
    letter-spacing: 2px;
    margin-bottom: 20px;
    min-height: 2.6em;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .jp-main-card {
    max-width: 100%;
    width: 100%;
    padding: 14px 18px 18px;
    margin-bottom: 20px;
    min-height: 112px;
    box-sizing: border-box;
  }

  .jp-main-amount {
    font-size: 26px;
    font-variant-numeric: tabular-nums;
    min-height: 1.3em;
    max-width: 100%;
  }

  /*
   * 2 kartlı (Apollo) vs 3 kartlı (EGT) flex ile yarım/tam genişlik değişiyordu → “küçülüyor” hissi.
   * Her zaman 3 sütun grid: boş hücre kalır, kart genişliği sabit kalır.
   */
  .jp-sub-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 28px;
    align-content: start;
    width: 100%;
  }

  .jp-sub-card {
    padding: 12px 8px;
    min-width: 0;
    width: auto;
    max-width: none;
  }

  .jp-sub-amount {
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .jp-sub-label {
    font-size: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .jp-main-card,
  .jp-sub-card,
  .jp-show-more {
    border-radius: 8px;
  }
}

@media (max-width: 480px) {
  .jp-tabs {
    gap: 4px;
  }

  .jp-tab {
    padding: 7px 12px;
    font-size: 10px;
    letter-spacing: 0;
  }

  .jp-bg {
    min-height: 440px;
  }

  .jp-sub-cards {
    gap: 6px;
  }

  .jp-sub-card {
    padding: 10px 6px;
  }

  .jp-sub-amount {
    font-size: 12px;
  }

  .jp-show-more {
    font-size: 12px;
    padding: 12px 0;
  }
}
