/* ============================================
   CORDIAL RECIPES - FRONTEND STYLES
   Version: 1.0.14 - Added vitamins/minerals sections to nutrition facts
   Author: CordialTec
   License: GPL2
   
   Clean, minimal styling matching original shortcode behavior
============================================ */

/* ============================================
   EQUIPMENT SHORTCODE STYLES
============================================ */
.cordial-equipments-container {
    margin: 20px 0;
}

.cordial-equipments-grid {
    display: grid;
    align-items: center;
    justify-items: center;
}

.cordial-equipment-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.cordial-equipment-image {
    border-radius: 8px;
    object-fit: cover;
}

.cordial-equipment-name {
    margin-top: 8px;
    font-size: 0.9rem;
    color: #333;
    text-align: center;
}

@media (max-width: 768px) {
    .cordial-equipment-image {
        /* Mobile size controlled via shortcode parameter */
    }
}

/* ============================================
   PRINT BUTTON STYLES
============================================ */
.cordial-recipe-print-button {
    background-color: #ff6600;
    border-radius: 10px;
    padding: 8px;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.cordial-recipe-print-button:hover {
    background-color: #e55a00;
    text-decoration: none;
}

.cordial-recipe-print-button svg {
    flex-shrink: 0;
}

.cordial-recipe-print-button span {
    color: #ffffff;
    font-weight: bold;
}

/* ============================================
   ENHANCED RECIPE NOTES STYLES
============================================ */
.cordial-notes-parent {
    width: 90%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-family: Arial, sans-serif;
    margin: 20px auto;
}

.cordial-notes-header {
    background-color: #fff0e6;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cordial-notes-header h3 {
    margin: 0;
    color: #1f1f1f;
    font-weight: 600;
}

.cordial-notes-content {
    padding: 20px;
    background-color: white;
}

.cordial-notes-content p {
    margin: 0;
    line-height: 1.5;
    color: #333;
}

/* ============================================
   NEW PARENT TAXONOMIES SHORTCODE STYLES
   Multiple styles: default, iconed, iconed-count, imaged, imaged-count, imaged_recipe_count
   UPDATED: Added food-type taxonomy
============================================ */

/* Base parent taxonomies container */
.cordial-recipe-parent-taxonomies {
    margin: 20px 0;
}

/* Default style (plain text) */
.cordial-style-default.cordial-parent-horizontal {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.cordial-style-default.cordial-parent-vertical {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
}

.cordial-parent-taxonomy-item {
    margin: 5px 0;
}

.cordial-parent-taxonomy-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.cordial-parent-taxonomy-link:hover {
    background-color: #f0f0f0;
    color: #333;
    text-decoration: none;
}

.cordial-parent-taxonomy-name {
    font-size: 1rem;
}

/* Iconed Styles */
.cordial-taxonomy-iconed-parent {
    border-radius: 15px;
    display: flex;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    gap: 12px;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    min-width: 200px;
}

.cordial-taxonomy-iconed-parent:hover {
    text-decoration: none;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cordial-taxonomy-iconed-icon {
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.cordial-taxonomy-iconed-icon svg {
    width: 100%;
    height: 100%;
}

.cordial-taxonomy-iconed-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.cordial-taxonomy-iconed-title {
    font-weight: 600;
    font-size: 16px;
    color: inherit;
}

.cordial-taxonomy-iconed-count {
    background-color: rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 50%;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 500;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Enhanced Imaged Styles with new parameters - FIXED: Removed margin between content and count */
.cordial-taxonomy-style-parent {
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    min-width: 280px;
    max-width: 350px;
    padding: 20px;
    align-items: center;
    text-align: center;
}

.cordial-taxonomy-style-parent:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: inherit;
}

.cordial-taxonomy-style-content {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 0; /* FIXED: Removed margin between content and count */
    width: 100%;
    justify-content: center;
}

.cordial-taxonomy-style-image {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cordial-taxonomy-style-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.cordial-taxonomy-style-title {
    font-weight: bold;
    font-size: 18px;
    color: #333;
    text-align: left;
    flex: 1;
}

.cordial-taxonomy-style-count {
    border-radius: 50%;
    background-color: #f0f0f0;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #666;
    border: 2px solid #ddd;
    font-size: 14px;
    margin-top: 0; /* FIXED: Removed margin */
}

.cordial-taxonomy-style-recipe-count {
    font-size: 14px;
    color: #666;
    text-align: center;
    margin-top: 0; /* FIXED: Removed margin */
}

/* NEW: Parent Taxonomy Card Styles for Archive Pages - UPDATED: Added food-type */
.cordial-parent-taxonomy-card {
    border-radius: 15px;
    border-top: 5px solid #ddd;
    border-left: 10px solid #ddd;
    padding: 15px;
    display: inline-block;
    font-family: Arial, sans-serif;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    width: 100%;
    box-sizing: border-box;
}

.cordial-parent-taxonomy-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    text-decoration: none;
    color: inherit;
}

.cordial-parent-taxonomy-card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.cordial-parent-taxonomy-card-image {
    width: 60px;
    height: 60px;
    display: inline-block;
    object-fit: contain;
    border: 3px solid #ddd;
    border-radius: 8px;
    padding: 5px;
    background: white;
}

.cordial-parent-taxonomy-card-name {
    display: inline-block;
    margin: 0;
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.cordial-recipe-count {
    display: block;
    text-align: center;
    font-size: 14px;
    color: #666;
}

/* ============================================
   NEW ROBUST TAXONOMIES SHORTCODE STYLES
   Clean, minimal styling - no boxes, borders, or shadows
   UPDATED: Added food-type taxonomy
============================================ */

/* Base taxonomies container */
.cordial-recipe-taxonomies {
    margin: 15px 0;
}

/* Term items - completely clean styling */
.cordial-term-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Term links - clean and simple */
.cordial-term-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cordial-term-link:hover {
    text-decoration: none;
}

/* Term content - simple layout */
.cordial-term-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

/* Term images - clean display */
.cordial-term-image {
    border-radius: 4px;
    object-fit: contain;
}

/* Term names - minimal styling */
.cordial-term-name {
    font-size: 0.8rem;
    color: #333;
    text-align: center;
    margin: 0;
    line-height: 1.2;
}

/* Tooltip styles */
.cordial-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 1000;
}

.cordial-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.8);
}

.cordial-term-item:hover .cordial-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-12px);
}

