/* ============================================================
   Swipe Session Styles (WI #731 - Tinder-Style Recipe Selection)
   ============================================================ */

/* Card Stack Container */
.swipe-stack {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: 520px;
    margin: 0 auto;
    touch-action: none;
}

/* Individual Swipe Card */
.swipe-card {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--mw-shadow-card, 0 4px 12px rgba(0,0,0,0.15));
    cursor: grab;
    user-select: none;
    will-change: transform;
    background: var(--mud-palette-surface);
    transition: box-shadow 0.2s ease;
}

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

.swipe-card.is-dragging {
    transition: none;
    box-shadow: 0 12px 32px rgba(0,0,0,0.25);
}

/* Stack depth visual effect for back cards */
.swipe-card.card-back-1 {
    transform: scale(0.96) translateY(8px);
    z-index: 1;
    pointer-events: none;
}

.swipe-card.card-back-2 {
    transform: scale(0.92) translateY(16px);
    z-index: 0;
    pointer-events: none;
}

.swipe-card.card-top {
    z-index: 10;
}

/* Recipe Image */
.swipe-card-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    background: var(--mud-palette-grey-lighter);
}

.swipe-card-image-placeholder {
    width: 100%;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--mud-palette-grey-lighter), var(--mud-palette-grey-light));
}

/* Card Content */
.swipe-card-content {
    padding: 16px;
}

.swipe-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 8px;
    color: var(--mud-palette-text-primary);
}

.swipe-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.swipe-card-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

/* Overlay indicators during drag */
.swipe-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.1s;
    border-radius: 16px;
}

.swipe-overlay.like {
    background: rgba(16, 185, 129, 0.25);
    border: 4px solid #10b981;
}

.swipe-overlay.dislike {
    background: rgba(239, 68, 68, 0.25);
    border: 4px solid #ef4444;
}

.swipe-overlay-label {
    font-size: 2rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 4px;
    padding: 8px 20px;
    border-radius: 8px;
    border: 4px solid;
    transform: rotate(-15deg);
}

.swipe-overlay.like .swipe-overlay-label {
    color: #10b981;
    border-color: #10b981;
}

.swipe-overlay.dislike .swipe-overlay-label {
    color: #ef4444;
    border-color: #ef4444;
}

/* Action Buttons */
.swipe-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 24px;
}

.swipe-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.swipe-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

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

.swipe-btn-dislike {
    background: #fff0f0;
    color: #ef4444;
    width: 56px;
    height: 56px;
}

.swipe-btn-skip {
    background: var(--mud-palette-grey-lighter);
    color: var(--mud-palette-text-secondary);
    width: 44px;
    height: 44px;
}

.swipe-btn-like {
    background: #f0fdf4;
    color: #10b981;
    width: 68px;
    height: 68px;
}

/* Progress */
.swipe-progress {
    text-align: center;
    margin-bottom: 12px;
}

/* Detail Overlay (US #736) */
.swipe-detail-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(38, 50, 56, 0.5);
    display: flex;
    align-items: flex-end;
    animation: slideUp 0.3s ease;
}

.swipe-detail-sheet {
    width: 100%;
    max-height: 85vh;
    background: var(--mud-palette-surface);
    border-radius: 20px 20px 0 0;
    overflow-y: auto;
    padding: 20px;
}

.swipe-detail-drag-handle {
    width: 40px;
    height: 4px;
    background: var(--mud-palette-grey-light);
    border-radius: 2px;
    margin: 0 auto 16px;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

/* Empty state */
.swipe-empty {
    text-align: center;
    padding: 48px 24px;
}

/* Session counter badges */
.swipe-stat-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.swipe-stat-badge.likes {
    background: #f0fdf4;
    color: #10b981;
}

.swipe-stat-badge.dislikes {
    background: #fff0f0;
    color: #ef4444;
}
