/* ================================================================
   NutriCraft — Deep Claymorphism Design System
   Font: Sen (Google Fonts)
   Rule: STRICTLY NO ITALIC TEXT
   Brand Kit: #f05b56 · #ffd1d1 · #f4dedd · #3b3b3b · #000000
   ================================================================ */

/* ======================== RESET & BASE ======================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-style: normal !important;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Sen', sans-serif;
    font-style: normal;
    background: linear-gradient(160deg, #f4dedd 0%, #fbe8e7 50%, #f4dedd 100%);
    color: #3b3b3b;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

em, i, cite, address, dfn, var {
    font-style: normal !important;
}

a {
    text-decoration: none;
    color: inherit;
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

button, input, select, textarea {
    font-family: 'Sen', sans-serif;
    font-style: normal;
    font-size: inherit;
    color: inherit;
    border: none;
    outline: none;
    background: none;
}

select option {
    font-style: normal !important;
}

::placeholder {
    font-style: normal !important;
    color: #a89090;
}

/* Remove italic from any browser default */
::-webkit-input-placeholder { font-style: normal !important; }
::-moz-placeholder { font-style: normal !important; }
:-ms-input-placeholder { font-style: normal !important; }

/* ======================== DESIGN TOKENS ======================== */
:root {
    /* Claymorphism Palette — Brand Kit */
    --bg-base: #f4dedd;
    --bg-card: #f9e8e7;
    --shadow-light: #ffffff;
    --shadow-dark: #dfc4c3;
    --shadow-darker: #c9aeac;

    /* Brand Accent Colors */
    --coral: #f05b56;
    --coral-dark: #d94440;
    --coral-light: #ffd1d1;
    --blush: #f4dedd;
    --blush-light: #fbe8e7;
    --charcoal: #3b3b3b;
    --black: #000000;

    /* Semantic Aliases (maps old names to brand) */
    --sage-green: #f05b56;
    --sage-green-dark: #d94440;
    --sage-green-light: #ffd1d1;
    --sunbeam-yellow: #f05b56;
    --sunbeam-yellow-dark: #d94440;
    --sunbeam-yellow-light: #ffd1d1;
    --berry-red: #f05b56;
    --berry-red-dark: #d94440;
    --berry-red-light: #ffd1d1;
    --ocean-blue: #f05b56;
    --ocean-blue-dark: #d94440;
    --lavender: #3b3b3b;

    /* Text */
    --text-primary: #000000;
    --text-secondary: #3b3b3b;
    --text-muted: #7a6b6b;
    --text-inverse: #ffffff;

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 40px;
    --space-2xl: 64px;

    /* Radius */
    --radius-sm: 16px;
    --radius-md: 24px;
    --radius-lg: 40px;
    --radius-full: 999px;

    /* Claymorphism Shadows */
    --clay-shadow-outer: 12px 12px 24px var(--shadow-dark), -8px -8px 20px var(--shadow-light);
    --clay-shadow-inset: inset 6px 6px 12px var(--shadow-dark), inset -4px -4px 10px var(--shadow-light);
    --clay-shadow-card:
        8px 8px 20px var(--shadow-dark),
        -6px -6px 16px var(--shadow-light),
        inset 2px 2px 6px rgba(255,255,255,0.7),
        inset -2px -2px 6px rgba(0,0,0,0.06);
    --clay-shadow-btn:
        6px 6px 14px var(--shadow-dark),
        -4px -4px 10px var(--shadow-light),
        inset 2px 2px 4px rgba(255,255,255,0.5),
        inset -1px -1px 3px rgba(0,0,0,0.05);
    --clay-shadow-input:
        inset 4px 4px 10px var(--shadow-dark),
        inset -3px -3px 8px var(--shadow-light);

    /* Transitions */
    --ease-clay: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-fast: 0.2s var(--ease-clay);
    --transition-med: 0.35s var(--ease-clay);
    --transition-slow: 0.5s var(--ease-clay);
}

/* ======================== UTILITY ======================== */
.hidden {
    display: none !important;
}

