/* Discount Wheel Modal Styles */

.wheel-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.wheel-modal.active {
  display: flex;
  opacity: 1;
}

.wheel-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
}

.wheel-modal-content {
  position: relative;
  background: white;
  border-radius: 24px;
  padding: 40px;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  z-index: 1;
  animation: modalSlideIn 0.4s ease;
}

@keyframes modalSlideIn {
  from {
    transform: translateY(-50px) scale(0.9);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.wheel-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: none;
  background: #f3f4f6;
  color: #1f2937;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.3s ease;
  z-index: 2;
}

.wheel-modal-close:hover {
  background: #e91e63;
  color: white;
  transform: rotate(90deg);
}

/* Wheel Header */
.wheel-header {
  text-align: center;
  margin-bottom: 30px;
}

.wheel-header-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, #e91e63, #c2185b);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(233, 30, 99, 0.3);
}

.wheel-header-icon i {
  font-size: 28px;
  color: white;
}

.wheel-header h2 {
  font-size: 28px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #e91e63, #c2185b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.wheel-header p {
  font-size: 14px;
  color: #6b7280;
  margin: 0;
}

/* Wheel Container */
.wheel-container {
  position: relative;
  width: 100%;
  max-width: 350px;
  margin: 0 auto;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wheel-pointer {
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  font-size: 50px;
  color: white;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

/* Wheel */
.wheel {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  transition: transform 4s cubic-bezier(0.17, 0.67, 0.12, 0.99);
  border: 8px solid #e91e63;
}

.wheel.spinning {
  transition: transform 4s cubic-bezier(0.17, 0.67, 0.12, 0.99);
}

/* Wheel Sections */
.wheel-section {
  position: absolute;
  width: 100%;
  height: 100%;
  clip-path: polygon(50% 50%, 100% 50%, 100% 0, 50% 0);
}

/* Section 1 - Top Right (0-90°) */
.wheel-section.section-1 {
  transform: rotate(0deg);
}

/* Section 2 - Bottom Right (90-180°) */
.wheel-section.section-2 {
  transform: rotate(90deg);
}

/* Section 3 - Bottom Left (180-270°) */
.wheel-section.section-3 {
  transform: rotate(180deg);
}

/* Section 4 - Top Left (270-360°) */
.wheel-section.section-4 {
  transform: rotate(270deg);
}

/* Wheel Text */
.wheel-text {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  pointer-events: none;
}

/* Section 1 - Sağ Üst (Mavi - %10 İndirim) - Parent 0° */
.section-1 .wheel-text {
  top: 22%;
  right: 15%;
  transform: rotate(45deg);
}

/* Section 2 - Sağ Alt (Mor - Tekrar Deneyiniz) - Parent 90° */
.section-2 .wheel-text {
  top: 22%;
  right: 15%;
  transform: rotate(-45deg);
}

/* Section 3 - Sol Alt (Yeşil - %20 İndirim) - Parent 180° */
.section-3 .wheel-text {
  top: 22%;
  right: 15%;
  transform: rotate(-135deg);
}

/* Section 4 - Sol Üst (Pembe - Tekrar Deneyiniz) - Parent 270° */
.section-4 .wheel-text {
  top: 22%;
  right: 15%;
  transform: rotate(-225deg);
}

.discount-text {
  font-size: 36px;
  line-height: 1;
  margin-bottom: 2px;
}

.discount-label {
  font-size: 14px;
  font-weight: 600;
  opacity: 0.9;
}

.try-again-text {
  font-size: 18px;
  line-height: 1.2;
  margin-bottom: 2px;
}

.try-again-label {
  font-size: 13px;
  font-weight: 600;
  opacity: 0.9;
}

/* Spin Button */
.spin-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #e91e63, #c2185b);
  color: white;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  box-shadow: 0 8px 24px rgba(233, 30, 99, 0.4);
  transition: all 0.3s ease;
  z-index: 11;
}

.spin-button i {
  font-size: 20px;
}

.spin-button:hover:not(:disabled) {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 12px 32px rgba(233, 30, 99, 0.6);
}

.spin-button:active:not(:disabled) {
  transform: translate(-50%, -50%) scale(0.95);
}

.spin-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Wheel Result */
.wheel-result {
  text-align: center;
  animation: resultFadeIn 0.5s ease;
}

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

.result-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
}

.result-icon.success {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
}

.result-icon.try-again {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
}

.result-icon::after {
  content: '🎉';
}

.result-icon.try-again::after {
  content: '🔄';
}

.wheel-result h3 {
  font-size: 24px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 12px;
}

