/**
 * Şans çarkı — site teması (lacivert + altın, Outfit)
 */

/* Sayfa layout + hero + giriş kapısı */
.layout-content-holder-bc.spin-wheel-layout {
  box-sizing: border-box;
  width: 100%;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  padding: clamp(0.65rem, 2.5vw, 1rem) clamp(10px, 3.5vw, 18px) clamp(1.25rem, 4vw, 2rem);
  --sw-hero: 188, 149, 86;
  --sw-brand: 22, 199, 46;
  grid-area: content;
}

#root .layout-content-holder-bc.spin-wheel-layout {
  background: transparent !important;
  flex: 0 0 auto;
}

.spin-wheel-pro {
  width: 100%;
  color: rgba(255, 255, 255, 0.92);
  font-family: "Outfit", sans-serif;
}

.spin-wheel-pro__hero {
  text-align: center;
  margin-bottom: 1.25rem;
}

.spin-wheel-pro__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 0.75rem;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgb(var(--sw-hero));
  background: linear-gradient(145deg, rgba(var(--sw-hero), 0.22), rgba(var(--sw-brand), 0.1));
  border: 1px solid rgba(var(--sw-hero), 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.spin-wheel-pro__icon svg {
  width: 32px;
  height: 32px;
}

.spin-wheel-pro__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(var(--sw-hero), 1);
}

.spin-wheel-pro__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 4vw, 1.65rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.spin-wheel-pro__lead {
  margin: 0;
  font-size: clamp(13px, 2.8vw, 14px);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

.spin-wheel-pro__meta {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.spin-wheel-pro__meta-item {
  flex: 1 1 120px;
  max-width: 160px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(3, 26, 59, 0.65);
  border: 1px solid rgba(var(--sw-hero), 0.28);
  text-align: center;
}

.spin-wheel-pro__meta-label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 4px;
}

.spin-wheel-pro__meta-value {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  color: rgb(var(--sw-hero));
}

.spin-wheel-pro__gate {
  text-align: center;
  padding: clamp(1.25rem, 4vw, 2rem);
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(3, 26, 59, 0.92) 0%, rgba(0, 12, 36, 0.96) 100%);
  border: 1px solid rgba(var(--sw-hero), 0.32);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.spin-wheel-pro__gate--disabled {
  opacity: 0.92;
}

.spin-wheel-pro__gate-visual {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto 1.25rem;
}

.spin-wheel-pro__gate-wheel {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    #04193b 0deg 45deg,
    #031a3b 45deg 90deg,
    #04193b 90deg 135deg,
    #031a3b 135deg 180deg,
    #04193b 180deg 225deg,
    #031a3b 225deg 270deg,
    #04193b 270deg 315deg,
    #031a3b 315deg 360deg
  );
  border: 3px solid rgba(var(--sw-hero), 0.45);
  box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.4);
  animation: spin-wheel-gate-idle 12s linear infinite;
  filter: blur(1px) brightness(0.75);
}

.spin-wheel-pro__gate-lock {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spin-wheel-pro__gate-lock svg {
  width: 44px;
  height: 44px;
  color: rgb(var(--sw-hero));
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
}

@keyframes spin-wheel-gate-idle {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.spin-wheel-pro__gate-title {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 800;
}

.spin-wheel-pro__gate-text {
  margin: 0 0 1rem;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
  max-width: 22rem;
  margin-left: auto;
  margin-right: auto;
}

.spin-wheel-pro__gate-features {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 16rem;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.spin-wheel-pro__gate-features li {
  position: relative;
  padding-left: 1.35rem;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
}

.spin-wheel-pro__gate-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: rgb(var(--sw-hero));
  font-weight: 700;
}

.spin-wheel-pro__gate-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.spin-wheel-pro__gate-btn {
  min-width: 200px;
}

.spin-wheel-pro__gate-btn-secondary {
  min-width: 200px;
}

.spin-wheel-pro__alert {
  margin-top: 0.75rem;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
}

.spin-wheel-pro__alert.is-visible.is-error {
  background: rgba(255, 52, 73, 0.12);
  border: 1px solid rgba(255, 52, 73, 0.35);
  color: #ffb4bc;
}

.spin-wheel-pro__alert.is-visible.is-info {
  background: rgba(var(--sw-hero), 0.12);
  border: 1px solid rgba(var(--sw-hero), 0.35);
  color: rgba(255, 255, 255, 0.88);
}

.spin-wheel-page .interaction-hub.is-disabled {
  cursor: not-allowed;
}

.spin-wheel-page .interaction-hub.is-disabled .hub-core {
  filter: grayscale(0.35);
}

.spin-wheel-page {
  --sw-gold: #d8a950;
  --sw-gold-light: #e8c678;
  --sw-gold-dark: #ba8e47;
  --sw-gold-rgb: 188, 149, 86;
  --sw-bg: 3, 26, 59;
  --sw-bg-deep: 0, 12, 36;
  --sw-slice-a: #04193b;
  --sw-slice-b: #031a3b;
  --sw-btn-grad: linear-gradient(
    180deg,
    rgba(255, 210, 90, 0.98) 0%,
    rgba(232, 198, 120, 1) 45%,
    rgba(186, 142, 71, 1) 100%
  );
  box-sizing: border-box;
}

.spin-wheel-page *,
.spin-wheel-page *::before,
.spin-wheel-page *::after {
  box-sizing: border-box;
}

.spin-wheel-page.luxury-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-height: auto;
  margin: 0 auto;
  padding: 20px 16px 12px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  background: transparent;
  overflow: hidden;
}

.spin-wheel-page.luxury-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 90% 70% at 50% 35%,
    rgba(var(--sw-bg), 0.72) 0%,
    rgba(var(--sw-bg-deep), 0.92) 100%
  );
  pointer-events: none;
  z-index: 0;
}

