/*
 * Vyakula Freshness Trust Section
 * All classes scoped under .vy- prefix — no conflicts with existing sf- styles.
 * Teaser is a card matching sf-item-card theming.
 * Used on: BBQ page (/bbq/) and BYOMB page (/meals/)
 */

/* ── Teaser card wrapper — constrains to item section width ─────────────── */
/* BBQ uses container-fluid px-3; BYOMB uses container max-width:960px.
   The .vy-teaser-wrap sits inside those same containers so it aligns naturally. */

.vy-teaser-wrap {
    margin-bottom: 2rem;
    margin-top: 0.5rem;
}

/* ── Teaser card ─────────────────────────────────────────────────────────── */

.vy-teaser {
    background: var(--sf-card);
    border: 1.5px solid var(--sf-border);
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    transition: border-color 0.2s;
}

.vy-teaser:hover {
    border-color: rgba(85, 239, 196, 0.3);
}

/* Left: icon badge + copy */
.vy-teaser-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.vy-teaser-badge {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(85, 239, 196, 0.08);
    border: 1px solid rgba(85, 239, 196, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.vy-teaser-copy {
    min-width: 0;
}

.vy-teaser-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--sf-text);
    margin-bottom: 0.2rem;
}

.vy-teaser-sub {
    font-size: 0.77rem;
    color: var(--sf-muted);
    line-height: 1.45;
    margin: 0;
}

/* Right: pill badges + CTA */
.vy-teaser-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.vy-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: flex-end;
}

.vy-pill {
    font-size: 0.68rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    background: rgba(85, 239, 196, 0.08);
    border: 1px solid rgba(85, 239, 196, 0.18);
    color: var(--sf-mint);
    white-space: nowrap;
}

/* BBQ variant — fire accent pills */
.vy-teaser-bbq .vy-pill {
    background: rgba(225, 112, 85, 0.08);
    border-color: rgba(225, 112, 85, 0.22);
    color: var(--sf-fire);
}

.vy-teaser-bbq .vy-teaser-badge {
    background: rgba(225, 112, 85, 0.08);
    border-color: rgba(225, 112, 85, 0.22);
}

.vy-cta-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: filter 0.2s, transform 0.15s;
    white-space: nowrap;
}

.vy-cta-btn:hover {
    filter: brightness(1.12);
    transform: translateY(-1px);
}

/* BYOMB — mint CTA */
.vy-cta-btn-mint {
    background: var(--sf-mint);
    color: #0b1a1c;
}

/* BBQ — fire CTA */
.vy-cta-btn-fire {
    background: var(--sf-fire);
    color: #fff;
}

/* Mobile: stack vertically */
@media (max-width: 640px) {
    .vy-teaser {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1rem 1.1rem;
    }

    .vy-teaser-right {
        width: 100%;
        justify-content: space-between;
    }

    .vy-pills {
        justify-content: flex-start;
    }
}

/* ── Modal Overlay ────────────────────────────────────────────────────────── */

.vy-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.vy-overlay.open {
    display: flex;
}

.vy-modal {
    background: var(--sf-card);
    border: 1px solid var(--sf-border);
    border-radius: 16px;
    width: 100%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.vy-modal::-webkit-scrollbar { width: 4px; }
.vy-modal::-webkit-scrollbar-track { background: transparent; }
.vy-modal::-webkit-scrollbar-thumb { background: rgba(85, 239, 196, 0.25); border-radius: 4px; }

.vy-modal-header {
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: var(--sf-card);
    border-bottom: 1px solid var(--sf-border);
    z-index: 1;
}

.vy-modal-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--sf-text);
}

.vy-close-btn {
    background: none;
    border: 1px solid var(--sf-border);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    color: var(--sf-muted);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
    flex-shrink: 0;
}

.vy-close-btn:hover {
    background: rgba(255, 255, 255, 0.07);
    color: var(--sf-text);
}

.vy-modal-body {
    padding: 1.25rem;
}

.vy-modal-body > p {
    font-size: 0.88rem;
    color: var(--sf-muted);
    line-height: 1.6;
    margin-bottom: 1.1rem;
}

.vy-section-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--sf-mint);
    margin: 0 0 0.75rem;
}

/* ── Trust Cards (2×2 grid) ───────────────────────────────────────────────── */

.vy-trust-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
}

.vy-trust-card {
    background: var(--sf-surface);
    border: 1px solid var(--sf-border);
    border-radius: 10px;
    padding: 0.9rem;
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.vy-icon-badge {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vy-card-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--sf-text);
    margin-bottom: 0.2rem;
}

.vy-card-desc {
    font-size: 0.82rem;
    color: var(--sf-muted);
    line-height: 1.5;
}

/* ── Shelf Life Cards ─────────────────────────────────────────────────────── */

.vy-shelf-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
}

.vy-shelf-card {
    border-radius: 12px;
    border: 1px solid var(--sf-border);
    padding: 1rem;
    background: var(--sf-surface);
}

.vy-shelf-days {
    display: flex;
    align-items: baseline;
    gap: 0.3rem;
    margin-bottom: 0.35rem;
}

.vy-shelf-num {
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--sf-mint);
    line-height: 1;
}

.vy-shelf-unit {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--sf-mint);
}

.vy-shelf-label {
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--sf-muted);
    margin-bottom: 0.3rem;
}

.vy-shelf-headline {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--sf-text);
    margin-bottom: 0.35rem;
}

.vy-shelf-note {
    font-size: 0.82rem;
    color: var(--sf-muted);
    line-height: 1.5;
}

/* ── Reheat Steps ─────────────────────────────────────────────────────────── */

.vy-reheat-wrap {
    background: var(--sf-surface);
    border: 1px solid var(--sf-border);
    border-radius: 10px;
    padding: 1.1rem 1rem;
}

.vy-reheat-grid {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
}

.vy-reheat-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.45rem;
}

.vy-reheat-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(85, 239, 196, 0.07);
    border: 1px solid rgba(85, 239, 196, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.vy-reheat-num {
    font-size: 0.62rem;
    font-weight: 800;
    color: var(--sf-mint);
    letter-spacing: 0.06em;
}

.vy-reheat-text {
    font-size: 0.9rem;
    color: var(--sf-muted);
    line-height: 1.4;
}

.vy-reheat-arrow {
    font-size: 1.3rem;
    color: var(--sf-border);
    padding-top: 10px;
    flex-shrink: 0;
}

/* ── Responsive modal ─────────────────────────────────────────────────────── */

@media (max-width: 640px) {
    .vy-trust-grid { grid-template-columns: 1fr; }
    .vy-shelf-grid { grid-template-columns: 1fr; }

    .vy-reheat-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.65rem;
    }

    .vy-reheat-arrow { display: none; }
    .vy-modal-body { padding: 1rem; }
}
