/* Cook With Me overlay (VA1 C1-C4) — full-screen, glass-morphism, large type for floury hands. */
.cook-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    flex-direction: column;
    background: rgba(18, 18, 24, 0.92);
    backdrop-filter: blur(16px);
    color: #fff;
    padding: env(safe-area-inset-top, 12px) 16px 20px;
}

.cook-overlay.active {
    display: flex;
}

.cook-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 4px;
}

.cook-title {
    font-size: 1.15rem;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.cook-close {
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: #fff;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    font-size: 1.25rem;
    cursor: pointer;
}

.cook-progress {
    text-align: center;
    opacity: 0.75;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.cook-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    overflow-y: auto;
}

.cook-step-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 28px 22px;
    max-width: 760px;
    margin: 0 auto;
    width: 100%;
}

.cook-step-text {
    font-size: clamp(1.4rem, 4.5vw, 2.1rem);
    line-height: 1.4;
    font-weight: 500;
}

.cook-timers {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.cook-timer-chip {
    background: rgba(255, 193, 7, 0.18);
    border: 1px solid rgba(255, 193, 7, 0.4);
    color: #ffe082;
    border-radius: 999px;
    padding: 6px 14px;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}

.cook-mic {
    align-self: center;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 10px 0;
    cursor: pointer;
}

.cook-mic.listening {
    background: rgba(120, 90, 240, 0.6);
    animation: cookMicPulse 1.4s infinite;
}

@keyframes cookMicPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(120, 90, 240, 0.5); }
    50% { box-shadow: 0 0 0 0.75rem rgba(120, 90, 240, 0); }
}

.cook-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.cook-btn {
    min-width: 92px;
    font-size: 1rem;
    padding: 10px 16px;
}

.cook-finish {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(18, 18, 24, 0.75);
    backdrop-filter: blur(6px);
}

.cook-finish.d-none {
    display: none;
}

.cook-finish-card {
    background: rgba(40, 40, 52, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    padding: 26px;
    text-align: center;
    max-width: 380px;
    width: 90%;
}

.cook-servings {
    max-width: 120px;
    text-align: center;
}

/* Free-form Q&A card (VA1 C3.2) — the assistant's in-context answer while cooking */
.cook-qa {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 16px 20px;
    max-width: 760px;
    margin: 0 auto;
    width: 100%;
}

.cook-qa.d-none {
    display: none;
}

.cook-qa-q {
    font-size: 0.9rem;
    opacity: 0.65;
    font-style: italic;
    margin-bottom: 6px;
}

.cook-qa-a {
    font-size: clamp(1rem, 3vw, 1.25rem);
    line-height: 1.45;
}
