/* Swipe Styles */
.stack-container {
    touch-action: none;
    perspective: 1000px;
}

.swipe-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 28px;
    background-color: rgba(255, 255, 255, 0.85);
    /* fallback */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    user-select: none;
    cursor: grab;
    transform-origin: 50% 100%;
    will-change: transform;
}

.swipe-card.dragging {
    cursor: grabbing;
}

.dark .swipe-card {
    background-color: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(30, 41, 59, 0.5);
}

/* Overlay Badges */
.card-badge {
    position: absolute;
    opacity: 0;
    transition: opacity 0.1s ease;
    border-width: 4px;
    border-radius: 12px;
    padding: 8px 16px;
    font-size: 2rem;
    font-weight: 800;
    text-transform: uppercase;
    transform: rotate(-15deg);
    z-index: 20;
}

.badge-like {
    top: 40px;
    left: 20px;
    color: #10b981;
    border-color: #10b981;
    transform: rotate(-15deg);
}

.badge-pass {
    top: 40px;
    right: 20px;
    color: #f43f5e;
    border-color: #f43f5e;
    transform: rotate(15deg);
}

.badge-super {
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) rotate(0deg);
    color: #3b82f6;
    border-color: #3b82f6;
}

/* Animations needed for swipe context */
@keyframes flyOutRight {
    to {
        transform: translate(150%, 50px) rotate(20deg);
        opacity: 0;
    }
}

@keyframes flyOutLeft {
    to {
        transform: translate(-150%, 50px) rotate(-20deg);
        opacity: 0;
    }
}

@keyframes flyOutUp {
    to {
        transform: translate(0, -150%) rotate(0deg);
        opacity: 0;
    }
}

/* Prevent iOS bounce selecting while swiping */
.no-select {
    user-select: none;
    -webkit-user-select: none;
}