/**
 * Gourmand Recipe Card Styles
 *
 * Combined styles for all recipe card templates.
 * Includes: base styles, classic template, modern template, compact template
 */

/* ==========================================================================
   BASE STYLES
   All templates inherit these foundational styles
   ========================================================================== */

/* Reset and base styles */
.gourmand-recipe-card {
    margin: 0;
    font-family: var(--font-body);
    line-height: var(--leading-body-normal);
    color: var(--color-body);
    background: #fff;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    box-sizing: border-box;
    width: 100%;
}

.gourmand-recipe-card * {
    box-sizing: border-box;
}

/* Typography */
.gourmand-recipe-card h2,
.gourmand-recipe-card h3,
.gourmand-recipe-card h4 {
    font-family: var(--font-heading);
    font-weight: var(--weight-semibold);
    line-height: var(--leading-heading-normal);
    margin: 0 0 1rem 0;
}

.gourmand-recipe-title {
    font-family: var(--font-heading);
    font-size: var(--heading-l);
    font-weight: var(--weight-bold);
    line-height: var(--leading-heading-tight);
    color: var(--color-heading);
    margin-bottom: 0.5rem;
}

.gourmand-recipe-card h3 {
    font-size: var(--heading-m);
    color: var(--color-heading);
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.gourmand-recipe-card h4 {
    font-size: var(--heading-s);
    color: var(--color-heading);
}

.gourmand-recipe-card p {
    margin: 0;
}

/* Images */
.gourmand-recipe-image img,
.gourmand-recipe-card img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

/* Lists */
.gourmand-recipe-card ul,
.gourmand-recipe-card ol {
    margin: 0;
    padding-left: 1.5rem;
}

.gourmand-recipe-card li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

/* Groups */
.gourmand-ingredient-group,
.gourmand-instruction-group {
    font-family: var(--font-body);
    font-weight: var(--weight-semibold);
    color: #2980b9;
    margin: 1rem 0 0.5rem 0;
    padding: 0.5rem 0;
    border-top: 1px solid #ecf0f1;
}

.gourmand-ingredient-group:first-child,
.gourmand-instruction-group:first-child {
    border-top: none;
    margin-top: 0;
}

/* Responsive design */
@media (max-width: 768px) {
    .gourmand-recipe-card {
        margin: 1rem 0;
        border-radius: 4px;
    }
}

@media (max-width: 480px) {
    .gourmand-recipe-card {
        margin: 0.5rem 0;
        border-radius: 0;
    }
}

/* Print styles */
@media print {
    .gourmand-recipe-card {
        box-shadow: none;
        border: 1px solid #ddd;
        break-inside: avoid;
        margin: 0;
    }

    .gourmand-recipe-card h2,
    .gourmand-recipe-card h3 {
        break-after: avoid;
    }
}


/* ==========================================================================
   CLASSIC TEMPLATE
   ========================================================================== */

.gourmand-classic-template {
    border: 1px solid #e1e8ed;
    padding: 2rem;
}

.gourmand-classic-template .gourmand-recipe-header {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e0e0e0;
}

.gourmand-classic-template .gourmand-recipe-image {
    aspect-ratio: 1/1;
    overflow: hidden;
}

.gourmand-classic-template .gourmand-recipe-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gourmand-classic-template .gourmand-recipe-header-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.gourmand-classic-template .gourmand-recipe-title {
    text-align: left;
    margin-bottom: 0.5rem;
}

.gourmand-classic-template .gourmand-recipe-cuisine {
    font-family: var(--font-meta);
    font-size: var(--meta-s);
    font-weight: var(--weight-medium);
    letter-spacing: var(--tracking-nav);
    text-transform: uppercase;
    color: var(--color-meta);
    margin-bottom: 1rem;
}

.gourmand-classic-template .gourmand-recipe-description {
    font-family: var(--font-body);
    font-size: var(--body-m);
    line-height: var(--leading-body-normal);
    color: var(--color-body);
    margin: 0;
    text-align: left;
}

.gourmand-classic-template .gourmand-recipe-meta {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1.2rem;
}

.gourmand-classic-template .gourmand-recipe-times {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    align-items: center;
}

.gourmand-classic-template .gourmand-time-item,
.gourmand-classic-template .gourmand-servings-item {
    text-align: center;
}

.gourmand-classic-template .gourmand-time-label,
.gourmand-classic-template .gourmand-servings-label {
    display: block;
    font-family: var(--font-meta);
    font-size: var(--meta-s);
    font-weight: var(--weight-medium);
    letter-spacing: var(--tracking-nav);
    text-transform: uppercase;
    color: var(--color-meta);
    margin-bottom: 0.25rem;
}

.gourmand-classic-template .gourmand-time-value,
.gourmand-classic-template .gourmand-servings-value {
    display: block;
    font-family: var(--font-meta);
    font-size: var(--meta-m);
    font-weight: var(--weight-bold);
    letter-spacing: var(--tracking-meta);
    text-transform: uppercase;
    color: var(--color-heading);
}

.gourmand-classic-template .gourmand-recipe-card-content {
    display: grid;
    gap: 2rem;
}

.gourmand-classic-template .gourmand-recipe-card-main {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 2rem;
    align-items: start;
}

.gourmand-classic-template .gourmand-recipe-card-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.gourmand-classic-template .gourmand-ingredients-list,
.gourmand-classic-template .gourmand-instructions-list,
.gourmand-classic-template .gourmand-equipment-list {
    list-style: none;
    padding: 0;
}

.gourmand-classic-template .gourmand-ingredients-list li,
.gourmand-classic-template .gourmand-equipment-list li {
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: #f8f9fa;
    border-left: 3px solid #3498db;
    border-radius: 0 4px 4px 0;
}

.gourmand-classic-template .gourmand-instructions-list {
    counter-reset: step-counter;
}

.gourmand-classic-template .gourmand-instructions-list .gourmand-instruction {
    counter-increment: step-counter;
    padding: 1rem;
    margin-bottom: 1rem;
    background: #fff;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    position: relative;
}

.gourmand-classic-template .gourmand-instructions-list .gourmand-instruction::before {
    content: counter(step-counter);
    position: absolute;
    left: -15px;
    top: 1rem;
    background: #3498db;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.gourmand-classic-template .gourmand-instruction-content {
    margin-left: 1rem;
}

.gourmand-classic-template .gourmand-notes {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 1.5rem;
}

.gourmand-classic-template .gourmand-notes h3 {
    font-family: var(--font-heading);
    font-size: var(--heading-m);
    font-weight: var(--weight-semibold);
    color: #856404;
    border-bottom-color: #ffeaa7;
}

/* Responsive Layout Control */
/* Default: Show desktop, hide tablet and mobile */
.gourmand-classic-desktop-layout {
    display: grid;
}

.gourmand-classic-tablet-layout {
    display: none !important;
}

.gourmand-classic-mobile-layout {
    display: none !important;
}

/* Tablet (769px - 1024px): Hide desktop, show tablet, hide mobile */
@media (min-width: 769px) and (max-width: 1024px) {
    .gourmand-classic-desktop-layout {
        display: none !important;
    }

    .gourmand-classic-tablet-layout {
        display: grid !important;
    }

    .gourmand-classic-mobile-layout {
        display: none !important;
    }
}

/* Mobile (max-width: 768px): Hide desktop and tablet, show mobile */
@media (max-width: 768px) {
    .gourmand-classic-desktop-layout {
        display: none !important;
    }

    .gourmand-classic-tablet-layout {
        display: none !important;
    }

    .gourmand-classic-mobile-layout {
        display: flex !important;
        flex-direction: column;
    }
}

/* Mobile Layout Styles */
.gourmand-classic-mobile-layout {
    padding: 1.5rem 0;
    box-shadow: none;
    border-radius: 0;
    border: none;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.gourmand-classic-mobile-layout .gourmand-recipe-header-mobile {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.gourmand-classic-mobile-layout .gourmand-recipe-image-mobile {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 8px;
}

.gourmand-classic-mobile-layout .gourmand-recipe-image-mobile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gourmand-classic-mobile-layout .gourmand-recipe-header-content-mobile {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.gourmand-classic-mobile-layout .gourmand-recipe-title-mobile {
    font-family: var(--font-heading);
    font-size: var(--heading-m);
    font-weight: var(--weight-bold);
    line-height: var(--leading-heading-tight);
    color: var(--color-heading);
    margin: 0;
    text-align: center;
}

.gourmand-classic-mobile-layout .gourmand-recipe-cuisine-mobile {
    font-family: var(--font-meta);
    font-size: var(--meta-s);
    font-weight: var(--weight-medium);
    letter-spacing: var(--tracking-nav);
    text-transform: uppercase;
    color: var(--color-meta);
    text-align: center;
}

.gourmand-classic-mobile-layout .gourmand-recipe-description-mobile {
    font-family: var(--font-body);
    font-size: var(--body-m);
    line-height: var(--leading-body-normal);
    color: var(--color-body);
    text-align: center;
    margin: 0;
}

.gourmand-classic-mobile-layout .gourmand-recipe-description-mobile p {
    margin: 0;
}

.gourmand-classic-mobile-layout .gourmand-recipe-meta-mobile {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 0.75rem;
    margin-top: 0.5rem;
}

.gourmand-classic-mobile-layout .gourmand-recipe-times-mobile {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.gourmand-classic-mobile-layout .gourmand-time-item-mobile,
.gourmand-classic-mobile-layout .gourmand-servings-item-mobile {
    text-align: center;
}

.gourmand-classic-mobile-layout .gourmand-time-label-mobile,
.gourmand-classic-mobile-layout .gourmand-servings-label-mobile {
    display: block;
    font-family: var(--font-meta);
    font-size: var(--meta-s);
    font-weight: var(--weight-medium);
    letter-spacing: var(--tracking-nav);
    text-transform: uppercase;
    color: var(--color-meta);
    margin-bottom: 0.25rem;
}

.gourmand-classic-mobile-layout .gourmand-time-value-mobile,
.gourmand-classic-mobile-layout .gourmand-servings-value-mobile {
    display: block;
    font-family: var(--font-meta);
    font-size: var(--meta-m);
    font-weight: var(--weight-bold);
    letter-spacing: var(--tracking-meta);
    text-transform: uppercase;
    color: var(--color-heading);
}

.gourmand-classic-mobile-layout .gourmand-recipe-card-content-mobile {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.gourmand-classic-mobile-layout .gourmand-ingredients-mobile h3,
.gourmand-classic-mobile-layout .gourmand-equipment-mobile h3,
.gourmand-classic-mobile-layout .gourmand-instructions-mobile h3,
.gourmand-classic-mobile-layout .gourmand-notes-mobile h3 {
    font-family: var(--font-heading);
    font-size: var(--heading-s);
    font-weight: var(--weight-semibold);
    line-height: var(--leading-heading-normal);
    color: var(--color-heading);
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.gourmand-classic-mobile-layout .gourmand-ingredients-list-mobile,
.gourmand-classic-mobile-layout .gourmand-equipment-list-mobile {
    list-style: none;
    padding: 0;
}

.gourmand-classic-mobile-layout .gourmand-ingredients-list-mobile li,
.gourmand-classic-mobile-layout .gourmand-equipment-list-mobile li {
    padding: 0.65rem;
    margin-bottom: 0.5rem;
    background: #f8f9fa;
    border-left: 3px solid #3498db;
    border-radius: 0 4px 4px 0;
    font-family: var(--font-body);
    font-size: var(--body-m);
    line-height: var(--leading-body-normal);
}

.gourmand-classic-mobile-layout .gourmand-ingredient-group-mobile {
    font-family: var(--font-body);
    font-weight: var(--weight-semibold);
    color: #2980b9;
    background: transparent !important;
    border: none !important;
    padding: 0.75rem 0 0.25rem 0 !important;
    margin-top: 0.5rem;
}

.gourmand-classic-mobile-layout .gourmand-instructions-list-mobile {
    list-style: none;
    padding: 0;
    counter-reset: step-counter;
}

.gourmand-classic-mobile-layout .gourmand-instructions-list-mobile .gourmand-instruction-mobile {
    counter-increment: step-counter;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    background: #fff;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    position: relative;
    padding-left: 2.5rem;
}

.gourmand-classic-mobile-layout .gourmand-instructions-list-mobile .gourmand-instruction-mobile::before {
    content: counter(step-counter);
    position: absolute;
    left: 0.5rem;
    top: 0.75rem;
    background: #3498db;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.8rem;
}

.gourmand-classic-mobile-layout .gourmand-instruction-content-mobile {
    font-family: var(--font-body);
    font-size: var(--body-m);
    line-height: var(--leading-body-normal);
}

.gourmand-classic-mobile-layout .gourmand-instruction-content-mobile p {
    margin: 0;
}

.gourmand-classic-mobile-layout .gourmand-instruction-group-mobile {
    font-family: var(--font-body);
    font-weight: var(--weight-semibold);
    color: #2980b9;
    background: transparent;
    border: none;
    padding: 0.75rem 0 0.25rem 0;
    margin-top: 0.5rem;
    list-style: none;
}

.gourmand-classic-mobile-layout .gourmand-instruction-group-mobile::before {
    display: none;
}

.gourmand-classic-mobile-layout .gourmand-notes-mobile {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 1rem;
}

.gourmand-classic-mobile-layout .gourmand-notes-mobile h3 {
    color: #856404;
    border-bottom-color: #ffeaa7;
}

.gourmand-classic-mobile-layout .gourmand-notes-content-mobile {
    font-family: var(--font-body);
    font-size: var(--body-m);
    line-height: var(--leading-body-normal);
}

.gourmand-classic-mobile-layout .gourmand-notes-content-mobile p {
    margin: 0;
}


/* ==========================================================================
   MODERN TEMPLATE
   ========================================================================== */

.gourmand-modern-template {
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

.gourmand-modern-template .gourmand-recipe-hero {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.gourmand-modern-template .gourmand-recipe-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.gourmand-modern-template .gourmand-recipe-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 2rem;
    color: white;
}

.gourmand-modern-template .gourmand-recipe-hero-overlay .gourmand-recipe-title {
    font-family: var(--font-heading);
    font-size: var(--heading-xl);
    font-weight: var(--weight-bold);
    line-height: var(--leading-heading-tight);
    color: white;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.gourmand-modern-template .gourmand-recipe-header {
    padding: 2rem;
    text-align: center;
}

.gourmand-modern-template .gourmand-recipe-description {
    padding: 0 2rem;
    font-family: var(--font-body);
    font-size: var(--body-l);
    line-height: var(--leading-body-relaxed);
    color: var(--color-body);
    text-align: center;
    margin-bottom: 2rem;
}

.gourmand-modern-template .gourmand-recipe-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    padding: 0 2rem 2rem 2rem;
    margin-bottom: 1rem;
}

.gourmand-modern-template .gourmand-meta-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid #e9ecef;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gourmand-modern-template .gourmand-meta-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.gourmand-modern-template .gourmand-meta-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.gourmand-modern-template .gourmand-meta-label {
    display: block;
    font-family: var(--font-meta);
    font-size: var(--meta-m);
    font-weight: var(--weight-semibold);
    letter-spacing: var(--tracking-meta);
    text-transform: uppercase;
    color: var(--color-meta);
    margin-bottom: 0.25rem;
}

.gourmand-modern-template .gourmand-meta-value {
    display: block;
    font-family: var(--font-meta);
    font-size: var(--meta-m);
    font-weight: var(--weight-bold);
    color: var(--color-heading);
}

.gourmand-modern-template .gourmand-recipe-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 0 2rem;
    margin-bottom: 2rem;
}

.gourmand-modern-template .gourmand-ingredients-card,
.gourmand-modern-template .gourmand-instructions-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    overflow: hidden;
}

.gourmand-modern-template .gourmand-section-title {
    background: #3498db;
    color: white;
    padding: 1rem 1.5rem;
    margin: 0;
    font-family: var(--font-heading);
    font-size: var(--heading-xs);
    font-weight: var(--weight-semibold);
    line-height: var(--leading-heading-normal);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.gourmand-modern-template .gourmand-section-icon {
    font-size: 1.2rem;
}

.gourmand-modern-template .gourmand-ingredients-content,
.gourmand-modern-template .gourmand-instructions-content {
    padding: 1.5rem;
}

.gourmand-modern-template .gourmand-ingredient {
    margin-bottom: 0.75rem;
}

.gourmand-modern-template .gourmand-ingredient-checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
    padding: 0.5rem;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.gourmand-modern-template .gourmand-ingredient-checkbox:hover {
    background: #f8f9fa;
}

.gourmand-modern-template .gourmand-ingredient-check {
    width: 18px;
    height: 18px;
    accent-color: #3498db;
}

.gourmand-modern-template .gourmand-ingredient-group {
    font-family: var(--font-body);
    font-weight: var(--weight-semibold);
    color: #2980b9;
    margin: 1rem 0 0.75rem 0;
    padding: 0.5rem 0.75rem;
    background: #e8f4fd;
    border-radius: 6px;
    border-left: 3px solid #3498db;
}

.gourmand-modern-template .gourmand-instruction-step {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.gourmand-modern-template .gourmand-step-number {
    background: #3498db;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.gourmand-modern-template .gourmand-step-content {
    flex: 1;
    font-family: var(--font-body);
    font-size: var(--body-m);
    line-height: var(--leading-body-normal);
}

.gourmand-modern-template .gourmand-instruction-group {
    font-family: var(--font-body);
    font-weight: var(--weight-semibold);
    color: #2980b9;
    margin: 1.5rem 0 1rem 0;
    padding: 0.75rem;
    background: #e8f4fd;
    border-radius: 6px;
    border-left: 3px solid #3498db;
}

.gourmand-modern-template .gourmand-recipe-sidebar {
    padding: 0 2rem 2rem 2rem;
}

.gourmand-modern-template .gourmand-equipment-card,
.gourmand-modern-template .gourmand-notes-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.gourmand-modern-template .gourmand-sidebar-title {
    margin: 0 0 1rem 0;
    font-family: var(--font-heading);
    font-size: var(--heading-xxs);
    font-weight: var(--weight-semibold);
    line-height: var(--leading-heading-normal);
    color: var(--color-heading);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.gourmand-modern-template .gourmand-equipment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.gourmand-modern-template .gourmand-equipment-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

.gourmand-modern-template .gourmand-equipment-list li:last-child {
    border-bottom: none;
}

/* Modern template responsive adjustments */
@media (max-width: 1024px) {
    .gourmand-modern-template .gourmand-recipe-content-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .gourmand-modern-template .gourmand-recipe-hero {
        height: 200px;
    }

    .gourmand-modern-template .gourmand-recipe-hero-overlay {
        padding: 1.5rem;
    }

    .gourmand-modern-template .gourmand-recipe-meta-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 1rem 1rem 1rem;
    }

    .gourmand-modern-template .gourmand-recipe-content-grid,
    .gourmand-modern-template .gourmand-recipe-sidebar {
        padding: 0 1rem 2rem 1rem;
    }
}

@media (max-width: 480px) {
    .gourmand-modern-template .gourmand-recipe-meta-grid {
        grid-template-columns: 1fr;
    }

    .gourmand-modern-template .gourmand-instruction-step {
        flex-direction: column;
        gap: 0.5rem;
    }

    .gourmand-modern-template .gourmand-step-number {
        align-self: flex-start;
    }
}


/* ==========================================================================
   COMPACT TEMPLATE
   ========================================================================== */

.gourmand-compact-template {
    border: 1px solid #dee2e6;
    padding: 1.5rem;
    background: #fff;
}

.gourmand-compact-template .gourmand-compact-header {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.gourmand-compact-template .gourmand-compact-title-section {
    flex: 1;
}

.gourmand-compact-template .gourmand-recipe-title {
    font-family: var(--font-heading);
    font-size: var(--heading-m);
    font-weight: var(--weight-bold);
    line-height: var(--leading-heading-tight);
    color: var(--color-heading);
    margin: 0 0 0.5rem 0;
}

.gourmand-compact-template .gourmand-compact-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.gourmand-compact-template .gourmand-compact-time,
.gourmand-compact-template .gourmand-compact-servings {
    background: #e8f4fd;
    color: #2980b9;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-family: var(--font-meta);
    font-size: var(--meta-m);
    font-weight: var(--weight-semibold);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.gourmand-compact-template .gourmand-compact-image {
    flex-shrink: 0;
}

.gourmand-compact-template .gourmand-compact-image img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
}

.gourmand-compact-template .gourmand-compact-description {
    font-family: var(--font-body);
    font-size: var(--body-m);
    line-height: var(--leading-body-normal);
    font-style: italic;
    color: var(--color-body);
    margin-bottom: 1.5rem;
}

.gourmand-compact-template .gourmand-compact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
}

.gourmand-compact-template .gourmand-compact-ingredients h4,
.gourmand-compact-template .gourmand-compact-instructions h4 {
    font-family: var(--font-heading);
    font-size: var(--heading-xs);
    font-weight: var(--weight-semibold);
    line-height: var(--leading-heading-normal);
    color: var(--color-heading);
    margin: 0 0 0.75rem 0;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid #dee2e6;
}

.gourmand-compact-template .gourmand-compact-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.gourmand-compact-template .gourmand-compact-ingredient {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f8f9fa;
    font-family: var(--font-body);
    font-size: var(--body-m);
    line-height: var(--leading-body-normal);
}

.gourmand-compact-template .gourmand-compact-ingredient:last-child {
    border-bottom: none;
}

.gourmand-compact-template .gourmand-compact-group {
    display: block;
    font-family: var(--font-body);
    font-weight: var(--weight-semibold);
    color: #2980b9;
    margin: 0.75rem 0 0.5rem 0;
    padding: 0.25rem 0;
    border-top: 1px solid #e8f4fd;
}

.gourmand-compact-template .gourmand-compact-group:first-child {
    margin-top: 0;
    border-top: none;
}

.gourmand-compact-template .gourmand-compact-steps {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.gourmand-compact-template .gourmand-compact-step {
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: var(--body-m);
    line-height: var(--leading-body-normal);
}

.gourmand-compact-template .gourmand-compact-step strong {
    color: #3498db;
    margin-right: 0.5rem;
}

.gourmand-compact-template .gourmand-compact-extras {
    grid-column: 1 / -1;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
    font-family: var(--font-body);
    font-size: var(--body-s);
    line-height: var(--leading-body-tight);
}

.gourmand-compact-template .gourmand-compact-equipment,
.gourmand-compact-template .gourmand-compact-notes {
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.gourmand-compact-template .gourmand-compact-equipment strong,
.gourmand-compact-template .gourmand-compact-notes strong {
    font-weight: var(--weight-semibold);
    color: var(--color-heading);
    margin-right: 0.5rem;
}

/* Compact template responsive adjustments */
@media (max-width: 768px) {
    .gourmand-compact-template {
        padding: 1rem;
    }

    .gourmand-compact-template .gourmand-compact-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .gourmand-compact-template .gourmand-compact-image img {
        width: 100px;
        height: 100px;
    }

    .gourmand-compact-template .gourmand-compact-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .gourmand-compact-template .gourmand-compact-meta {
        justify-content: center;
    }

    .gourmand-compact-template .gourmand-compact-image img {
        width: 80px;
        height: 80px;
    }
}

/* Compact template print optimizations */
@media print {
    .gourmand-compact-template .gourmand-compact-header {
        flex-direction: row;
        align-items: center;
    }

    .gourmand-compact-template .gourmand-compact-content {
        grid-template-columns: 1fr 2fr;
    }

    .gourmand-compact-template .gourmand-compact-image {
        display: none;
    }
}


/* ==========================================================================
   RECIPE SCALING CONTROLS
   ========================================================================== */

/* Servings controls wrapper */
.gourmand-servings-controls {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Inline version for compact template */
.gourmand-servings-controls-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

/* Servings buttons */
.gourmand-servings-btn {
    width: 24px;
    height: 24px;
    border: 1px solid #3498db;
    background: white;
    color: #3498db;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
    user-select: none;
}

.gourmand-servings-btn:hover:not(:disabled) {
    background: #3498db;
    color: white;
}

.gourmand-servings-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Servings value display */
.gourmand-servings-adjuster .gourmand-servings-value {
    min-width: 2em;
    text-align: center;
    font-weight: 700;
}

/* Scaled state indicator */
.gourmand-recipe-card.gourmand-scaled .gourmand-servings-value {
    color: #27ae60;
}

.gourmand-recipe-card.gourmand-scaled .gourmand-ingredient-quantity {
    color: #27ae60;
    font-weight: 600;
}

/* Compact template adjustments */
.gourmand-compact-servings .gourmand-servings-btn {
    width: 20px;
    height: 20px;
    font-size: 0.875rem;
}

/* Modern template adjustments */
.gourmand-modern-template .gourmand-servings-controls {
    margin-top: 0.25rem;
}

.gourmand-modern-template .gourmand-servings-btn {
    width: 28px;
    height: 28px;
}

/* Classic template adjustments */
.gourmand-classic-template .gourmand-servings-controls {
    margin-top: 0.25rem;
}

/* Print: hide scaling controls */
@media print {
    .gourmand-servings-btn {
        display: none !important;
    }

    .gourmand-servings-controls,
    .gourmand-servings-controls-inline {
        display: inline !important;
    }
}

/* Mobile adjustments */
@media (max-width: 480px) {
    .gourmand-servings-btn {
        width: 28px;
        height: 28px;
    }
}
