/* Tema Değişkenleri */
[data-theme="classic"] {
  --primary-rgb: 96, 165, 250;
  --primary-color: rgb(var(--primary-rgb));
  --text-color: #2d3748;
  --text-light: #718096;
  --bg-color: #ffffff;
  --modal-bg: #ffffff;
  --border-color: #e2e8f0;
}

[data-theme="dark"] {
  --primary-rgb: 96, 165, 250;
  --primary-color: rgb(var(--primary-rgb));
  --text-color: #f7fafc;
  --text-light: #cbd5e0;
  --bg-color: #1a202c;
  --modal-bg: #2d3748;
  --border-color: #4a5568;
}

[data-theme="modern"] {
  --primary-rgb: 236, 72, 153;
  --primary-color: rgb(var(--primary-rgb));
  --text-color: #1a202c;
  --text-light: #4a5568;
  --bg-color: #f7fafc;
  --modal-bg: #ffffff;
  --border-color: #e2e8f0;
}



.spin-trigger-button.right {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.spin-trigger-button.left {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

/* Modal */
.spin-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.spin-modal.show {
  opacity: 1;
}

.spin-modal-content {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--bg-color);
  padding: 40px;
  border-radius: 20px;
  text-align: center;
}


/* Çark Şekilleri */
.wheel[data-shape="classic"] {
  clip-path: circle(50% at 50% 50%);
}

.wheel[data-shape="hexagon"] {
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.wheel[data-shape="square"] {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.wheel {
  width: 100%;
  height: 100%;
  position: relative;
  transform-origin: center center;
  will-change: transform;
}
/* Pointer Styles */
.pointer {
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  transform-origin: 50% 35%;
  z-index: 4;
}

/* Pointer Swing Animation */
@keyframes pointer-swing {
  0% {
      transform: translateX(-50%) rotate(0deg);
  }

  10% {
      transform: translateX(-50%) rotate(8deg);
  }

  20% {
      transform: translateX(-50%) rotate(-8deg);
  }

  30% {
      transform: translateX(-50%) rotate(12deg);
  }

  40% {
      transform: translateX(-50%) rotate(-6deg);
  }

  50% {
      transform: translateX(-50%) rotate(4deg);
  }

  60% {
      transform: translateX(-50%) rotate(0deg);
  }
}

.pointer-swing {
  animation: pointer-swing 3s 0.8s infinite forwards;
}

/* Wheel Container düzenlemesi */
.wheel-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  position: relative;
}
.wheel-pointer {
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%) rotate(180deg); /* Aşağı bakar şekilde */
  width: 40px;
  height: 40px;
  background: #4f46e5;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  z-index: 4; /* Z-index arttırıldı */
}

/* Pointer için gölge efekti */
.wheel-pointer::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: inherit;
  clip-path: inherit;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}


/* Merkez Buton */
.wheel-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}
/* Başlık Stili */
.wheel-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 20px;
  text-align: center;
  position: relative;
  padding-bottom: 15px;
}

.wheel-title:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--primary-color);
  border-radius: 2px;
}

/* İpucu Stili */
.tip-container {
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1) 0%, rgba(var(--primary-rgb), 0.2) 100%);
  border-left: 4px solid var(--primary-color);
  padding: 15px 20px;
  border-radius: 8px;
  margin: 20px 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-color);
  position: relative;
  overflow: hidden;
}

.tip-container:before {
  content: '💡';
  font-size: 20px;
  margin-right: 10px;
  vertical-align: middle;
}
.spin-button {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: none;
  background: var(--primary-color);
  color: white;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.spin-button:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.spin-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: scale(1);
}

/* İpucu Kutusu */
.tip-container {
  margin-bottom: 20px;
  padding: 5px;

  border-radius: 10px;
  font-size: 14px;
  color: var(--text-color);
}

/* Geçmiş Butonu */
.history-btn {
  margin-top: 20px;
  padding: 10px 20px;
  border: none;
  border-radius: 20px;
  background: var(--primary-color);
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
}

.history-btn:hover {
  transform: translateY(-2px);
}

