/*
Theme Name: Madplan (Flatsome Child)
Theme URI: https://adtention.dk
Author: ADtention
Author URI: https://adtention.dk
Description: Child theme der tilføjer Madplan funktionalitet (AI madplan, opskrifter, importer) ovenpå Flatsome parent theme.
Tags: ecommerce, recipes, ai, child-theme
Version: 0.1.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Template: flatsome
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: madplan
*/

/* ========================================
   Enhanced Shopping List Styles
======================================== */
.enhanced-shopping {
    background: linear-gradient(135deg, #f8fffe 0%, #f0f9f7 100%);
    border-radius: 12px;
    padding: 24px;
    margin: 20px 0;
    border: 1px solid #e1f5f0;
    box-shadow: 0 4px 20px rgba(46, 174, 125, 0.08);
}

.enhanced-shopping h3 {
    color: #2eae7d;
    margin-bottom: 20px;
    font-size: 1.4em;
    font-weight: 700;
}
.recipe-card-title-link{
    color:#1d3023;
}

.shopping-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 24px;
    border-left: 4px solid #2eae7d;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.price-info {
    display: flex;
    gap: 16px;
    align-items: center;
}

.savings {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 600;
    animation: pulse 2s infinite;
}

.department-count {
    color: #666;
    font-size: 0.9em;
    background: #f1f5f9;
    padding: 6px 12px;
    border-radius: 16px;
}

.shopping-department {
    margin-bottom: 24px;
    background: white;
    border-radius: 10px;
    overflow: hidden;
}

.shopping-department h4 {
    background: linear-gradient(90deg, #2eae7d, #1d8a5f);
    color: white;
    margin: 0;
    padding: 12px 20px;
    font-size: 1.1em;
    font-weight: 600;
    border-bottom: 2px solid rgba(255,255,255,0.2);
}

.shopping-items {
    list-style: none;
    margin: 0;
    padding: 0;
}

.shopping-item {
    padding: 16px 20px;
    border-bottom: 1px solid #f0f7f4;
    transition: background-color 0.2s ease;
}

.shopping-item:hover {
    background-color: #fafcfb;
}

.shopping-item.has-offer {
    background: linear-gradient(90deg, #fff5f5, #ffffff);
    border-left: 4px solid #ff6b6b;
}

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

.item-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.item-name {
    font-weight: 600;
    color: #1d4037;
    flex: 1;
    margin-right: 12px;
}

.item-quantity {
    background: #e8f4f0;
    color: #2eae7d;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 600;
    margin-right: 12px;
}

.item-price {
    font-weight: 700;
    color: #1d4037;
    font-size: 1.05em;
    margin-right: 12px;
}

.offer-badge {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: pulse 2s infinite;
}

.offer-text {
    color: #e74c3c;
    font-size: 0.85em;
    font-weight: 600;
    margin-bottom: 4px;
}

.alternatives-info {
    background: #f8f9fa;
    color: #666;
    padding: 3px 8px;
    border-radius: 8px;
    font-size: 0.8em;
    margin-right: 8px;
}
.is-uppercase, .uppercase{
    text-transform: none !important;
}
.accordion-title{
    border-top:0px;
}
.hero-features .feature{
zoom:0.8;
}
.accordion-title.active{
    background-color:transparent;
}
.hero-banner-section .section-bg-overlay{
    background: linear-gradient(to right, 
        hsla(120, 15%, 98%, 0.95) 0%,
        hsla(120, 15%, 98%, 0.7) 50%,
        hsla(120, 15%, 98%, 0.3) 100%);
    background-color:transparent !important;
}
.accordion-item{
        background-color: #fff;
    border-radius: 10px;
    border-top: 0px;
    border: 1px solid #dce5dc;
    margin-bottom: 10px;
    padding-top: 10px;
    padding-bottom: 10px;
    color: #20201f;
    font-weight: 700;
}
.short-recipe-facts-wrapper{
    padding-top:10px !important;
    padding-bottom:10px !important;
}
.short-recipe-fact{
    justify-content: center;
}
.item-meta {
    color: #7f8c8d;
    font-size: 0.8em;
    font-style: italic;
}
/* Remove padding from col-inner and elements */
.remove-padding-bottom, .remove-padding-bottom > .col-inner{
    padding-bottom:0px !important;
}
.remove-padding-top, .remove-padding-top > .col-inner{
    padding-top:0px !important;
}
.remove-padding-left, .remove-padding-left > .col-inner{
    padding-left:0px !important;
}
.remove-padding-right, .remove-padding-right > .col-inner{
    padding-right:0px !important;
}
.legacy-recipe-card > .col-inner{overflow:hidden;}

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

/* Mobile responsive */
@media (max-width: 768px) {
    .shopping-summary {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .price-info {
        flex-direction: column;
        gap: 8px;
    }
    
    .item-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .item-quantity, .item-price {
        margin-right: 0;
    }
}

/* ========================================
   Yoast SEO Breadcrumbs Styling
======================================== */
#breadcrumbs {
    font-size: 12px;
    margin: 10px 0;
    padding: 0 20px;
}

#breadcrumbs a {
    color: #666;
    text-decoration: none;
}

#breadcrumbs a:hover {
    color: #2eae7d;
}

/* ========================================
   Ingredient Groups Styles
======================================== */
.ingredient-group {
    margin-bottom: 1.5rem;
}

.ingredient-group-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2eae7d;
    margin: 0 0 0.75rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e8f5e8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ingredient-group:last-child {
    margin-bottom: 0;
}

/* ========================================
   Enhanced Nutrition Styles
======================================== */
.nutrition-macros {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1rem 0;
}

.nutrition-score {
    background: linear-gradient(135deg, #e8f5e8 0%, #f0f8f0 100%);
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    border-left: 4px solid #2eae7d;
}

.nutrition-tags {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e5e5;
}

.nutrition-tags-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #666;
    margin-bottom: 0.5rem;
    display: block;
}

.nutrition-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.nutrition-tag {
    background: #2eae7d;
    color: white;
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-weight: 500;
}

.no-nutrition-data {
    color: #666;
    font-style: italic;
    text-align: center;
    padding: 1rem;
}

@media (max-width: 768px) {
    .nutrition-macros {
        grid-template-columns: 1fr;
    }
}