/* ============================================
   PARENT TAXONOMIES STYLES - UPDATED: Added food-type
============================================ */

.cordial-query-parent-taxonomies .cordial-taxonomy-item {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cordial-query-parent-taxonomies .cordial-taxonomy-link {
    text-decoration: none;
    color: inherit;
}

.cordial-query-parent-taxonomies .cordial-taxonomy-content {
    display: flex;
    align-items: center;
    gap: 5px;
}

.cordial-query-parent-taxonomies .cordial-taxonomy-name {
    font-weight: 500;
    color: #2c3e50;
}

.cordial-query-parent-taxonomies .cordial-taxonomy-count {
    font-size: 0.8rem;
    color: #666;
}

/* ============================================
   COOKING METHODS STYLES
============================================ */

.cordial-cooking-methods-title {
    margin: 0 0 10px 0;
    color: #2c3e50;
}

.cordial-cooking-methods {
    display: inline-block;
    font-style: italic;
    color: #666;
}

/* ============================================
   SERVING INFORMATION SHORTCODES - FIXED
   Separate elements for proper responsive control
============================================ */

.cordial-single-serving,
.cordial-calories,
.cordial-best-season {
    display: inline-block;
    margin-right: 15px;
    font-size: 0.9rem;
}

/* Label visibility control */
.cordial-desktop-label-hide .cordial-label,
.cordial-mobile-label-hide .cordial-label {
    display: none;
}

.cordial-desktop-label-show .cordial-label,
.cordial-mobile-label-show .cordial-label {
    display: inline;
}

/* Unit (per serving) visibility control */
.cordial-desktop-label-hide .cordial-unit,
.cordial-mobile-label-hide .cordial-unit {
    display: none;
}

.cordial-desktop-label-show .cordial-unit,
.cordial-mobile-label-show .cordial-unit {
    display: inline;
}

/* ============================================
   RESPONSIVE DESIGN
============================================ */

@media (max-width: 768px) {
    /* Mobile label behavior */
    .cordial-mobile-label-hide .cordial-label,
    .cordial-mobile-label-hide .cordial-unit {
        display: none;
    }
    
    .cordial-mobile-label-show .cordial-label,
    .cordial-mobile-label-show .cordial-unit {
        display: inline;
    }
    
    /* Stack serving information on mobile */
    .cordial-single-serving,
    .cordial-calories,
    .cordial-best-season {
        display: block;
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    /* Equipment grid mobile adjustments */
    .cordial-equipments-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    /*Notes Mobile Header Size*/
    .cordial-notes-header h3 {
        font-size: 18px !important;
    }
    
    /* Adjust term display for mobile */
    .cordial-recipe-taxonomies.cordial-orientation-horizontal {
        justify-content: center;
    }
    
    .cordial-term-name {
        font-size: 0.7rem;
    }
    
    /* Cooking methods mobile */
    .cordial-cooking-methods {
        display: block;
        margin-top: 5px;
    }
    
    /* Parent taxonomies mobile */
    .cordial-style-default.cordial-parent-horizontal {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cordial-taxonomy-iconed-parent {
        min-width: 100%;
        justify-content: flex-start;
    }
    
    .cordial-taxonomy-style-parent {
        min-width: 94% !important;
        max-width: 94% !important;
        margin: 0 auto !important;
    }
    
    /* Recipe cards mobile width */
    .cordial-recipe-card {
        width: 94% !important;
        margin: 0 auto !important;
    }
    
    /* Parent taxonomy cards mobile */
    .cordial-parent-taxonomy-card {
        margin-bottom: 15px;
        width: 94% !important;
        margin: 0 auto 15px auto !important;
    }
    
    /* Inline nutrition facts mobile width - FIXED: 85% width on tablet and mobile */
    .cordial-nutrition-wrapper[data-format="inline"] {
        width: 85% !important;
        margin: 0 auto !important;
    }
}

/* Desktop-specific styles */
@media (min-width: 769px) {
    .cordial-desktop-label-hide .cordial-label,
    .cordial-desktop-label-hide .cordial-unit {
        display: none;
    }
    
    .cordial-desktop-label-show .cordial-label,
    .cordial-desktop-label-show .cordial-unit {
        display: inline;
    }
}

/* Tablet-specific styles */
@media (max-width: 1024px) and (min-width: 769px) {
    .cordial-nutrition-wrapper[data-format="inline"] {
        width: 85% !important;
        margin: 0 auto !important;
    }
}

/* ============================================
   EXISTING STYLES (with fixes)
============================================ */

/* Enhanced Ingredients Shortcode Styles - NEW: Added parameters for image control */
.cordial-ingredients-list { 
    list-style: none; 
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1px; /* NEW: Controlled gap between items */
}

.cordial-ingredient-item { 
    display: flex; 
    align-items: center; 
    padding: 10px;
    background: transparent; /* NEW: No background */
}

.cordial-ingredient-image { 
    object-fit: cover; /* NEW: Controlled via parameter */
    border-radius: 4px; /* NEW: Controlled via parameter */
    margin-right: 15px; 
}

.cordial-ingredient-description {
    display: flex;
    align-items: center;
    gap: 1px; /* FIXED: Reduced from 8px to 1px */
}

.cordial-ingredient-status { 
    font-style: italic; 
    color: #666; 
    margin-left: 1px; /* FIXED: Reduced gap */
}

/* Instructions Shortcode Styles - FIXED: Orange numbers */
.cordial-instructions-list { 
    list-style: none; 
    padding: 0; 
}

.cordial-instruction-item { 
    margin-bottom: 20px; 
}

.cordial-instruction-step { 
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.cordial-instruction-number {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    min-height: 30px;
    background: #FF692A; /* CHANGED: Orange background */
    color: white;
    border-radius: 50%;
    font-weight: bold;
    flex-shrink: 0;
}

.cordial-instruction-text {
    flex: 1;
}

/* Recipe Information/Servings Styles */
.cordial-info-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
    gap: 15px; 
    margin-top: 10px; 
}

.cordial-info-item { 
    padding: 10px; 
    background: #f8f9fa; 
    border-radius: 4px; 
}

/* Toppings Shortcode Styles */
.cordial-toppings-list { 
    list-style: none; 
    padding: 0; 
}

.cordial-topping-item { 
    display: flex; 
    align-items: center; 
    margin-bottom: 10px; 
    padding: 10px; 
    background: #f8f9fa; 
    border-radius: 4px; 
}

.cordial-topping-image { 
    width: 40px; 
    height: 40px; 
    object-fit: cover; 
    border-radius: 4px; 
    margin-right: 15px; 
}

.cordial-topping-status { 
    font-style: italic; 
    color: #666; 
    margin-left: 8px; 
}

/* Badge Styles - FIXED: White text on hover */
.badge {
    position: absolute;
    top: 10px;
    right: 0;
    color: white !important; /* FORCE white text */
    padding: 8px 15px;
    border-radius: 25px 0 0 25px;
    font-weight: bold;
    font-size: 12px;
    z-index: 2;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.badge:hover {
    opacity: 0.9;
    color: white !important; /* FORCE white text on hover */
    text-decoration: none;
}

/* Recipe Key Icons Container - FIXED: Ensure visibility */
.cordial-recipe-keys-container {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3; /* Higher z-index to appear above post content */
}

.cordial-recipe-keys-image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid white; /* REDUCED: From 3px to 1px */
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    object-fit: cover;
    background: white; /* Ensure background for visibility */
    display: block;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.cordial-recipe-keys-image:hover {
    transform: scale(1.1);
}

/* Tooltip for recipe key images */
.cordial-recipe-key-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 1000;
}

.cordial-recipe-key-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.8);
}

.cordial-recipe-keys-image:hover .cordial-recipe-key-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-12px);
}

