/**
 * FoodJot Ultimate Engine — Master Luxury Styling
 *
 * Designed to provide a 5-star culinary experience with instant grocery checkout.
 */

/* 1. Sovereign Recipe Card Container */
.fjue-recipe-card-container {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
    margin: 40px auto;
    max-width: 820px;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #1f2937;
    line-height: 1.6;
}

/* 2. Card Header & Quick Meta */
.fjue-card-header {
    background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
    color: #ffffff;
    padding: 30px;
    position: relative;
}

.fjue-header-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    color: #d1fae5;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.fjue-recipe-title {
    color: #ffffff !important;
    font-size: 1.85rem !important;
    font-weight: 800 !important;
    margin: 0 0 16px 0 !important;
    line-height: 1.25 !important;
}

.fjue-recipe-quick-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.9rem;
    color: #e5e7eb;
    margin-bottom: 20px;
}

.fjue-meta-item strong {
    color: #f3f4f6;
}

.fjue-card-actions-top {
    display: flex;
    gap: 12px;
}

.fjue-save-card-btn,
.fjue-print-card-btn {
    background: #ffffff;
    color: #111827;
    border: none;
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.fjue-save-card-btn:hover {
    background: #fee2e2;
    color: #b91c1c;
    transform: translateY(-1px);
}

.fjue-save-card-btn.saved {
    background: #dc2626;
    color: #ffffff;
}

.fjue-print-card-btn:hover {
    background: #f3f4f6;
    transform: translateY(-1px);
}

/* 3. Hero Image */
.fjue-card-hero-image img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
}

/* 4. The Big 3 Instant Delivery Bar */
.fjue-instant-cart-bar {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 20px 30px;
}

.fjue-cart-bar-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: #374151;
    margin-bottom: 14px;
}

.fjue-blink-dot {
    width: 10px;
    height: 10px;
    background: #10b981;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3);
    animation: fjue-pulse 2s infinite;
}

@keyframes fjue-pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.fjue-cart-buttons-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.fjue-cart-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    border-radius: 10px;
    text-decoration: none !important;
    font-size: 0.9rem;
    font-weight: 600;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    color: #ffffff !important;
    text-align: center;
    gap: 6px;
}

.fjue-cart-btn span {
    font-weight: 400;
    font-size: 0.78rem;
    opacity: 0.9;
}

.fjue-btn-insta {
    background: #008940;
    box-shadow: 0 2px 4px rgba(0, 137, 64, 0.2);
}

.fjue-btn-insta:hover {
    background: #007033;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 137, 64, 0.3);
}

.fjue-btn-walm {
    background: #0071dc;
    box-shadow: 0 2px 4px rgba(0, 113, 220, 0.2);
}

.fjue-btn-walm:hover {
    background: #005bb5;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 113, 220, 0.3);
}

.fjue-btn-targ {
    background: #cc0000;
    box-shadow: 0 2px 4px rgba(204, 0, 0, 0.2);
}

.fjue-btn-targ:hover {
    background: #a30000;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(204, 0, 0, 0.3);
}

/* 5. Sections */
.fjue-section {
    padding: 24px 30px;
    border-bottom: 1px solid #f3f4f6;
}

.fjue-section-title {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: #111827 !important;
    margin: 0 0 18px 0 !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 6. Ingredients List */
.fjue-ingredients-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.fjue-ingredient-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed #e5e7eb;
}

.fjue-ingredient-item:last-child {
    border-bottom: none;
}

.fjue-ingredient-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.95rem;
    user-select: none;
    gap: 10px;
}

.fjue-ingredient-checkbox input {
    margin: 0;
    width: 18px;
    height: 18px;
    accent-color: #10b981;
    cursor: pointer;
}

.fjue-ing-amount {
    font-weight: 700;
    color: #111827;
}

.fjue-ing-name {
    color: #374151;
}

.fjue-micro-links a {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    background: #f3f4f6;
    text-decoration: none;
    margin-left: 4px;
    font-size: 0.85rem;
    transition: background 0.15s;
}

.fjue-micro-links a:hover {
    background: #e5e7eb;
}

/* 7. Equipment Grid (Hunter Integration) */
.fjue-equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.fjue-equipment-box {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fjue-gear-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: #92400e;
}

.fjue-amazon-pill {
    background: #ff9900;
    color: #111827 !important;
    font-weight: 700;
    font-size: 0.78rem;
    padding: 6px 12px;
    border-radius: 20px;
    text-align: center;
    text-decoration: none !important;
    align-self: flex-start;
    transition: background 0.2s;
}

.fjue-amazon-pill:hover {
    background: #e68a00;
}

/* 8. Instructions List */
.fjue-instructions-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.fjue-instruction-step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.fjue-step-num {
    background: #111827;
    color: #ffffff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 2px;
}

.fjue-step-content {
    font-size: 0.95rem;
    color: #374151;
}

/* 9. Card Footer */
.fjue-card-footer {
    background: #f9fafb;
    padding: 16px 30px;
    font-size: 0.8rem;
    color: #6b7280;
}

.fjue-card-footer em {
    display: block;
}

/* 10. WPRM Overlay Styles (When injected inside WP Recipe Maker) */
.fjue-recipe-retailer-bar {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    padding: 14px 18px;
    margin: 18px 0;
}

.fjue-bar-header {
    font-weight: 700;
    font-size: 0.92rem;
    color: #166534;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.fjue-bar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.fjue-store-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 0.85rem;
    transition: opacity 0.2s ease;
}

.fjue-store-btn:hover {
    opacity: 0.9;
}

.fjue-store-btn.fjue-instacart { background: #008940; }
.fjue-store-btn.fjue-walmart   { background: #0071dc; }
.fjue-store-btn.fjue-target    { background: #cc0000; }

.fjue-subtext {
    font-size: 0.75rem;
    font-weight: 400;
    opacity: 0.85;
}

.fjue-amazon-badge {
    display: inline-block;
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #ffedd5;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 6px;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .fjue-card-header { padding: 20px; }
    .fjue-recipe-title { font-size: 1.4rem !important; }
    .fjue-section { padding: 18px 20px; }
    .fjue-cart-buttons-row { grid-template-columns: 1fr; }
    .fjue-bar-actions { flex-direction: column; }
}
