/* Explain: Styles for UI components including form elements and feedback messages. */
.site-header {
    background: linear-gradient(180deg, rgba(250, 249, 246, 0.92), rgba(250, 249, 246, 0.58));
    backdrop-filter: blur(18px);
}

.nav-link.nav-active {
    color: var(--accent-color);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: var(--accent-color);
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
}

.nav-link-mobile.nav-active {
    color: var(--accent-color);
}

.nav-link-mobile.nav-active span {
    text-decoration: underline;
    text-decoration-color: var(--accent-color);
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
}

.nav-cta.nav-active {
    box-shadow: 0 0 0 3px rgba(88, 129, 87, 0.3), var(--shadow-button);
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--sage-dark);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.section-kicker::before {
    display: inline-block;
    width: 2.2rem;
    height: 1px;
    background: var(--accent-color);
    content: "";
}

.glass-panel {
    border: 1px solid var(--glass-border);
    background: linear-gradient(145deg, rgba(250, 249, 246, 0.84), rgba(255, 255, 255, 0.5));
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

.arch-frame {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(88, 129, 87, 0.32);
    background: var(--surface-color);
    box-shadow: var(--shadow-soft);
}

.arch-frame::after {
    position: absolute;
    inset: 1.1rem;
    border: 1px solid rgba(250, 249, 246, 0.62);
    border-radius: inherit;
    content: "";
    pointer-events: none;
}

.arch-frame-large {
    height: min(72vh, 660px);
    min-height: 460px;
    border-radius: 999px 999px 2.5rem 2.5rem;
}

.arch-frame-medium {
    height: 560px;
    max-width: 430px;
    border-radius: 999px 999px 2.1rem 2.1rem;
}

.category-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: var(--sage-soft);
    padding: 0.4rem 0.9rem;
    color: var(--sage-dark);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.category-card {
    border-radius: 1.8rem;
    padding: 1.75rem;
    transition: transform 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}

.category-card:hover {
    border-color: rgba(88, 129, 87, 0.55);
    box-shadow: 0 26px 70px rgba(31, 46, 35, 0.11);
    transform: translateY(-6px);
}

.category-icon {
    display: inline-flex;
    width: 3rem;
    height: 3rem;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    background: var(--sage-soft);
    color: var(--accent-color);
    font-size: 1.25rem;
}

.recipe-card {
    overflow: hidden;
    border-radius: 1.9rem;
    transition: transform 300ms ease, box-shadow 300ms ease;
}

.recipe-card:hover {
    box-shadow: 0 26px 70px rgba(31, 46, 35, 0.12);
    transform: translateY(-6px);
}

.recipe-card-media {
    overflow: hidden;
}

.filter-chip {
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    background: rgba(250, 249, 246, 0.7);
    padding: 0.75rem 1.4rem;
    color: var(--text-muted);
    font-size: 0.98rem;
    font-weight: 700;
    box-shadow: var(--shadow-soft);
    transition: all 250ms ease;
}

.filter-chip:hover {
    border-color: var(--accent-color);
    color: var(--text-color);
}

.filter-scroll {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.filter-scroll::-webkit-scrollbar {
    display: none;
}

.filter-chip.is-active {
    border-color: var(--accent-color);
    background: var(--accent-color);
    color: #ffffff;
    box-shadow: 0 0 0 3px var(--sage-soft), var(--shadow-button);
}

.tip-card {
    border-radius: 1.8rem;
    padding: 1.9rem;
    transition: transform 300ms ease, border-color 300ms ease;
}

.tip-card:hover {
    border-color: rgba(88, 129, 87, 0.5);
    transform: translateY(-5px);
}

.tip-icon {
    display: inline-flex;
    width: 3rem;
    height: 3rem;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    background: var(--sage-soft);
    color: var(--accent-color);
    font-size: 1.2rem;
}

.tip-card summary {
    list-style: none;
}

.tip-card summary::-webkit-details-marker {
    display: none;
}

.tip-chevron {
    display: inline-flex;
    transition: transform 300ms ease;
}

.tip-card[open] {
    border-color: rgba(88, 129, 87, 0.5);
}

.tip-card[open] .tip-chevron {
    transform: rotate(180deg);
}

.quote-panel {
    border-radius: 2.4rem;
    border-inline-start: 4px solid var(--accent-color);
    padding: clamp(1.8rem, 4vw, 3rem);
}

.value-card {
    border: 1px solid var(--glass-border);
    border-radius: 1.6rem;
    background: rgba(250, 249, 246, 0.6);
    padding: 1.5rem;
}

.nutrition-box {
    border: 1px dashed var(--glass-border);
    border-radius: 1.4rem;
    background: rgba(250, 249, 246, 0.6);
    padding: 1.2rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.form-status.success {
    color: #4A6B53;
}

.form-status.error {
    color: #9B4A3D;
}

.field-error {
    margin-top: 0.5rem;
    padding-inline-start: 0.35rem;
    color: #9B4A3D;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.6;
}

.field-invalid {
    border-color: #9B4A3D !important;
    box-shadow: 0 0 0 3px rgba(155, 74, 61, 0.18) !important;
}

.share-btn {
    display: inline-flex;
    width: 2.75rem;
    height: 2.75rem;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    background: rgba(250, 249, 246, 0.7);
    color: var(--text-color);
    transition: all 250ms ease;
}

.share-btn:hover {
    border-color: var(--accent-color);
    background: var(--accent-color);
    color: #ffffff;
}

@media (max-width: 767px) {
    .arch-frame-large,
    .arch-frame-medium {
        height: 440px;
        min-height: 0;
    }

    .arch-frame-large {
        margin-inline: auto;
        width: min(100%, 430px);
    }
}

.whatsapp-float {
    position: fixed;
    bottom: 1.25rem;
    left: 1.25rem;
    z-index: 60;
    display: inline-flex;
    width: 3.5rem;
    height: 3.5rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #25D366;
    color: #ffffff;
    font-size: 1.9rem;
    line-height: 1;
    box-shadow: 0 16px 36px rgba(37, 211, 102, 0.4);
    transition: transform 250ms ease, box-shadow 250ms ease, background-color 250ms ease;
}

.whatsapp-float::after {
    position: absolute;
    inset: 0;
    border: 2px solid rgba(37, 211, 102, 0.65);
    border-radius: 999px;
    content: "";
    animation: whatsapp-pulse 2.6s ease-out infinite;
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
    background: #1EBE5D;
    box-shadow: 0 20px 44px rgba(37, 211, 102, 0.55);
    transform: translateY(-3px) scale(1.05);
}

@keyframes whatsapp-pulse {
    0% {
        opacity: 0.7;
        transform: scale(1);
    }
    70% {
        opacity: 0;
        transform: scale(1.6);
    }
    100% {
        opacity: 0;
        transform: scale(1.6);
    }
}

@media (prefers-reduced-motion: reduce) {
    .whatsapp-float::after {
        animation: none;
    }
    .whatsapp-float:hover,
    .whatsapp-float:focus-visible {
        transform: none;
    }
}

@media (max-width: 767px) {
    .whatsapp-float {
        bottom: 1rem;
        left: 1rem;
        width: 3.25rem;
        height: 3.25rem;
        font-size: 1.7rem;
    }
}

.shopping-counter {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    border: 1px solid var(--glass-border);
    border-radius: 1.4rem;
    background: linear-gradient(135deg, var(--sage-soft), rgba(250, 249, 246, 0.5));
    padding: 0.85rem 1.1rem;
    transition: border-color 300ms ease, box-shadow 300ms ease;
}

.shopping-counter.is-active {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px var(--sage-soft);
}

.shopping-counter-icon {
    display: inline-flex;
    width: 2.75rem;
    height: 2.75rem;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--accent-color);
    color: #ffffff;
    font-size: 1.2rem;
}

.shopping-counter-value {
    margin: 0;
    display: flex;
    align-items: baseline;
    color: var(--text-color);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.1;
}

.shopping-counter-of {
    margin-inline-start: 0.35rem;
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 700;
}

.shopping-counter-label {
    margin: 0.2rem 0 0;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
}

.ingredient-row {
    display: flex;
    cursor: pointer;
    align-items: flex-start;
    gap: 0.75rem;
    border: 1px solid transparent;
    border-radius: 1.1rem;
    padding: 0.5rem 0.75rem;
    transition: background-color 250ms ease, border-color 250ms ease;
}

.ingredient-row:hover {
    background: var(--sage-soft);
}

.ingredient-text {
    flex: 1;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 2;
    transition: color 250ms ease;
}

.ingredient-row:has(.shopping-check:checked) {
    border-color: rgba(88, 129, 87, 0.45);
    background: var(--sage-soft);
}

.ingredient-row:has(.shopping-check:checked) .ingredient-text {
    color: var(--sage-dark);
    font-weight: 600;
    text-decoration: line-through;
    text-decoration-color: rgba(88, 129, 87, 0.55);
    text-decoration-thickness: 1.5px;
}

.ingredient-row .shopping-check {
    margin-top: 0.55rem;
    height: 1.35rem;
    width: 1.35rem;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: var(--accent-color);
}

.shopping-action {
    font-weight: 700;
}

.shopping-action:hover {
    transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
    .shopping-action:hover {
        transform: none;
    }
}