/* Custom styles for Fruit English A1 App */

/* Navigation tab styles */
.nav-tab {
  color: #64748b;
  border-radius: 0.75rem;
  white-space: nowrap;
}
.nav-tab:hover {
  background-color: rgba(249, 115, 22, 0.1);
  color: #ea580c;
}
.nav-tab.active {
  background-color: #ea580c;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 6px -1px rgba(234, 88, 12, 0.3);
}

/* Filter button active state */
.filter-btn.active {
  background-color: #ea580c !important;
  color: #ffffff !important;
  border-color: #ea580c !important;
  box-shadow: 0 2px 4px rgba(234, 88, 12, 0.25);
}

/* 3D Card Flip */
.flip-card {
  perspective: 1000px;
  height: 320px;
}
.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  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 {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 1.5rem;
}
.flip-card-back {
  transform: rotateY(180deg);
}

/* Drag & Drop Styles */
.fruit-draggable {
  user-select: none;
  cursor: grab;
  touch-action: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.fruit-draggable:active {
  cursor: grabbing;
  transform: scale(1.08);
}
.fruit-draggable.dragging {
  opacity: 0.5;
  transform: scale(0.95);
}

.drop-basket.drag-over {
  border-color: #ea580c !important;
  background-color: #ffedd5 !important;
  transform: scale(1.02);
  box-shadow: 0 10px 25px -5px rgba(234, 88, 12, 0.2);
}

@keyframes wobble {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}
.wobble {
  animation: wobble 0.5s ease-in-out;
}

@keyframes popSuccess {
  0% { transform: scale(0.8); opacity: 0; }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}
.pop-success {
  animation: popSuccess 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Modal animation */
@keyframes scaleUp {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}
.animate-scaleUp {
  animation: scaleUp 0.25s ease-out forwards;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}