.wheel-result p {
  font-size: 16px;
  color: #6b7280;
  margin-bottom: 24px;
}

.result-button {
  width: 100%;
  padding: 14px 32px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #e91e63, #c2185b);
  color: white;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.result-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(233, 30, 99, 0.4);
}

.result-button:active {
  transform: translateY(0);
}

/* Coupon Code Styles */
.coupon-code-container {
  margin: 20px 0;
  animation: couponFadeIn 0.5s ease;
}

@keyframes couponFadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.coupon-code-box {
  background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
  border: 2px dashed #e91e63;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}

.coupon-code-label {
  display: block;
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 8px;
  font-weight: 600;
}

.coupon-code-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: white;
  border-radius: 8px;
  padding: 12px 16px;
  border: 1px solid #e5e7eb;
}

.coupon-code-text {
  font-size: 20px;
  font-weight: 700;
  color: #e91e63;
  letter-spacing: 2px;
  font-family: 'Courier New', monospace;
}

.copy-code-btn {
  background: linear-gradient(135deg, #e91e63, #c2185b);
  border: none;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-size: 16px;
}

.copy-code-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(233, 30, 99, 0.4);
}

.copy-code-btn:active {
  transform: scale(0.95);
}

.copy-success-message {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  padding: 8px 16px;
  background: #10b981;
  color: white;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  animation: successPop 0.3s ease;
}

