/* Estilos base (placeholder). Animaciones touch/swipe se añaden en prompts posteriores. */
:root {
    --tap-target: 44px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

.landing {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem;
    text-align: center;
}

.cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--tap-target);
    padding: 0 1.5rem;
    border-radius: 999px;
    background: #ff5a5f;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    touch-action: manipulation;
}

/* ---------- Swipe de platos ---------- */
.dish-card {
    transition: transform 0.3s ease, opacity 0.3s ease;
    touch-action: pan-y;            /* permite scroll vertical, gestionamos X */
    will-change: transform;
}

/* Salida al rechazar (izquierda) / aprobar (derecha) */
.dish-card.swipe-left {
    transform: translateX(-100%);
    opacity: 0;
}
.dish-card.swipe-right {
    transform: translateX(100%);
    opacity: 0;
}

/* Mientras se arrastra desactivamos la transición para seguir el dedo */
.dish-card.dragging {
    transition: none;
}

/* Entrada del plato sustituido desde la derecha */
@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to   { transform: translateX(0);    opacity: 1; }
}
.slide-in-right {
    animation: slideInRight 0.3s ease forwards;
}

/* Spinner LLM */
.llm-spinner {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(2px);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
}
.llm-spinner.active {
    display: flex;
}
.llm-spinner__ring {
    width: 48px;
    height: 48px;
    border: 4px solid #E0E7FF;
    border-top-color: #4F46E5;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
.llm-spinner__text {
    font-size: 14px;
    font-weight: 500;
    color: #4F46E5;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Card en estado cargando */
.dish-card.loading {
    opacity: 0.4;
    pointer-events: none;
}