.spin-wheel-page .ambient-background {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.spin-wheel-page .glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.22;
}

.spin-wheel-page .orb-1 {
  width: min(520px, 90vw);
  height: min(520px, 90vw);
  background: rgba(var(--sw-gold-rgb), 0.45);
  top: -12%;
  left: -8%;
}

.spin-wheel-page .orb-2 {
  width: min(420px, 75vw);
  height: min(420px, 75vw);
  background: rgba(var(--sw-bg-deep), 0.9);
  bottom: -15%;
  right: -10%;
}

.spin-wheel-page .main-stage {
  position: relative;
  width: 100%;
  max-width: 500px;
  height: auto;
  aspect-ratio: 1;
  max-height: min(500px, 78vw);
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 32px;
}

.spin-wheel-page .outer-rim {
  position: absolute;
  width: 108%;
  height: 108%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 2px solid rgba(var(--sw-gold-rgb), 0.35);
  box-shadow: 0 0 40px rgba(var(--sw-bg-deep), 0.6);
  box-sizing: border-box;
}

.spin-wheel-page .led-lights {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.spin-wheel-page .led-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  margin: -3.5px 0 0 -3.5px;
  background: var(--sw-gold);
  border-radius: 50%;
  transform-origin: center center;
  opacity: 0.55;
  box-shadow: 0 0 8px rgba(var(--sw-gold-rgb), 0.8);
  will-change: transform, opacity;
}

.spin-wheel-page .led-dot.is-on {
  opacity: 1;
  box-shadow: 0 0 12px rgba(var(--sw-gold-rgb), 1);
}

.spin-wheel-page .wheel-chassis {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  padding: 14px;
  background: linear-gradient(145deg, rgb(4, 25, 59) 0%, rgb(var(--sw-bg-deep)) 100%);
  border: 1px solid rgba(var(--sw-gold-rgb), 0.4);
  box-shadow:
    0 0 0 6px rgba(var(--sw-bg), 0.9),
    0 20px 50px rgba(0, 0, 0, 0.45),
    inset 0 0 32px rgba(var(--sw-gold-rgb), 0.12);
}

.spin-wheel-page #wheelCanvas {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.35));
  display: block;
}

.spin-wheel-page .glass-overlay {
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 28% 22%,
    rgba(255, 255, 255, 0.08) 0%,
    transparent 55%
  );
  pointer-events: none;
}

.spin-wheel-page .indicator-system {
  position: absolute;
  top: -32px;
  z-index: 100;
  width: 40px;
  height: 56px;
}

.spin-wheel-page .indicator-needle {
  width: 100%;
  height: 100%;
  transform-origin: 50% 12%;
  transition: transform 0.1s cubic-bezier(0.17, 0.67, 0.83, 0.67);
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}

.spin-wheel-page .interaction-hub {
  position: absolute;
  width: 112px;
  height: 112px;
  z-index: 200;
  cursor: pointer;
}

.spin-wheel-page .hub-inner {
  width: 100%;
  height: 100%;
  background: rgb(var(--sw-bg-deep));
  border-radius: 50%;
  padding: 7px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(var(--sw-gold-rgb), 0.45);
}

.spin-wheel-page .hub-core {
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 35% 30%, rgb(8, 40, 85) 0%, rgb(var(--sw-bg-deep)) 100%);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  border: 2px solid var(--sw-gold);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.spin-wheel-page .interaction-hub:hover .hub-core {
  box-shadow: 0 0 24px rgba(var(--sw-gold-rgb), 0.45);
  transform: scale(1.04);
}