@keyframes successPop {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.copy-success-message i {
  font-size: 16px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .wheel-modal-content {
    padding: 30px 20px;
    max-width: 95%;
    border-radius: 20px;
  }

  .wheel-header h2 {
    font-size: 24px;
  }

  .wheel-header p {
    font-size: 13px;
  }

  .wheel-container {
    max-width: 300px;
  }

  .wheel {
    border: 6px solid #e91e63;
  }

  .wheel-pointer {
    font-size: 40px;
  }

  .discount-text {
    font-size: 28px;
  }

  .discount-label {
    font-size: 12px;
  }

  .try-again-text {
    font-size: 16px;
  }

  .try-again-label {
    font-size: 11px;
  }

  .spin-button {
    width: 70px;
    height: 70px;
    font-size: 12px;
  }

  .spin-button i {
    font-size: 18px;
  }

  .result-icon {
    width: 70px;
    height: 70px;
    font-size: 35px;
  }

  .wheel-result h3 {
    font-size: 20px;
  }

  .wheel-result p {
    font-size: 14px;
  }

  .coupon-code-text {
    font-size: 18px;
  }

  .copy-code-btn {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .wheel-modal-content {
    padding: 24px 16px;
  }

  .wheel-header h2 {
    font-size: 20px;
  }

  .wheel-container {
    max-width: 260px;
  }

  .wheel {
    border: 5px solid #e91e63;
  }

  .wheel-pointer {
    font-size: 35px;
    top: -2px;
  }

  .discount-text {
    font-size: 24px;
  }

  .discount-label {
    font-size: 11px;
  }

  .try-again-text {
    font-size: 14px;
  }

  .try-again-label {
    font-size: 10px;
  }

  .spin-button {
    width: 60px;
    height: 60px;
    font-size: 11px;
    gap: 2px;
  }

  .spin-button i {
    font-size: 16px;
  }

  .coupon-code-text {
    font-size: 16px;
    letter-spacing: 1px;
  }

  .coupon-code-box {
    padding: 12px;
  }

  .copy-code-btn {
    width: 30px;
    height: 30px;
    font-size: 13px;
  }

  .copy-success-message {
    font-size: 12px;
    padding: 6px 12px;
  }
}

/* Dark Mode Adjustments for Wheel */
body.dark-mode .wheel-modal-content {
  background: #1e293b;
  border: 1px solid #334155;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

body.dark-mode .wheel-modal-overlay {
  background: rgba(0, 0, 0, 0.9);
}

body.dark-mode .wheel-modal-close {
  background: #334155;
  color: #cbd5e1;
}

body.dark-mode .wheel-modal-close:hover {
  background: #e91e63;
  color: white;
}

body.dark-mode .wheel-header h2 {
  color: #f1f5f9;
}

body.dark-mode .wheel-header p {
  color: #94a3b8;
}

body.dark-mode .wheel-result h3 {
  color: #f1f5f9;
}

body.dark-mode .wheel-result p {
  color: #cbd5e1;
}

body.dark-mode .coupon-code-box {
  background: linear-gradient(135deg, #334155, #475569);
  border-color: #e91e63;
}

body.dark-mode .coupon-code-label {
  color: #cbd5e1;
}

body.dark-mode .coupon-code-display {
  background: #1e293b;
  border-color: #334155;
}

/* Members Only Modal */
.wheel-members-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.wheel-members-modal .wheel-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
}

.wheel-members-modal .wheel-modal-content {
  position: relative;
  background: white;
  border-radius: 24px;
  padding: 40px;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  z-index: 1;
  animation: modalSlideIn 0.4s ease;
  text-align: center;
}

.wheel-members-modal .wheel-header-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.wheel-members-modal .wheel-header-icon i {
  font-size: 36px;
  color: white;
}

body.dark-mode .wheel-members-modal .wheel-modal-content {
  background: #1e293b;
}

body.dark-mode .wheel-members-modal h2 {
  color: #f1f5f9;
}

body.dark-mode .wheel-members-modal p {
  color: #94a3b8;
}

/* Spin Limit Modal */
.wheel-limit-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10001;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.wheel-limit-modal[style*="flex"] {
  display: flex !important;
}

.wheel-limit-modal .wheel-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
}

.wheel-limit-modal .wheel-modal-content {
  position: relative;
  background: linear-gradient(145deg, #ffffff, #f8fafc);
  border-radius: 28px;
  padding: 40px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
  z-index: 1;
  animation: limitModalIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes limitModalIn {
  0% {
    transform: scale(0.5) translateY(100px);
    opacity: 0;
  }
  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

/* Limit Icon */
.limit-icon-wrapper {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto 24px;
}

.limit-icon-bg {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(245, 158, 11, 0.4);
  position: relative;
  z-index: 2;
}

.limit-icon-bg i {
  font-size: 44px;
  color: white;
}

.limit-icon-pulse {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  animation: limitPulse 2s ease-in-out infinite;
  z-index: 1;
}

@keyframes limitPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.3);
    opacity: 0;
  }
}

/* Limit Title */
.limit-title {
  font-size: 26px;
  font-weight: 800;
  color: #1f2937;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Limit Message */
.limit-message {
  font-size: 15px;
  color: #6b7280;
  margin-bottom: 28px;
  line-height: 1.6;
}

/* Countdown Timer */
.limit-countdown {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  padding: 20px;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border-radius: 16px;
  border: 2px solid #f59e0b;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 60px;
}

.countdown-value {
  font-size: 32px;
  font-weight: 800;
  color: #d97706;
  line-height: 1;
  font-family: 'Courier New', monospace;
}

.countdown-label {
  font-size: 11px;
  font-weight: 600;
  color: #92400e;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

.countdown-separator {
  font-size: 28px;
  font-weight: 800;
  color: #d97706;
  margin-bottom: 15px;
}

/* Limit Subtext */
.limit-subtext {
  font-size: 13px;
  color: #9ca3af;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.limit-subtext i {
  color: #f59e0b;
  animation: bellRing 1s ease-in-out infinite;
}

@keyframes bellRing {
  0%, 100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(15deg);
  }
  75% {
    transform: rotate(-15deg);
  }
}

/* Limit Close Button */
.limit-close-btn {
  width: 100%;
  padding: 16px 32px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4);
}

.limit-close-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(245, 158, 11, 0.5);
}

.limit-close-btn:active {
  transform: translateY(0);
}

/* Dark Mode for Limit Modal */
body.dark-mode .wheel-limit-modal .wheel-modal-content {
  background: linear-gradient(145deg, #1e293b, #0f172a);
  border: 1px solid #334155;
}

body.dark-mode .limit-title {
  color: #fbbf24;
  -webkit-text-fill-color: #fbbf24;
}

body.dark-mode .limit-message {
  color: #94a3b8;
}

body.dark-mode .limit-countdown {
  background: linear-gradient(135deg, #422006, #451a03);
  border-color: #b45309;
}

body.dark-mode .countdown-value {
  color: #fbbf24;
}

body.dark-mode .countdown-label {
  color: #fcd34d;
}

body.dark-mode .countdown-separator {
  color: #fbbf24;
}

body.dark-mode .limit-subtext {
  color: #64748b;
}

/* Responsive */
@media (max-width: 480px) {
  .wheel-limit-modal .wheel-modal-content {
    padding: 30px 20px;
  }

  .limit-icon-wrapper {
    width: 80px;
    height: 80px;
  }

  .limit-icon-bg i {
    font-size: 36px;
  }

  .limit-title {
    font-size: 22px;
  }

  .limit-message {
    font-size: 14px;
  }

  .countdown-value {
    font-size: 26px;
  }

  .countdown-item {
    min-width: 50px;
  }

  .limit-countdown {
    padding: 16px;
    gap: 4px;
  }
}

