/* =========================================
   3D Coverflow Carousel Styles
   ========================================= */

.coverflow-wrapper {
  position: relative;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 0;
  overflow: hidden;
}

.coverflow-container {
  position: relative;
  height: 450px;
  perspective: 1200px;
  display: flex;
  justify-content: center;
  align-items: center;
  /* Allow native vertical scrolling, but handle horizontal touches in JS */
  touch-action: pan-y;
}

.coverflow-card {
  position: absolute;
  width: 350px;
  height: 400px;
  border-radius: 12px;
  background: var(--bg-white, #fff);
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
  cursor: pointer;
  overflow: hidden;
  user-select: none;
  border: 1px solid var(--border, #eaeaea);
  /* Hardware acceleration for smooth requestAnimationFrame */
  will-change: transform, opacity, z-index;
}

/* Card States */
.coverflow-card.active {
  box-shadow: 0 25px 50px rgba(0,0,0,0.15);
  transition: box-shadow 0.3s ease;
}

/* Controls */
.coverflow-controls {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.cf-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary, #111);
  color: #fff;
  border: none;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s ease, background 0.3s ease;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.cf-btn:hover {
  transform: scale(1.1);
  background: var(--accent, #333);
}

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

/* Responsive */
@media (max-width: 768px) {
  .coverflow-card {
    width: 280px;
    height: 350px;
  }
}