.spin-wheel-page .interaction-hub:active .hub-core {
  transform: scale(0.96);
}

.spin-wheel-page .spin-text {
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.12em;
  color: var(--sw-gold-light);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  z-index: 2;
}

.spin-wheel-page .energy-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 2px solid rgba(var(--sw-gold-rgb), 0.55);
  border-radius: 50%;
  opacity: 0.35;
  animation: spin-wheel-pulse 2s infinite;
}

@keyframes spin-wheel-pulse {
  0% {
    transform: scale(0.82);
    opacity: 0.75;
  }
  100% {
    transform: scale(1.45);
    opacity: 0;
  }
}

.spin-wheel-page .result-container {
  margin-top: 8px;
  text-align: center;
  z-index: 10;
  position: relative;
  padding: 16px 20px 8px;
  border-radius: 12px;
  background: rgba(var(--sw-bg), 0.55);
  border: 1px solid rgba(var(--sw-gold-rgb), 0.28);
  max-width: 100%;
  width: min(420px, 100%);
}

.spin-wheel-page .status-label {
  font-family: "Outfit", sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 8px;
}

.spin-wheel-page .prize-value {
  font-family: "Outfit", sans-serif;
  font-size: clamp(2rem, 8vw, 3.5rem);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.1;
  background: linear-gradient(
    180deg,
    #fff 15%,
    var(--sw-gold-light) 45%,
    var(--sw-gold-dark) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
  letter-spacing: -0.02em;
  transition: transform 0.35s ease, filter 0.35s ease;
  word-break: break-word;
}

.spin-wheel-page .prize-value.winning-anim {
  animation: spin-wheel-win 0.5s ease infinite alternate;
}

@keyframes spin-wheel-win {
  from {
    transform: scale(1);
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
  }
  to {
    transform: scale(1.04);
    filter: drop-shadow(0 0 18px rgba(var(--sw-gold-rgb), 0.65));
  }
}

/* Canvas is a sibling of .spin-wheel-page — scope to .spin-wheel-pro */
.spin-wheel-pro #particleCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  z-index: 9999;
}

/* SweetAlert — site popup stili */
.swal2-popup-luxury-enhanced {
  background: rgb(var(--sw-bg, 3, 26, 59)) !important;
  border: 1px solid rgba(var(--sw-gold-rgb, 188, 149, 86), 0.45) !important;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45) !important;
  border-radius: 12px !important;
  padding: 24px !important;
  color: #fff !important;
}

.swal2-title-luxury {
  font-family: "Outfit", sans-serif !important;
  color: var(--sw-gold-light, #e8c678) !important;
  font-size: 1.5rem !important;
  font-weight: 800 !important;
}

.swal2-content-luxury {
  font-family: "Outfit", sans-serif !important;
  color: rgba(255, 255, 255, 0.9) !important;
}

.swal2-confirm-luxury {
  background: linear-gradient(
    180deg,
    rgba(255, 210, 90, 0.98) 0%,
    rgba(232, 198, 120, 1) 45%,
    rgba(186, 142, 71, 1) 100%
  ) !important;
  border: none !important;
  color: #031a3b !important;
  font-family: "Outfit", sans-serif !important;
  font-weight: 700 !important;
  padding: 12px 32px !important;
  border-radius: 8px !important;
}

.swal2-icon.swal2-success {
  border-color: var(--sw-gold, #d8a950) !important;
  color: var(--sw-gold, #d8a950) !important;
}

.swal2-icon.swal2-success [class^="swal2-success-line"] {
  background-color: var(--sw-gold, #d8a950) !important;
}

/* Mobil */
html[class*="is-mobile"] .spin-wheel-page.luxury-wrapper {
  min-height: auto;
  padding: 12px 12px 8px;
}

html[class*="is-mobile"] .spin-wheel-pro__alert {
  margin-top: 0.65rem;
}

html[class*="is-mobile"] .spin-wheel-page .main-stage {
  max-width: min(420px, 92vw);
  max-height: min(420px, 92vw);
  margin-bottom: 24px;
}

html[class*="is-mobile"] .spin-wheel-page .interaction-hub {
  width: 88px;
  height: 88px;
}

html[class*="is-mobile"] .spin-wheel-page .spin-text {
  font-size: 0.85rem;
}

html[class*="is-mobile"] .spin-wheel-page .indicator-system {
  top: -24px;
  width: 34px;
  height: 48px;
}

html[class*="is-mobile"] .spin-wheel-page .led-dot {
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
}

/* Layout içinde taşmayı önle */
.layout-content-holder-bc .spin-wheel-page.luxury-wrapper {
  width: 100%;
  max-width: 100%;
}