/* ======================== HERO SECTION ======================== */
.hero {
    position: relative;
    padding: var(--space-2xl) var(--space-lg);
    min-height: 92vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(145deg, #f4dedd, #fbe8e7, #f9e8e7);
}

.hero-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    animation: fadeInUp 0.8s var(--ease-clay) both;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: var(--bg-card);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-full);
    box-shadow: var(--clay-shadow-btn);
    margin-bottom: var(--space-xl);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--coral-dark);
    letter-spacing: 0.02em;
}

.hero-badge-icon {
    font-size: 1.2rem;
}

.hero-title {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.hero-title-brand {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #f05b56, #d94440, #000000);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    filter: drop-shadow(2px 4px 6px rgba(240, 91, 86, 0.2));
}

.hero-title-tagline {
    font-size: clamp(1.15rem, 3vw, 1.6rem);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

.hero-title-sub {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    font-weight: 600;
    color: var(--berry-red);
    letter-spacing: 0.01em;
}

.hero-desc {
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto var(--space-xl);
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: linear-gradient(145deg, #f05b56, #d94440);
    color: var(--text-inverse);
    font-size: 1.1rem;
    font-weight: 700;
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow:
        8px 8px 20px rgba(240, 91, 86, 0.3),
        -4px -4px 12px rgba(255, 209, 209, 0.4),
        inset 2px 2px 6px rgba(255,255,255,0.3),
        inset -2px -2px 4px rgba(0,0,0,0.1);
    transition: all var(--transition-med);
    cursor: pointer;
}

.hero-cta:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow:
        10px 10px 28px rgba(240, 91, 86, 0.35),
        -6px -6px 16px rgba(255, 209, 209, 0.5),
        inset 2px 2px 6px rgba(255,255,255,0.3),
        inset -2px -2px 4px rgba(0,0,0,0.1);
}

.hero-cta:active {
    transform: translateY(1px) scale(0.98);
    box-shadow:
        4px 4px 10px rgba(240, 91, 86, 0.25),
        -2px -2px 8px rgba(255, 209, 209, 0.3),
        inset 4px 4px 10px rgba(0,0,0,0.12),
        inset -2px -2px 6px rgba(255,255,255,0.2);
}

/* Hero Blobs */
.hero-decor {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
}

.hero-blob-1 {
    width: 400px;
    height: 400px;
    background: var(--coral-light);
    top: -10%;
    left: -5%;
    animation: blobFloat 8s ease-in-out infinite alternate;
}

.hero-blob-2 {
    width: 350px;
    height: 350px;
    background: var(--coral);
    bottom: -5%;
    right: -5%;
    animation: blobFloat 10s ease-in-out infinite alternate-reverse;
}

.hero-blob-3 {
    width: 280px;
    height: 280px;
    background: var(--blush);
    top: 40%;
    right: 15%;
    animation: blobFloat 9s ease-in-out 1s infinite alternate;
}

@keyframes blobFloat {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, -20px) scale(1.08); }
}

@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* ======================== SECTIONS ======================== */
.form-section,
.result-section,
.loading-section,
.error-section {
    max-width: 900px;
    margin: 0 auto;
    padding: var(--space-2xl) var(--space-lg);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.section-title {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.section-icon {
    font-size: 1.5em;
}

.section-subtitle {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-muted);
}

/* ======================== FORM ======================== */
.clay-form {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-lg);
}

.form-row {
    display: flex;
    gap: var(--space-lg);
    width: 100%;
}

.form-row-three {
    display: flex;
    gap: var(--space-lg);
    width: 100%;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.form-group-full {
    width: 100%;
}

.form-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.label-icon {
    font-size: 1.15em;
}

.form-hint {
    font-size: 0.78rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Clay Inputs */
.clay-input {
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    box-shadow: var(--clay-shadow-input);
    transition: all var(--transition-fast);
    border: 2px solid transparent;
}

.clay-input:focus {
    border-color: var(--coral);
    box-shadow:
        var(--clay-shadow-input),
        0 0 0 3px rgba(240, 91, 86, 0.12);
}

.clay-textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.6;
}

.clay-select {
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%233b3b3b' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.clay-select[multiple] {
    background-image: none;
    padding-right: 18px;
}

.clay-select option {
    padding: 8px;
    font-style: normal !important;
}

.clay-input-other {
    margin-top: var(--space-sm);
}

/* Servings Picker */
.servings-picker {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.serving-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-card);
    box-shadow: var(--clay-shadow-btn);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
}

