/**
 * HR-ON Wheel CSS Styles
 *
 * @package HR-ON Wheel
 */

.wheel-app {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body:has(.wheel-app) {
  margin: 0;
  padding: 0;
  overflow: hidden;
}


.wheel-app .wheel-svg path {
  transition: filter 0.5s ease;
}

.wheel-app {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: visible;
}

.wheel-app * {
  box-sizing: border-box;
}

.wheel-app .wheel-container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px;
  overflow: visible;
}

.wheel-app .wheel-wrapper {
  width: 100%;
  position: relative;
  transition: transform 0.5s ease;
  overflow: visible;
  /*padding: 20px; */
  padding: 0;
}

.wheel-app .wheel-svg {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,.35));
  /*transition: transform 0.8s cubic-bezier(.2,.8,.2,1); */
  /*transform-origin: center center;*/
  will-change: transform;
  transition: transform 0.8s cubic-bezier(.2,.8,.2,1);
  transform-box: fill-box;
  transform-origin: 50% 50%;
}

.wheel-app .wheel-svg .seg path {
  transition: transform 0.3s ease, filter 0.3s ease, opacity 0.3s ease;
}

.wheel-app .wheel-svg .seg.active path {
  transform: translateY(-25px);
  filter: brightness(1.1);
  z-index: 10;
}

.wheel-app .wheel-svg path {
  transition: filter 0.3s ease, opacity 0.3s ease;
  cursor: pointer;
}

.wheel-app .wheel-svg path:hover {
  filter: brightness(1.01) saturate(1);
}

.wheel-app .wheel-svg path {
  transition: filter 0.5s ease;
}

@media (max-width: 768px) {
  .wheel-app {
    padding: 15px;
  }

  .wheel-app .wheel-container {
    max-width: 90%;
    padding: 30px;
  }

  .wheel-app .wheel-wrapper {
    padding: 15px;
  }

  .wheel-app .wheel-svg .seg.active path {
    transform: translateY(-20px);
  }
}

@media (max-width: 480px) {
  .wheel-app {
    padding: 10px;
  }

  .wheel-app .wheel-container {
    max-width: 95%;
    padding: 20px;
  }

  .wheel-app .wheel-wrapper {
    padding: 10px;
  }

  .wheel-app .wheel-svg .seg.active path {
    transform: translateY(-15px);
  }
}

/* Wheel Overlay Panel Styles */
.wheel-overlay-panel {
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.75) 0%, rgba(255, 255, 255, 0.95) 15%, #ffffff 30%);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -12px 40px rgba(255, 255, 255, 0.6), 0 -4px 16px rgba(255, 255, 255, 0.4);
  z-index: 10;
  padding: 60px 30px 30px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
}

.panel-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #2c3e50;
  margin: 0 0 15px 0;
  line-height: 1.2;
}

.panel-description {
  font-size: 1.1rem;
  color: #5a6c7d;
  margin: 0;
  line-height: 1.5;
  /*max-width: 500px;*/
}

/* Responsive Panel Styles */
@media (max-width: 768px) {
  .wheel-overlay-panel {
    bottom: 12px;
    height: 45%;
    padding: 50px 20px 25px;
    border-radius: 15px 15px 0 0;
  }

  .panel-title {
    font-size: 1.8rem;
    margin-bottom: 12px;
  }

  .panel-description {
    font-size: 1rem;
    /*max-width: 400px;*/
  }
}

@media (max-width: 480px) {
  .wheel-overlay-panel {
    bottom: 10px;
    height: 40%;
    padding: 40px 15px 20px;
    border-radius: 12px 12px 0 0;
  }

  .panel-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
  }

  .panel-description {
    font-size: 0.9rem;
    /* max-width: 300px; */
  }
}