/* Nutrition Facts Styles - FIXED: Full width and proper inline display */
.cordial-nutrition-facts {
    width: 100% !important;
    border: 2px solid black !important;
    padding: 0.5rem !important;
    background: white !important;
    margin: 20px auto !important;
    font-family: Arial, sans-serif !important;
    box-sizing: border-box !important;
    max-width: 100% !important;
}

.cordial-nutrition-facts .nutrition-facts-header {
    border-bottom: 10px solid black !important;
    padding-bottom: 5px !important;
    margin-bottom: 5px !important;
}

.cordial-nutrition-facts .nutrition-facts-header h1 {
    font-size: 24px !important;
    font-weight: bold !important;
    line-height: 1 !important;
    margin: 0 !important;
}

.cordial-nutrition-facts .serving-size {
    border-bottom: 1px solid black !important;
    padding: 5px 0 !important;
    font-size: 12px !important;
}

.cordial-nutrition-facts .amount-per-serving {
    padding: 5px 0 !important;
    font-size: 15px !important;
    font-weight: bold !important;
}

.cordial-nutrition-facts .calories-section {
    border-bottom: 5px solid black !important;
    padding: 5px 0 !important;
    font-size: 24px !important;
    font-weight: bold !important;
    display: flex !important;
    justify-content: space-between !important;
}

