/* Basic resets and base styles */
body {
    -webkit-font-smoothing: antialiased;
    overflow: hidden;
    touch-action: none; /* Prevent scroll on mobile while swiping */
}

/* 3D Perspective for the card stack */
.perspective-1000 {
    perspective: 1000px;
}

/* Card Styling */
.tinder-card {
    position: absolute;
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 1.5rem;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.1);
    transform-origin: 50% 100%;
    will-change: transform, opacity;
    display: flex;
    flex-col: column;
    overflow: hidden;
    transition: transform 0.1s ease-out, box-shadow 0.2s ease;
    cursor: grab;
}

.tinder-card:active {
    cursor: grabbing;
    box-shadow: 0 15px 40px -5px rgba(0, 0, 0, 0.15);
}

/* Infinite Stack Effect */
.tinder-card:nth-last-child(n+4) {
    opacity: 0;
    pointer-events: none;
}

/* Status Indicators (Like/Nope Overlays) */
.status-indicator {
    position: absolute;
    top: 2rem;
    padding: 0.5rem 1rem;
    border: 4px solid;
    border-radius: 8px;
    font-size: 2rem;
    font-weight: 800;
    text-transform: uppercase;
    opacity: 0;
    transform: rotate(-15deg) scale(0.5);
    transition: opacity 0.1s, transform 0.2s;
    z-index: 10;
}

.status-fact {
    left: 2rem;
    color: #22c55e;
    border-color: #22c55e;
    transform: rotate(-15deg);
}

.status-fiction {
    right: 2rem;
    color: #E93150;
    border-color: #E93150;
    transform: rotate(15deg);
}

/* Explanation Overlay */
.explanation-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 20;
    border-radius: 1.5rem;
}

.explanation-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

/* Animating bubbles for background interest (Optional) */
.bg-bubble {
    position: absolute;
    border-radius: 50%;
    opacity: 0.5;
    filter: blur(40px);
    z-index: -1;
    animation: float 20s infinite ease-in-out;
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.1); }
}