/* Kupon Modal */
.coupon-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  z-index: 10001;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.coupon-modal.show {
  opacity: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.coupon-modal-content {
  background: white;
  width: 400px;
  padding: 30px;
  border-radius: 20px;
  text-align: center;
  transform: scale(0.9);
  opacity: 0;
  transition: all 0.3s ease;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.coupon-modal.show .coupon-modal-content {
  transform: scale(1);
  opacity: 1;
}

.coupon-header {
  margin-bottom: 25px;
}

.coupon-header h2 {
  font-size: 28px;
  color: #333;
  margin-bottom: 10px;
}

.coupon-box {
  background: linear-gradient(135deg, #f6f7f9 0%, #ffffff 100%);
  padding: 25px;
  border-radius: 15px;
  border: 2px dashed var(--primary-color);
  margin: 20px 0;
  position: relative;
}

.coupon-code {
  font-size: 32px;
  font-weight: bold;
  color: var(--primary-color);
  letter-spacing: 2px;
  margin: 10px 0;
  font-family: monospace;
}
.copy-btn {
  background: #4f46e5;
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 15px;
}

.copy-btn:hover {
  background: #4338ca;
  transform: translateY(-2px);
}

.copy-btn i {
  font-size: 18px;
}
/* Paylaşım Butonları */
/* Paylaşım Butonları */
.share-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 20px 0;
}

.share-btn {
  padding: 12px 20px;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  color: white;
}

.share-btn:hover {
  transform: translateY(-2px);
}

.share-btn.twitter {
  background: #1DA1F2;
}

.share-btn.twitter:hover {
  background: #0c85d0;
}

.share-btn.facebook {
  background: #4267B2;
}

.share-btn.facebook:hover {
  background: #34518d;
}

.share-btn i {
  font-size: 16px;
}
/* Geçmiş Modal Stilleri */
.history-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  z-index: 10001;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.history-modal.show {
  opacity: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.history-modal-content {
  background: var(--modal-bg, #ffffff);
  width: 480px;
  max-width: 90%;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  max-height: 80vh;
  overflow-y: auto;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.history-modal.show .history-modal-content {
  transform: scale(1);
}

.history-header {
  text-align: center;
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color, #edf2f7);
}

.history-header h2 {
  font-size: 24px;
  color: var(--text-color, #2d3748);
  margin: 0 0 8px 0;
}

.history-header p {
  color: var(--text-light, #718096);
  font-size: 14px;
  margin: 0;
}

.history-list {
  margin: 20px 0;
}

.history-item {
  display: flex;
  align-items: center;
  padding: 15px;
  margin: 10px 0;
  background: var(--bg-color, #f7fafc);
  border-radius: 12px;
  transition: transform 0.2s ease;
}

.history-item:hover {
  transform: translateX(5px);
}

.history-item-left {
  margin-right: 15px;
}

.prize-icon {
  font-size: 24px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-color, #4f46e5);
  border-radius: 10px;
  color: white;
}

.history-item-middle {
  flex: 1;
}

.prize-name {
  font-weight: 600;
  color: var(--text-color, #2d3748);
  margin-bottom: 4px;
}

.prize-code {
  font-family: monospace;
  color: var(--primary-color, #4f46e5);
  font-size: 14px;
  padding: 2px 8px;
  background: rgba(var(--primary-rgb, 79, 70, 229), 0.1);
  border-radius: 4px;
  display: inline-block;
}

.history-item-right {
  text-align: right;
}

.prize-date {
  font-size: 12px;
  color: var(--text-light, #718096);
  white-space: nowrap;
}

.no-history {
  text-align: center;
  padding: 30px;
  color: var(--text-light, #718096);
  font-size: 14px;
  background: var(--bg-color, #f7fafc);
  border-radius: 12px;
}

.close-history-btn {
  width: 100%;
  padding: 12px;
  border: none;
  background: var(--bg-color, #f7fafc);
  color: var(--text-color, #2d3748);
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.close-history-btn:hover {
  background: var(--border-color, #edf2f7);
}

/* Responsive Tasarım */
@media screen and (max-width: 480px) {
  .history-modal-content {
      padding: 20px;
  }

  .history-item {
      padding: 12px;
  }

  .prize-icon {
      width: 35px;
      height: 35px;
      font-size: 20px;
  }

  .prize-name {
      font-size: 14px;
  }

  .prize-code {
      font-size: 12px;
  }
}
/* Responsive tasarım için */
@media (max-width: 480px) {
  .share-buttons {
      flex-direction: column;
  }
  
  .share-btn {
      width: 100%;
      justify-content: center;
  }
}

/* Animasyonlar */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {transform: translateY(-50%);}
  40% {transform: translateY(-60%);}
  60% {transform: translateY(-40%);}
}

@keyframes shine {
  from {transform: translateX(-100%) rotate(30deg);}
  to {transform: translateX(100%) rotate(30deg);}
}

/* Parıltı Efekti */
.shine-effect {
  position: relative;
  overflow: hidden;
}

.shine-effect::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
      to right,
      rgba(255,255,255,0) 0%,
      rgba(255,255,255,.3) 50%,
      rgba(255,255,255,0) 100%
  );
  transform: rotate(30deg);
  animation: shine 3s infinite;
}

/* Responsive Tasarım */
@media screen and (max-width: 768px) {
  .spin-modal-content {
      padding: 20px;
  }

  .wheel-container {
      transform: scale(0.8);
      margin: -40px auto;
  }

  .coupon-modal-content {
      width: 90%;
      max-width: 360px;
      padding: 20px;
  }

  .coupon-code {
      font-size: 24px;
  }

  .share-buttons {
      flex-direction: column;
  }
  .copy-btn {
      padding: 10px 25px;
      font-size: 14px;
  }

  
}

@media screen and (max-width: 480px) {
  .spin-trigger-button {

      font-size: 14px;
  }

  .wheel-container {
      transform: scale(0.9);
      margin: -20px auto;
  }

  .coupon-modal-content {
      padding: 15px;
  }

  .coupon-code {
      font-size: 20px;
  }
}