.cordial-nutrition-facts .daily-value-heading {
    font-size: 10px !important;
    font-style: italic !important;
    text-align: right !important;
    padding: 5px 0 !important;
    border-bottom: 1px solid black !important;
}

.cordial-nutrition-facts .nutrients-section {
    width: 100% !important;
    border-bottom: 5px solid black !important;
    font-size: 12px !important;
}

.cordial-nutrition-facts .nutrient-row {
    display: flex !important;
    justify-content: space-between !important;
    padding: 2px 0 !important;
    border-bottom: 1px solid black !important;
}

.cordial-nutrition-facts .nutrient-row.indented {
    padding-left: 15px !important;
}

.cordial-nutrition-facts .footnote {
    font-size: 10px !important;
    padding-top: 5px !important;
    line-height: 1.2 !important;
}

/* Additional nutrients section */
.cordial-nutrition-facts .additional-nutrients {
    border-top: 1px solid black !important;
    padding-top: 5px !important;
    margin-top: 5px !important;
}

.cordial-nutrition-facts .additional-nutrients-title {
    font-size: 10px !important;
    font-weight: bold !important;
    margin-bottom: 5px !important;
}

.cordial-nutrition-facts .additional-nutrient-row {
    display: flex !important;
    justify-content: space-between !important;
    font-size: 10px !important;
    padding: 1px 0 !important;
}

/* Inline Nutrition Label Styles - FIXED: Proper toggle position, responsive width, centered title, and SVG icons */
.cordial-nutrition-wrapper[data-format="inline"] {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto;
    box-sizing: border-box;
}

.cordial-nutrition-wrapper[data-format="inline"] .nutrition-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
    flex-direction: row;
}

/* FIXED: Centered title and proper toggle positioning */
.cordial-nutrition-wrapper[data-format="inline"] .nutrition-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    order: 1;
    text-align: center; /* FIXED: Centered title */
    flex: 1; /* FIXED: Take available space */
}

