/**
 * Frontend styles for The Wheel plugin
 */

/* Container styles */
.the-wheel-container {
  margin: 20px 0;
  text-align: center;
  max-width: 100%;
}

/* Wheel wrapper styles */
.the-wheel-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 20px;
}

/* Canvas styles */
.the-wheel-canvas {
  display: block;
  max-width: 100%;
  height: auto;
  cursor: pointer; /* Indicate that the canvas is clickable */
}

/* Pointer styles */
.the-wheel-pointer {
  position: absolute;
  top: 48%;
  right: 0;
  width: 40px;
  height: auto;
  z-index: 2;
  transform: rotate(90deg);
}

/* Center arrow styles */
.the-wheel-center {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60px;
  height: auto;
  transform: translate(-50%, -50%);
  z-index: 3;
  cursor: pointer;
  pointer-events: auto;
}

/* Controls styles */
.the-wheel-controls {
  margin-bottom: 20px;
}

/* Hint message styles */
.the-wheel-hint {
  font-size: 14px;
  color: #666;
  margin: 10px 0;
  padding: 8px 12px;
  background-color: #f5f5f5;
  border-radius: 4px;
  border-left: 3px solid #066fac;
  display: inline-block;
}

/* Spin button styles */
.the-wheel-spin-button {
  background-color: #066fac !important;
  color: #fff;
  border: none;
  padding: 10px 20px;
  margin-bottom: 20px;
  font-size: 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.the-wheel-spin-button:hover {
  background-color: #005a87;
}

.the-wheel-spin-button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

/* Result styles */
.the-wheel-result {
  margin-top: 20px;
  display: none;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 8px;
  overflow: visible;
  font-family: Arial, sans-serif;
  position: relative;
}

.the-wheel-result-title {
  margin: 0;
  padding: 20px 25px;
  font-size: 24px;
  font-weight: bold;
  background-color: #1a4470;
  color: white !important;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  text-align: center;
}

.the-wheel-nav-btn {
  background: white !important;
  cursor: pointer;
  padding: 0;
  border-radius: 50%;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  z-index: 10;
  border: none !important;
}

.the-wheel-nav-btn:hover {
  transform: scale(1.1);
}

.the-wheel-prev-btn:hover {
  transform: scale(1.1);
}

.the-wheel-next-btn:hover {
  transform: scale(1.1);
}

.the-wheel-nav-btn:active {
  transform: scale(0.95);
}

.the-wheel-nav-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background-color: #f5f5f5;
}

.the-wheel-nav-btn:disabled:hover {
  transform: translateY(-50%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.the-wheel-nav-btn svg {
  transition: all 0.3s ease;
}

.the-wheel-nav-btn:hover svg {
  filter: brightness(1.1);
}

.the-wheel-result-text {
  font-size: 16px;
  line-height: 1.6;
  padding: 25px;
  background-color: white;
  color: #555;
  border: 1px solid #e0e0e0;
  border-top: none;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  min-height: 100px;
  text-align: left;
}

/* Responsive styles */
/* Desktop styles - default */
.the-wheel-canvas {
  width: 550px;
  height: 550px;
}

/* Mobile styles */
@media (max-width: 768px) {
  .the-wheel-canvas {
    width: 400px;
    height: 400px;
  }

  .the-wheel-hint {
    font-size: 12px;
    padding: 6px 10px;
  }

  .the-wheel-pointer {
    width: 30px;
  }

  .the-wheel-center {
    width: 45px;
  }
}