.serving-btn:hover {
    color: var(--coral);
    transform: scale(1.05);
}

.serving-btn:active {
    transform: scale(0.93);
    box-shadow:
        2px 2px 6px var(--shadow-dark),
        -2px -2px 4px var(--shadow-light),
        inset 3px 3px 6px rgba(0,0,0,0.08),
        inset -1px -1px 3px rgba(255,255,255,0.5);
}

.serving-input {
    width: 60px;
    text-align: center;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--coral-dark);
    -moz-appearance: textfield;
}

.serving-input::-webkit-inner-spin-button,
.serving-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
}

/* Divider */
.form-divider {
    width: 100%;
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-sm) 0;
}

.form-divider::before,
.form-divider::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--shadow-dark), transparent);
    border-radius: 2px;
}

.divider-text {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Submit */
.form-submit-wrap {
    display: flex;
    justify-content: center;
    padding-top: var(--space-md);
}

/* Unit Toggle */
.unit-toggle-wrap {
    display: flex;
    justify-content: center;
}

.unit-toggle {
    position: relative;
    display: inline-grid;
    grid-template-columns: 1fr 1fr;
    background: var(--bg-base);
    border-radius: var(--radius-full);
    box-shadow:
        inset 4px 4px 10px var(--shadow-dark),
        inset -3px -3px 8px var(--shadow-light);
    padding: 5px;
}

.unit-option {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    border-radius: var(--radius-full);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    transition: color var(--transition-fast);
    background: transparent;
    border: none;
    outline: none;
    font-family: 'Sen', sans-serif;
    white-space: nowrap;
}

.unit-option.active {
    color: var(--text-inverse);
}

.unit-option:not(.active):hover {
    color: var(--text-secondary);
}

.unit-option-icon {
    font-size: 1em;
}

.unit-slider {
    position: absolute;
    top: 5px;
    left: 5px;
    width: calc(50% - 5px);
    height: calc(100% - 10px);
    border-radius: var(--radius-full);
    background: linear-gradient(145deg, #f05b56, #d94440);
    box-shadow:
        4px 4px 10px rgba(240, 91, 86, 0.3),
        -2px -2px 6px rgba(255, 209, 209, 0.3),
        inset 1px 1px 3px rgba(255,255,255,0.25),
        inset -1px -1px 2px rgba(0,0,0,0.08);
    transition: left 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1;
}

/* ======================== BUTTONS ======================== */
.clay-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 16px 36px;
    border-radius: var(--radius-lg);
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-med);
    user-select: none;
    border: none;
    outline: none;
    letter-spacing: 0.01em;
}

.clay-btn-primary {
    background: linear-gradient(145deg, #f05b56, #d94440);
    color: var(--text-inverse);
    box-shadow:
        8px 8px 20px rgba(240, 91, 86, 0.3),
        -4px -4px 12px rgba(255, 209, 209, 0.4),
        inset 2px 2px 6px rgba(255,255,255,0.3),
        inset -2px -2px 4px rgba(0,0,0,0.1);
}

.clay-btn-primary:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow:
        10px 10px 28px rgba(240, 91, 86, 0.35),
        -6px -6px 16px rgba(255, 209, 209, 0.5),
        inset 2px 2px 6px rgba(255,255,255,0.3),
        inset -2px -2px 4px rgba(0,0,0,0.1);
}

.clay-btn-primary:active {
    transform: translateY(2px) scale(0.97);
    box-shadow:
        3px 3px 8px rgba(240, 91, 86, 0.25),
        -2px -2px 6px rgba(255, 209, 209, 0.3),
        inset 5px 5px 12px rgba(0,0,0,0.15),
        inset -2px -2px 6px rgba(255,255,255,0.15);
}

.clay-btn-primary:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.clay-btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    box-shadow: var(--clay-shadow-btn);
}

.clay-btn-secondary:hover {
    transform: translateY(-2px) scale(1.03);
    color: var(--coral);
}

.clay-btn-secondary:active {
    transform: translateY(2px) scale(0.97);
    box-shadow:
        2px 2px 6px var(--shadow-dark),
        -2px -2px 4px var(--shadow-light),
        inset 4px 4px 10px rgba(0,0,0,0.08),
        inset -2px -2px 6px rgba(255,255,255,0.4);
}