.cordial-nutrition-wrapper[data-format="inline"] .toggle-button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: #3498db;
    transition: color 0.3s ease;
    padding: 5px;
    order: 2; /* FIXED: Toggle on right side */
    display: flex;
    align-items: center;
    justify-content: center;
}

.cordial-nutrition-wrapper[data-format="inline"] .toggle-button:hover {
    color: #2980b9;
}

/* FIXED: Nutrition toggle icons styling */
.cordial-nutrition-toggle-icons {
    width: 24px;
    height: 24px;
    fill: #ff6600; /* FIXED: Orange color */
}

.cordial-nutrition-wrapper[data-format="inline"] .nutrition-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.cordial-nutrition-wrapper[data-format="inline"] .nutrition-item {
    text-decoration: underline;
    padding: 5px 0;
    color: #2c3e50;
    white-space: nowrap;
}

.cordial-nutrition-wrapper[data-format="inline"].collapsed .nutrition-item.first-line {
    display: block;
}

.cordial-nutrition-wrapper[data-format="inline"].collapsed .nutrition-item:not(.first-line) {
    display: none;
}

.cordial-nutrition-wrapper[data-format="inline"]:not(.collapsed) .nutrition-item {
    display: block;
}

/* NEW: Vitamins and Minerals Sections for Frontend */
.cordial-recipes-vitamins-section,
.cordial-recipes-minerals-section {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.cordial-recipes-vitamins-section .nutrition-section-header,
.cordial-recipes-minerals-section .nutrition-section-header {
    font-weight: bold;
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid #ddd;
}

.cordial-recipes-vitamins-section .nutrition-vitamins-list,
.cordial-recipes-minerals-section .nutrition-minerals-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cordial-recipes-vitamins-section .nutrition-item,
.cordial-recipes-minerals-section .nutrition-item {
    background: white;
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    text-decoration: none;
}

/* Recipe Notes & Enhanced Hashtags */
.cordial-recipe-notes {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 4px;
}

.cordial-recipe-hashtags {
    margin: 20px 0;
}

.cordial-hashtags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.cordial-hashtag {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.9rem;
    gap: 5px;
}

.cordial-hashtag:hover {
    background: #2980b9;
    color: white;
}

.cordial-hashtag-image {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
}

/* Difficulty Shortcode Styles */
.cordial-recipe-difficulty {
    font-weight: bold;
    text-transform: capitalize;
}

/* Recipe Card Base Styles */
.cordial-recipe-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
    width: 100%; /* Ensure proper width */
}

.cordial-recipe-card:hover {
    transform: translateY(-5px);
}

/* Featured Image Wrapper - FIXED: Removed overflow: hidden */
.featured-image-wrapper {
    position: relative;
    height: 200px;
    background: #f0f0f0;
    /* REMOVED: overflow: hidden - This was clipping the recipe key images */
}

.featured-image-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.cordial-recipe-card:hover .featured-image {
    transform: scale(1.05);
}

/* Recipe Meta Styles */
.recipe-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.meta-span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #666;
}

.meta-icon {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.meta-icon svg {
    width: 100%;
    height: 100%;
}

/* Post Content Wrapper */
.post-content-wrapper {
    padding: 35px 15px 15px 15px;
    text-align: center;
    position: relative;
    z-index: 2; /* Lower z-index than recipe key images */
}

.post-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 12px;
    color: #333;
    line-height: 1.3;
}

.post-title a {
    color: inherit;
    text-decoration: none;
}

.post-title a:hover {
    color: #FF692A;
}

/* Mobile responsive for new ingredients parameters */
@media (max-width: 768px) {
    .cordial-nutrition-wrapper[data-format="inline"] .nutrition-title {
        font-size: 1.0625rem !important;
    }
    
    /* Vitamins and Minerals Mobile */
    .cordial-recipes-vitamins-section,
    .cordial-recipes-minerals-section {
        margin-top: 10px;
        padding: 10px;
    }
    
    .cordial-recipes-vitamins-section .nutrition-section-header,
    .cordial-recipes-minerals-section .nutrition-section-header {
        font-size: 1.1rem;
    }
    
    .cordial-recipes-vitamins-section .nutrition-vitamins-list,
    .cordial-recipes-minerals-section .nutrition-minerals-list {
        flex-direction: column;
        gap: 5px;
    }
    
    /* NEW: Mobile image size control for ingredients */
    .cordial-ingredient-image {
        /* Mobile size will be controlled via the mobile_image_size parameter */
    }
}