/**
 * FLUE JEWELLERY — Lüks Şans Çarkı CSS
 * (Luxury Lucky Wheel Styles)
 * ----------------------------------------------------------------------------
 * Site Renk Paleti ile %100 Uyumlu: Beyaz, Antrasit (#0f172a) ve Gümüş (#94a3b8)
 * Kural: Kesinlikle emoji içermez! FontAwesome 6 ikonları kullanılır.
 */

/* ==========================================================================
   1. MODAL OVERLAY & WRAPPER (Lüks Işıltılı Cam & Beyaz Zemin)
   ========================================================================== */
.taki-wheel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.taki-wheel-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.taki-wheel-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -46%) scale(0.95);
  width: 92%;
  max-width: 920px;
  max-height: 92vh;
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.35);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease, visibility 0.35s ease;
  color: #0f172a;
  font-family: var(--taki-font-body, 'Outfit', sans-serif);
}

.taki-wheel-modal.is-open {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  visibility: visible;
}

/* Kapatma Butonu */
.taki-wheel-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.taki-wheel-close:hover {
  background: #fee2e2;
  border-color: #fecdd3;
  color: #be123c;
  transform: rotate(90deg);
}

/* İki Sütunlu Grid Düzeni */
.taki-wheel-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  padding: 36px 40px;
  gap: 36px;
}

/* ==========================================================================
   2. ÇARK SAHNESİ & DÖNÜŞ FİZİĞİ (Kaymasız, Kusursuz Eksenel Merkez)
   ========================================================================== */
.taki-wheel-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.taki-wheel-rim {
  position: relative;
  width: 370px;
  height: 370px;
  max-width: 100%;
  border-radius: 50%;
  background: radial-gradient(circle, #1e293b 0%, #0f172a 100%);
  padding: 10px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.4);
  border: 4px solid #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

#takiWheelCanvas {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: block;
  box-sizing: border-box;
  transform-origin: 50% 50%;
  -webkit-transform-origin: 50% 50%;
  transition: transform 4.8s cubic-bezier(0.15, 0.9, 0.25, 1);
  will-change: transform;
}

/* Üst Sabit İbre (Downwards Ticker — Sallantısız ve Titreşimsiz) */
.taki-wheel-pointer {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  color: #e11d48;
  font-size: 2.6rem;
  line-height: 1;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.45));
  pointer-events: none;
}

/* Merkez Lüks Çevir Butonu — yakut gül "taş" */
.taki-wheel-center-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fb7185 0%, #e11d48 45%, #9f1239 100%);
  border: 3px solid #ffffff;
  box-shadow: 0 6px 18px rgba(159, 18, 57, 0.55), inset 0 2px 4px rgba(255, 255, 255, 0.35);
  color: #ffffff;
  font-family: var(--taki-font-heading, 'Cinzel', serif);
  font-weight: 800;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  z-index: 6;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.taki-wheel-center-btn:hover:not(:disabled) {
  transform: translate(-50%, -50%) scale(1.08);
  box-shadow: 0 8px 22px rgba(159, 18, 57, 0.65);
}

.taki-wheel-center-btn:disabled {
  cursor: not-allowed;
  opacity: 0.9;
}

.taki-wheel-center-text {
  font-size: 0.92rem;
  letter-spacing: 1px;
  line-height: 1;
}

.taki-wheel-center-btn i {
  font-size: 0.7rem;
}

/* ==========================================================================
   3. SAĞ TARAF: BİLGİ & KAZANÇ GÖRÜNÜMÜ (Site Temasıyla Uyumlu)
   ========================================================================== */
.taki-wheel-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.taki-wheel-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  color: #334155;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 14px;
  width: fit-content;
}

.taki-wheel-tag.won {
  background: rgba(22, 163, 74, 0.12);
  border-color: rgba(22, 163, 74, 0.3);
  color: #166534;
}