.clay-btn-youtube {
    background: linear-gradient(145deg, #3b3b3b, #000000);
    color: var(--text-inverse);
    box-shadow:
        8px 8px 20px rgba(0, 0, 0, 0.2),
        -4px -4px 12px rgba(255, 209, 209, 0.3),
        inset 2px 2px 6px rgba(255,255,255,0.15),
        inset -2px -2px 4px rgba(0,0,0,0.15);
}

.clay-btn-youtube:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow:
        10px 10px 28px rgba(0, 0, 0, 0.25),
        -6px -6px 16px rgba(255, 209, 209, 0.4),
        inset 2px 2px 6px rgba(255,255,255,0.15),
        inset -2px -2px 4px rgba(0,0,0,0.15);
}

.clay-btn-youtube:active {
    transform: translateY(2px) scale(0.97);
    box-shadow:
        3px 3px 8px rgba(0, 0, 0, 0.2),
        -2px -2px 6px rgba(255, 209, 209, 0.25),
        inset 5px 5px 12px rgba(0,0,0,0.2),
        inset -2px -2px 6px rgba(255,255,255,0.1);
}

.btn-icon {
    font-size: 1.2em;
}

/* ======================== LOADING ======================== */
.loading-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40vh;
}

.loader-wrap {
    text-align: center;
}

.clay-loader {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    margin-bottom: var(--space-lg);
}

.loader-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--bg-card);
    box-shadow: var(--clay-shadow-btn);
    animation: loaderBounce 1.2s ease-in-out infinite;
}

.loader-dot:nth-child(1) {
    background: #f05b56;
    animation-delay: 0s;
}

.loader-dot:nth-child(2) {
    background: #ffd1d1;
    animation-delay: 0.2s;
}

.loader-dot:nth-child(3) {
    background: #3b3b3b;
    animation-delay: 0.4s;
}

@keyframes loaderBounce {
    0%, 60%, 100% { transform: translateY(0) scale(1); }
    30% { transform: translateY(-18px) scale(1.15); }
}

.loader-text {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-secondary);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* ======================== RESULT CARDS ======================== */
.result-section {
    animation: fadeInUp 0.6s var(--ease-clay) both;
}

.result-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.clay-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--clay-shadow-card);
    overflow: hidden;
    animation: cardFadeIn 0.5s var(--ease-clay) both;
}

.clay-card:nth-child(1) { animation-delay: 0.05s; }
.clay-card:nth-child(2) { animation-delay: 0.15s; }
.clay-card:nth-child(3) { animation-delay: 0.25s; }
.clay-card:nth-child(4) { animation-delay: 0.35s; }
.clay-card:nth-child(5) { animation-delay: 0.45s; }

@keyframes cardFadeIn {
    0% { opacity: 0; transform: translateY(20px) scale(0.97); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.card-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg) var(--space-lg) 0;
}

.card-emoji {
    font-size: 2rem;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--bg-base);
    box-shadow:
        inset 3px 3px 6px var(--shadow-dark),
        inset -2px -2px 5px var(--shadow-light);
    flex-shrink: 0;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
}

.card-body {
    padding: var(--space-lg);
}

/* Recipe Meta */
.recipe-meta {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Shopping List */
.shopping-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: var(--space-sm) var(--space-lg);
}

.shopping-list li {
    padding: 10px 14px;
    background: var(--bg-base);
    border-radius: var(--radius-sm);
    box-shadow:
        inset 2px 2px 5px var(--shadow-dark),
        inset -2px -2px 4px var(--shadow-light);
    font-size: 0.92rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    transition: all var(--transition-fast);
}

.shopping-list li::before {
    content: '🛒';
    font-size: 0.85rem;
    flex-shrink: 0;
}

.shopping-list li.checked {
    text-decoration: line-through;
    opacity: 0.5;
}

.shopping-list li:hover {
    cursor: pointer;
    background: var(--bg-card);
}

/* Steps */
.steps-list {
    counter-reset: step-counter;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.steps-list li {
    counter-increment: step-counter;
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-base);
    border-radius: var(--radius-md);
    box-shadow:
        inset 2px 2px 5px var(--shadow-dark),
        inset -2px -2px 4px var(--shadow-light);
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.6;
}

