/* ═══════════════════════════════════════════════════════════════
   RECIPE CARD AUTO-FORMATTER - Modern Vibrant Design
   ═══════════════════════════════════════════════════════════════ */

/* Main Recipe Card Container */
.recipe-card-auto {
    max-width: 720px;
    margin: 50px auto;
    font-family: 'Poppins', sans-serif;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 30px 90px rgba(255, 107, 53, 0.25), 0 15px 40px rgba(102, 126, 234, 0.15);
    background: linear-gradient(145deg, #ffffff 0%, #fff5f0 100%);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
}

.recipe-card-auto::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 32px;
    padding: 2px;
    background: linear-gradient(135deg, #FF6B35, #F7931E, #FDC830, #F37335);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.recipe-card-auto:hover::before {
    opacity: 1;
}

.recipe-card-auto:hover {
    transform: translateY(-12px) scale(1.01);
    box-shadow: 0 40px 120px rgba(255, 107, 53, 0.35), 0 20px 60px rgba(102, 126, 234, 0.25);
}

/* Animated Gradient Header */
.recipe-header-auto {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 25%, #FFA500 50%, #FF6B35 75%, #FF4757 100%);
    color: #fff;
    padding: 55px 45px 45px;
    position: relative;
    overflow: hidden;
    animation: gradientShift 8s ease infinite;
    background-size: 200% 200%;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Floating Food Emoji Decorations */
.recipe-header-auto::before,
.recipe-header-auto::after {
    content: '🍳';
    position: absolute;
    font-size: 80px;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.recipe-header-auto::before {
    content: '🍽️';
    top: -20px;
    right: -20px;
    animation-delay: 0s;
}

.recipe-header-auto::after {
    content: '🔥';
    bottom: -30px;
    left: -10px;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* Category Badge */
.category-badge-auto {
    display: inline-block;
    background: linear-gradient(135deg, #FFF 0%, #FFE5CC 100%);
    color: #FF6B35;
    padding: 10px 22px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    border: 2px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.3), inset 0 1px 3px rgba(255, 107, 53, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Recipe Title */
.recipe-header-auto h2 {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    font-weight: 900;
    margin: 0 0 28px 0;
    position: relative;
    z-index: 1;
    line-height: 1.1;
    text-shadow: 0 4px 25px rgba(0, 0, 0, 0.2), 0 2px 10px rgba(255, 255, 255, 0.3);
    animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% { text-shadow: 0 4px 25px rgba(0, 0, 0, 0.2), 0 2px 10px rgba(255, 255, 255, 0.3); }
    50% { text-shadow: 0 6px 35px rgba(0, 0, 0, 0.3), 0 3px 15px rgba(255, 255, 255, 0.5); }
}

/* Meta Information */
.recipe-meta-auto {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.recipe-meta-auto span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    padding: 12px 20px;
    border-radius: 28px;
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.recipe-meta-auto span:nth-child(1) {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.3), rgba(255, 142, 83, 0.3));
}

.recipe-meta-auto span:nth-child(2) {
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.3), rgba(255, 107, 53, 0.3));
}

.recipe-meta-auto span:nth-child(3) {
    background: linear-gradient(135deg, rgba(255, 71, 87, 0.3), rgba(255, 107, 107, 0.3));
}

.recipe-meta-auto span:nth-child(4) {
    background: linear-gradient(135deg, rgba(255, 142, 83, 0.3), rgba(253, 200, 48, 0.3));
}

.recipe-meta-auto span:nth-child(5) {
    background: linear-gradient(135deg, rgba(253, 200, 48, 0.3), rgba(255, 165, 0, 0.3));
}

.recipe-meta-auto span:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Recipe Body */
.recipe-body-auto {
    background: linear-gradient(180deg, #fff 0%, #fff5f0 50%, #fff 100%);
    padding: 50px 45px;
    color: #2d3748;
    position: relative;
}

/* Action Buttons */
.recipe-buttons-auto {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.recipe-buttons-auto .btn-print,
.recipe-buttons-auto .btn-pin {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 16px;
    text-decoration: none;
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.recipe-buttons-auto .btn-print::before,
.recipe-buttons-auto .btn-pin::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.6s;
}

.recipe-buttons-auto .btn-print:hover::before,
.recipe-buttons-auto .btn-pin:hover::before {
    left: 100%;
}

.recipe-buttons-auto .btn-print:hover,
.recipe-buttons-auto .btn-pin:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
}

.recipe-buttons-auto .btn-print {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.recipe-buttons-auto .btn-print:hover {
    background: linear-gradient(135deg, #5568d3 0%, #6a3f91 100%);
}

.recipe-buttons-auto .btn-pin {
    background: linear-gradient(135deg, #E60023 0%, #BD081C 100%);
}

.recipe-buttons-auto .btn-pin:hover {
    background: linear-gradient(135deg, #D4001F 0%, #A90718 100%);
}

/* Section Headers */
.recipe-body-auto h3 {
    font-family: 'Playfair Display', serif;
    font-size: 34px;
    font-weight: 900;
    background: linear-gradient(135deg, #FF6B35, #F7931E, #FDC830);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 40px 0 25px 0;
    padding-bottom: 16px;
    position: relative;
    display: inline-block;
}

.recipe-body-auto h3:first-of-type {
    margin-top: 0;
}

.recipe-body-auto h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #FF6B35 0%, #F7931E 25%, #FDC830 50%, #F7931E 75%, #FF6B35 100%);
    border-radius: 3px;
    background-size: 200% 100%;
    animation: gradientSlide 3s linear infinite;
}

@keyframes gradientSlide {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* Ingredient List */
.recipe-body-auto ul {
    padding-left: 0;
    list-style: none;
}

.recipe-body-auto ul li {
    padding: 18px 28px 18px 65px;
    margin-bottom: 14px;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.08) 0%, rgba(253, 200, 48, 0.08) 100%);
    border-radius: 16px;
    border-left: 5px solid;
    border-image: linear-gradient(180deg, #FF6B35, #FDC830) 1;
    font-size: 17px;
    line-height: 1.6;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 3px 10px rgba(255, 107, 53, 0.1);
}

.recipe-body-auto ul li:hover {
    transform: translateX(8px) scale(1.02);
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.15) 0%, rgba(253, 200, 48, 0.15) 100%);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.25);
}

.recipe-body-auto ul li::before {
    content: '✓';
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #FF6B35 0%, #FDC830 100%);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
    animation: checkPulse 2s ease-in-out infinite;
}

@keyframes checkPulse {
    0%, 100% { transform: translateY(-50%) scale(1); }
    50% { transform: translateY(-50%) scale(1.1); }
}

/* Instruction Steps */
.recipe-body-auto ol {
    counter-reset: step-counter;
    padding-left: 0;
    list-style: none;
}

.recipe-body-auto ol li {
    counter-increment: step-counter;
    padding: 20px 30px 20px 75px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
    border-radius: 18px;
    border-left: 5px solid;
    border-image: linear-gradient(180deg, #667eea, #764ba2) 1;
    font-size: 17px;
    line-height: 1.7;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 3px 12px rgba(102, 126, 234, 0.1);
}

.recipe-body-auto ol li:hover {
    transform: translateX(8px) scale(1.02);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
    box-shadow: 0 6px 22px rgba(102, 126, 234, 0.25);
}

.recipe-body-auto ol li::before {
    content: counter(step-counter);
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 5px 18px rgba(102, 126, 234, 0.5);
    animation: stepPulse 2s ease-in-out infinite;
}

@keyframes stepPulse {
    0%, 100% { 
        transform: translateY(-50%) scale(1); 
        box-shadow: 0 5px 18px rgba(102, 126, 234, 0.5); 
    }
    50% { 
        transform: translateY(-50%) scale(1.1); 
        box-shadow: 0 7px 25px rgba(102, 126, 234, 0.7); 
    }
}

/* Nutrition Table */
.nutrition-table-auto {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 30px 0;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.15);
}

.nutrition-table-auto th,
.nutrition-table-auto td {
    padding: 18px 24px;
    text-align: left;
    border-bottom: 2px solid rgba(255, 107, 53, 0.1);
}

.nutrition-table-auto th {
    background: linear-gradient(135deg, #FF6B35 0%, #FDC830 100%);
    color: white;
    font-weight: 800;
    font-size: 17px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nutrition-table-auto tbody tr {
    transition: all 0.3s ease;
    position: relative;
}

.nutrition-table-auto tbody tr::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #FF6B35, #FDC830);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nutrition-table-auto tbody tr:hover::after {
    opacity: 1;
}

.nutrition-table-auto tbody tr:hover {
    background: linear-gradient(90deg, rgba(255, 107, 53, 0.05) 0%, transparent 100%);
    transform: scale(1.02);
}

.nutrition-table-auto tr:last-child td {
    border-bottom: none;
}

/* Chef's Tip Box */
blockquote.chef-tip-auto {
    background: linear-gradient(135deg, #FFF9E6 0%, #FFE5CC 50%, #FFD699 100%);
    border-left: 8px solid #FF6B35;
    padding: 25px 30px;
    margin: 35px 0;
    border-radius: 16px;
    font-style: italic;
    color: #2d3748;
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.2);
    position: relative;
    overflow: hidden;
}

blockquote.chef-tip-auto::before {
    content: '💡';
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 120px;
    opacity: 0.1;
    animation: float 4s ease-in-out infinite;
}

blockquote.chef-tip-auto p {
    margin: 0;
    font-size: 17px;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

blockquote.chef-tip-auto strong {
    color: #FF6B35;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .recipe-card-auto {
        margin: 30px 15px;
        border-radius: 28px;
    }

    .recipe-header-auto {
        padding: 40px 30px 30px;
    }

    .recipe-header-auto h2 {
        font-size: 36px;
    }

    .recipe-body-auto {
        padding: 35px 28px;
    }

    .recipe-meta-auto {
        gap: 10px;
    }

    .recipe-meta-auto span {
        font-size: 13px;
        padding: 10px 16px;
    }

    .recipe-body-auto ul li,
    .recipe-body-auto ol li {
        padding-left: 60px;
    }

    .recipe-buttons-auto {
        flex-direction: column;
    }

    .recipe-buttons-auto a {
        width: 100%;
        justify-content: center;
    }

    .recipe-body-auto h3 {
        font-size: 28px;
    }
}

/* Print Styles */
@media print {
    .recipe-buttons-auto {
        display: none;
    }
    
    .recipe-card-auto {
        box-shadow: none;
        margin: 0;
    }
    
    .recipe-header-auto {
        background: #667eea !important;
        animation: none;
    }
}