.taki-wheel-title {
  font-family: var(--taki-font-heading, 'Cinzel', serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.taki-wheel-desc {
  font-size: 0.92rem;
  color: #475569;
  line-height: 1.55;
  margin-bottom: 20px;
}

.taki-wheel-perks {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.taki-wheel-perks li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  color: #334155;
}

.taki-wheel-perks li i {
  color: #64748b;
  font-size: 0.95rem;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}

/* Butonlar */
.taki-wheel-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 50px;
  padding: 12px 24px;
  background: #0f172a;
  color: #ffffff !important;
  font-family: var(--taki-font-heading, 'Cinzel', serif);
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.25);
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.taki-wheel-cta-btn:hover {
  background: #1e293b;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.35);
}

/* Para/kazanç anlamlı yeşil — kuponu sepete uygula */
.taki-wheel-cta-btn.apply {
  background: #047857;
  color: #ffffff !important;
  box-shadow: 0 6px 20px rgba(4, 120, 87, 0.35);
}

.taki-wheel-cta-btn.apply:hover {
  background: #059669;
  box-shadow: 0 10px 25px rgba(4, 120, 87, 0.45);
}

/* ==========================================================================
   4. KAZANÇ EKRANI (RESULT VIEW)
   ========================================================================== */
.taki-wheel-prize-name {
  font-family: var(--taki-font-heading, 'Cinzel', serif);
  font-size: 1.85rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.taki-wheel-prize-desc {
  font-size: 0.92rem;
  color: #475569;
  line-height: 1.5;
  margin-bottom: 18px;
}

/* Süre Sayaç Kutusu — süresi işleyen/bekleyen durum anlamlı amber ton */
.taki-wheel-timer-box {
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: 12px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.taki-wheel-timer-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: #b45309;
  text-transform: uppercase;
}

.taki-wheel-timer-digits {
  font-family: monospace;
  font-size: 1.35rem;
  font-weight: 800;
  color: #92400e;
  letter-spacing: 1.5px;
  background: #ffffff;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid #fde68a;
}

/* Özel Kupon Kodu Kartı */
.taki-wheel-code-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
  border: 1.5px dashed #cbd5e1;
  border-radius: 12px;
  padding: 10px 16px;
  margin-bottom: 18px;
}

.taki-wheel-code-value {
  font-family: monospace;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: #0f172a;
}

.taki-wheel-code-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: #0f172a;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.taki-wheel-code-copy:hover {
  background: #1e293b;
}

.taki-wheel-code-copy.copied {
  background: #16a34a;
  color: #ffffff;
}

.taki-wheel-terms {
  font-size: 0.76rem;
  color: #64748b;
  margin-top: 12px;
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   5. YÜZEN ÇARK TETİKLEYİCİ BUTONU (SOL ALT KÖŞE)
   ========================================================================== */
.taki-wheel-floating-trigger {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 97;
  display: none; /* Varsayılan olarak kapalıdır — yalnızca hak kazanıldığında akıllıca açılır */
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 10px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  color: #0f172a;
  text-decoration: none;
}

.taki-wheel-floating-trigger.is-visible {
  display: flex !important;
  animation: takiFloatingSlideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* Akıllı Eşik Açılış Bildirimi (VIP Unlock Toast) */
.taki-wheel-unlock-toast {
  position: fixed;
  top: 24px;
  right: 24px;
  max-width: 420px;
  background: #0f172a;
  color: #ffffff;
  border: 1px solid #334155;
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
  z-index: 10005;
  cursor: pointer;
  animation: takiToastEnter 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  font-family: var(--taki-font-body, 'Outfit', sans-serif);
}

@keyframes takiToastEnter {
  from { opacity: 0; transform: translateY(-20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.taki-wheel-unlock-toast .toast-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #1e293b;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.taki-wheel-unlock-toast .toast-content {
  flex: 1;
}

.taki-wheel-unlock-toast .toast-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.taki-wheel-unlock-toast .toast-desc {
  font-size: 0.82rem;
  color: #cbd5e1;
  line-height: 1.35;
}


.taki-wheel-floating-trigger:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}

.taki-wheel-floating-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #e11d48;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  animation: takiIconSpin 12s linear infinite;
}

@keyframes takiIconSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.taki-wheel-floating-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.taki-wheel-floating-text .top {
  font-size: 0.64rem;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.taki-wheel-floating-text .bottom {
  font-size: 0.86rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: 0.5px;
}

.taki-wheel-floating-pulse {
  position: absolute;
  inset: -3px;
  border-radius: 999px;
  border: 1.5px solid rgba(225, 29, 72, 0.35);
  animation: takiFloatingPulse 2.5s cubic-bezier(0.24, 0, 0.38, 1) infinite;
  pointer-events: none;
}

@keyframes takiFloatingPulse {
  0% { transform: scale(1); opacity: 0.8; }
  70% { transform: scale(1.15, 1.3); opacity: 0; }
  100% { transform: scale(1.15, 1.3); opacity: 0; }
}

/* ==========================================================================
   6. MOBİL UYUMLULUK (RESPONSIVE)
   ========================================================================== */
@media (max-width: 768px) {
  .taki-wheel-modal {
    width: 95%;
    max-height: 94vh;
    padding: 16px 12px;
  }

  .taki-wheel-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 8px;
  }

  .taki-wheel-rim {
    width: 290px;
    height: 290px;
    padding: 8px;
  }

  .taki-wheel-center-btn {
    width: 62px;
    height: 62px;
  }

  .taki-wheel-center-text {
    font-size: 0.8rem;
  }

  .taki-wheel-title {
    font-size: 1.3rem;
  }

  .taki-wheel-prize-name {
    font-size: 1.45rem;
  }

  .taki-wheel-floating-trigger {
    bottom: 16px;
    left: 16px;
    padding: 6px 12px 6px 8px;
  }

  .taki-wheel-floating-icon {
    width: 32px;
    height: 32px;
    font-size: 0.95rem;
  }
}