.steps-list li::before {
    content: counter(step-counter);
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #f05b56, #d94440);
    color: white;
    border-radius: 50%;
    font-weight: 800;
    font-size: 0.85rem;
    flex-shrink: 0;
    box-shadow:
        3px 3px 8px rgba(240, 91, 86, 0.3),
        -2px -2px 5px rgba(255, 209, 209, 0.3);
}

/* Nutrition Grid */
.nutrition-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.nutrition-item {
    background: var(--bg-base);
    border-radius: var(--radius-md);
    padding: var(--space-lg) var(--space-md);
    text-align: center;
    box-shadow:
        inset 3px 3px 7px var(--shadow-dark),
        inset -2px -2px 5px var(--shadow-light);
    transition: transform var(--transition-fast);
}

.nutrition-item:hover {
    transform: scale(1.03);
}

.nutrition-value {
    font-size: 1.6rem;
    font-weight: 800;
    display: block;
    margin-bottom: 4px;
}

.nutrition-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.nutrition-item:nth-child(1) .nutrition-value { color: #f05b56; }
.nutrition-item:nth-child(2) .nutrition-value { color: #d94440; }
.nutrition-item:nth-child(3) .nutrition-value { color: #000000; }
.nutrition-item:nth-child(4) .nutrition-value { color: #3b3b3b; }
.nutrition-item:nth-child(5) .nutrition-value { color: #f05b56; }
.nutrition-item:nth-child(6) .nutrition-value { color: #d94440; }

/* YouTube Card */
.youtube-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
    text-align: center;
}

.youtube-desc {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* Error Card */
.error-card {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

.error-message {
    font-size: 1rem;
    font-weight: 500;
    color: var(--berry-red);
    margin-bottom: var(--space-lg);
    line-height: 1.6;
}

/* Result Actions */
.result-actions {
    display: flex;
    justify-content: center;
    padding-top: var(--space-xl);
}

/* ======================== FOOTER ======================== */
.site-footer {
    padding: var(--space-xl) var(--space-lg);
    text-align: center;
    margin-top: var(--space-xl);
}

.footer-inner {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--clay-shadow-card);
}

.footer-brand {
    font-size: 1.3rem;
    font-weight: 800;
    color: #f05b56;
    margin-bottom: var(--space-sm);
}

.footer-tagline {
    font-size: 0.92rem;
    font-weight: 600;
    color: #3b3b3b;
    margin-bottom: var(--space-md);
}

.footer-link {
    color: #f05b56;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #d94440;
}

.footer-disclaimer {
    font-size: 0.82rem;
    font-weight: 400;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ======================== RESPONSIVE ======================== */
@media (max-width: 768px) {
    .hero {
        min-height: 80vh;
        padding: var(--space-xl) var(--space-md);
    }

    .form-row,
    .form-row-three {
        flex-direction: column;
    }

    .form-section,
    .result-section,
    .loading-section,
    .error-section {
        padding: var(--space-xl) var(--space-md);
    }

    .clay-btn {
        padding: 14px 28px;
        font-size: 0.95rem;
    }

    .shopping-list {
        grid-template-columns: 1fr;
    }

    .nutrition-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .card-header {
        padding: var(--space-md) var(--space-md) 0;
    }

    .card-body {
        padding: var(--space-md);
    }

    .card-emoji {
        width: 44px;
        height: 44px;
        font-size: 1.5rem;
    }

    .card-title {
        font-size: 1.1rem;
    }

    .hero-blob-1 { width: 250px; height: 250px; }
    .hero-blob-2 { width: 200px; height: 200px; }
    .hero-blob-3 { width: 180px; height: 180px; }
}

@media (max-width: 480px) {
    .hero {
        min-height: 75vh;
    }

    .hero-badge {
        font-size: 0.8rem;
        padding: 6px 16px;
    }

    .nutrition-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-sm);
    }

    .nutrition-item {
        padding: var(--space-md) var(--space-sm);
    }

    .nutrition-value {
        font-size: 1.3rem;
    }

    .servings-picker {
        justify-content: center;
    }

    .steps-list li {
        padding: var(--space-sm) var(--space-md);
        font-size: 0.9rem;
    }
}
