/* Custom Styles & Interactive Visuals */

.tab-btn.active-tab {
  background-color: #f97316;
  color: white;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35);
}

.tab-btn:not(.active-tab) {
  color: #475569;
}

.tab-btn:not(.active-tab):hover {
  background-color: #ffedd5;
  color: #c2410c;
}

/* Card Flip Animation */
.perspective-1000 {
  perspective: 1000px;
}

.flip-card-inner {
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.flip-card.flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
  backface-visibility: hidden;
}

.flip-card-back {
  transform: rotateY(180deg);
}

/* Drag & Drop Visuals */
.draggable-fruit {
  cursor: grab;
  user-select: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.draggable-fruit:active {
  cursor: grabbing;
  transform: scale(1.1);
}

.drop-target {
  transition: all 0.3s ease;
}

.drop-target.drag-over {
  border-color: #f97316;
  background-color: #ffedd5;
  transform: scale(1.03);
}

.drop-target.matched {
  border-color: #22c55e;
  background-color: #f0fdf4;
}

/* Slider Custom Styling */
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #f97316;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(249, 115, 22, 0.5);
  transition: transform 0.2s;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

@keyframes scaleUp {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-scaleUp {
  animation: scaleUp 0.3s ease-out forwards;
}
