﻿/* ============================================
   RECIPE DETAIL PAGE - FULL PAGE LAYOUT
   Modern, professional design for individual recipe detail page only
   Brown color scheme: #705542, #8b6f47
   Used exclusively by: Views/Recipe/Recipe.cshtml
   ============================================ */

/* ============================================
   BREADCRUMB NAVIGATION
   ============================================ */
.breadcrumb {
    background: transparent;
    padding: 0.75rem 0;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.breadcrumb-item a {
    color: #705542;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
    color: #8b6f47;
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #6c757d;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: #adb5bd;
}

/* ============================================
   HERO VIDEO SECTION
   ============================================ */
.recipe-video-hero {
    background: white;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.recipe-video-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    background: #000;
}

.recipe-hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
}

.recipe-video-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
    padding: 2.5rem 0 2rem;
    pointer-events: none;
}

.recipe-hero-content {
    pointer-events: auto;
}

.recipe-hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: rgba(112, 85, 66, 0.95);
    color: white;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
}

.recipe-badge-category {
    background: linear-gradient(135deg, #705542 0%, #8b6f47 100%);
}

.recipe-hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.recipe-hero-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.recipe-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.recipe-hero-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-size: 0.95rem;
    font-weight: 500;
}

.recipe-hero-meta-item svg {
    color: #f4d9a6;
}

.recipe-hero-difficulty {
    background: rgba(244, 217, 166, 0.2);
    padding: 0.4rem 0.85rem;
    border-radius: 5px;
    backdrop-filter: blur(10px);
}

/* Cooking Mode Button */
.recipe-cooking-mode-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    background: linear-gradient(135deg, rgba(244, 217, 166, 0.2) 0%, rgba(244, 217, 166, 0.1) 100%);
    border: 1px solid rgba(244, 217, 166, 0.4);
    border-radius: 5px;
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.recipe-cooking-mode-btn:hover {
    background: linear-gradient(135deg, #705542 0%, #8b6f47 100%);
    border-color: #8b6f47;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(112, 85, 66, 0.3);
}

.recipe-cooking-mode-btn svg {
    color: #f4d9a6;
}

/* ============================================
   INGREDIENTS SECTION - PRODUCTS FOR PURCHASE
   ============================================ */
/* ============================================
   LEFT COLUMN PACK TOTAL CARD
   ============================================ */
.recipe-pack-total-card {
    background: linear-gradient(135deg, #705542 0%, #8b6f47 100%);
    border-radius: 5px;
    padding: 1rem 1.1rem;
    color: white;
}

.recipe-pack-total-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    gap: 0.5rem;
    flex-wrap: nowrap;
}

.recipe-pack-total-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.3;
    flex: 1;
}

.recipe-pack-discount-badge {
    background: rgba(34, 197, 94, 0.9);
    color: white;
    padding: 0.2rem 0.55rem;
    border-radius: 5px;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
    align-self: flex-start;
}

.recipe-pack-total-prices {
    background: rgba(255,255,255,0.12);
    border-radius: 5px;
    padding: 0.55rem 0.7rem;
    margin-bottom: 0.5rem;
}

.recipe-pack-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    margin-bottom: 0.2rem;
}

.recipe-pack-price-row:last-child {
    margin-bottom: 0;
}

.recipe-pack-price-label {
    opacity: 0.85;
    font-weight: 500;
}

.recipe-pack-price-original {
    text-decoration: line-through;
    opacity: 0.65;
    font-weight: 500;
}

.recipe-pack-price-final-row {
    border-top: 1px solid rgba(255,255,255,0.25);
    padding-top: 0.25rem;
    margin-top: 0.2rem;
}

.recipe-pack-price-final {
    font-size: 1.1rem;
    font-weight: 800;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.recipe-pack-count {
    font-size: 0.72rem;
    opacity: 0.85;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 0.6rem;
}

.recipe-pack-add-btn {
    width: 100%;
    background: white;
    color: #705542;
    border: none;
    padding: 0.65rem 1rem;
    border-radius: 5px;
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    letter-spacing: 0.3px;
}

.recipe-pack-add-btn:hover {
    background: #f5f1ed;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

.recipe-pack-auth-card {
    text-align: center;
    background: #f5f1ed;
    border: 2px dashed #d4c4b0;
    color: #705542;
    padding: 1.25rem;
    border-radius: 5px;
}

.recipe-pack-auth-card svg {
    color: #8b6f47;
    display: block;
    margin: 0 auto 0.5rem;
}

.recipe-pack-auth-text {
    font-size: 0.82rem;
    color: #8b6f47;
    margin-bottom: 0.75rem;
}

.recipe-pack-auth-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: linear-gradient(135deg, #705542 0%, #8b6f47 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: opacity 0.2s ease;
}

.recipe-pack-auth-btn:hover {
    opacity: 0.88;
    color: white;
}

/* ============================================
   LEFT COLUMN 2x2 PRODUCTS GRID CARD
   ============================================ */
.recipe-left-products-card {
    overflow: hidden;
}

.recipe-left-products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
}

.recipe-left-products-grid .product-grid-card {
    padding: 0.5rem 0.45rem 0.45rem;
    border: 2px solid #d4c4b0;
    border-radius: 5px;
    background: white;
    display: flex;
    flex-direction: column;
    transition: all 0.25s ease;
}

.recipe-left-products-grid .product-grid-card:hover {
    border-color: #b09880;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(112,85,66,0.13);
}

.recipe-left-products-grid .product-grid-card[data-selected="false"] {
    opacity: 0.55;
    border-color: #e8e0d5;
}

.recipe-left-products-grid .product-grid-img-container {
    aspect-ratio: 1 / 1;
    border-radius: 5px;
    overflow: hidden;
    background: #f0ebe4;
    margin-bottom: 0.3rem;
}

.recipe-left-products-grid .product-grid-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
    transition: transform 0.25s ease;
}

.recipe-left-products-grid .product-grid-card:hover .product-grid-img {
    transform: scale(1.04);
}

.recipe-left-products-grid .product-grid-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
}

.recipe-left-products-grid .product-grid-title {
    font-size: 0.63rem;
    font-weight: 700;
    color: #705542;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    text-align: center;
    line-height: 1.15;
    margin-bottom: 0.1rem;
}

.recipe-left-products-grid .product-grid-ref {
    font-size: 0.52rem;
    color: #aaa;
    text-align: center;
    margin-bottom: 0.15rem;
    text-transform: uppercase;
}

.recipe-left-products-grid .product-grid-price {
    font-size: 0.75rem;
    font-weight: 700;
    color: #705542;
    text-align: center;
    margin-bottom: 0.25rem;
}

.recipe-left-products-grid .recipe-select-btn {
    border-radius: 5px;
    padding: 0.3rem 0.4rem;
    font-size: 0.62rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    width: 100%;
    cursor: pointer;
    border: 2px solid #705542;
    background: transparent;
    color: #705542;
}

.recipe-left-products-grid .recipe-select-btn.selected {
    background: transparent;
    color: #705542;
    border-color: #705542;
}

.recipe-left-products-grid .recipe-select-btn:not(.selected) {
    background: linear-gradient(135deg, #705542 0%, #8b6f47 100%);
    color: white;
    border-color: transparent;
}

/* Icon/text toggling inside new grid select btns */
.recipe-left-products-grid .recipe-select-btn.selected .btn-icon-selected { display: inline-block; }
.recipe-left-products-grid .recipe-select-btn.selected .btn-icon-unselected { display: none; }
.recipe-left-products-grid .recipe-select-btn:not(.selected) .btn-icon-selected { display: none; }
.recipe-left-products-grid .recipe-select-btn:not(.selected) .btn-icon-unselected { display: inline-block; }
.recipe-left-products-grid .recipe-select-btn.selected .btn-text-selected { display: inline; }
.recipe-left-products-grid .recipe-select-btn.selected .btn-text-unselected { display: none; }
.recipe-left-products-grid .recipe-select-btn:not(.selected) .btn-text-selected { display: none; }
.recipe-left-products-grid .recipe-select-btn:not(.selected) .btn-text-unselected { display: inline; }

.recipe-section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #705542;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.recipe-section-title svg {
    color: #8b6f47;
}

/* Ingredients Grid - Ultra Compact Product Cards */
.recipe-ingredients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 0.6rem;
    padding: 1rem;
    align-items: stretch;
}

@media (min-width: 576px) {
    .recipe-ingredients-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 0.7rem;
    }
}

@media (min-width: 768px) {
    .recipe-ingredients-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 0.75rem;
    }
}

@media (min-width: 992px) {
    .recipe-ingredients-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 0.8rem;
    }
}

/* Ultra Compact Product Cards */
.recipe-ingredients-grid .product-grid-card {
    padding: 0.45rem 0.4rem 0.4rem 0.4rem;
    aspect-ratio: 0.8 / 1;
    position: relative;
    border: 2.5px solid #d4c4b0;
    border-radius: 5px;
    background: white;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.recipe-ingredients-grid .product-grid-card:hover {
    border-color: #c9b89a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(112, 85, 66, 0.15);
}

.recipe-ingredients-grid .product-grid-card[data-selected="false"] {
    opacity: 0.6;
    border-color: #e8e0d5;
}

.recipe-ingredients-grid .product-grid-card[data-selected="false"]:hover {
    opacity: 0.8;
}

.recipe-ingredients-grid .product-grid-img-container {
    aspect-ratio: 1 / 1;
    margin-bottom: 0.25rem;
    border-radius: 5px;
    overflow: hidden;
    background: #f5f1ed;
    flex-shrink: 0;
}

.recipe-ingredients-grid .product-grid-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /*border: 2px solid #e8e0d5;*/
    border-radius: 5px;
    transition: all 0.3s ease;
}

.recipe-ingredients-grid .product-grid-card:hover .product-grid-img {
    border-color: #d4c4b0;
    transform: scale(1.03);
}

.recipe-ingredients-grid .product-grid-card[data-selected="false"] .product-grid-img {
    filter: grayscale(30%);
}

.recipe-ingredients-grid .product-grid-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
}

.recipe-ingredients-grid .product-grid-title {
    font-size: 0.62rem;
    margin-bottom: 0.1rem;
    min-height: 1.3em;
    line-height: 1.05;
    font-weight: 700;
    color: #705542;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    text-align: center;
}

.recipe-ingredients-grid .product-grid-ref {
    font-size: 0.52rem;
    margin-bottom: 0.15rem;
    color: #999;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1px;
    text-align: center;
}

.recipe-ingredients-grid .product-grid-description {
    font-size: 0.52rem;
    margin-bottom: 0.25rem;
    min-height: 1.2em;
    color: #8b6f47;
    font-style: italic;
    text-align: center;
}

.recipe-ingredients-grid .product-grid-price {
    font-size: 0.72rem;
    margin-bottom: 0.25rem;
    font-weight: 700;
    color: #705542;
    text-align: center;
}

/* Selection Button Styles - Outline when selected, filled when unselected */
.recipe-ingredients-grid .recipe-select-btn {
    border-radius: 5px;
    padding: 0.38rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    width: 100%;
    text-align: center;
    cursor: pointer;
    white-space: nowrap;
    border: 2px solid #705542;
}

/* Selected state - outline style */
.recipe-ingredients-grid .recipe-select-btn.selected {
    background: transparent;
    color: #705542;
    border-color: #705542;
}

.recipe-ingredients-grid .recipe-select-btn.selected:hover {
    background: rgba(112, 85, 66, 0.05);
    border-color: #8b6f47;
    color: #8b6f47;
}

/* Unselected state - filled style */
.recipe-ingredients-grid .recipe-select-btn:not(.selected) {
    background: linear-gradient(135deg, #705542 0%, #8b6f47 100%);
    color: white;
    border-color: transparent;
}

.recipe-ingredients-grid .recipe-select-btn:not(.selected):hover {
    background: linear-gradient(135deg, #8b6f47 0%, #705542 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(112, 85, 66, 0.25);
}

/* Icon visibility - show checkmark when selected, show plus when unselected */
.recipe-select-btn.selected .btn-icon-selected {
    display: inline-block;
}

.recipe-select-btn.selected .btn-icon-unselected {
    display: none;
}

.recipe-select-btn:not(.selected) .btn-icon-selected {
    display: none;
}

.recipe-select-btn:not(.selected) .btn-icon-unselected {
    display: inline-block;
}

/* Text visibility */
.recipe-select-btn.selected .btn-text-selected {
    display: inline;
}

.recipe-select-btn.selected .btn-text-unselected {
    display: none;
}

.recipe-select-btn:not(.selected) .btn-text-selected {
    display: none;
}

.recipe-select-btn:not(.selected) .btn-text-unselected {
    display: inline;
}

.recipe-ingredients-grid .recipe-select-btn:active {
    transform: translateY(0);
}

/* ============================================
   RECIPE CART CARD - GRID ITEM STYLE
   Matches product card dimensions exactly
   ============================================ */
.recipe-cart-card {
    padding: 0.6rem 0.5rem 0.5rem 0.5rem;
    border: 2.5px solid #705542;
    border-radius: 5px;
    background: linear-gradient(135deg, #705542 0%, #8b6f47 100%);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    position: relative;
    grid-column: span 1;
    aspect-ratio: 0.8 / 1;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.recipe-cart-card:hover {
    border-color: #5a4536;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(112, 85, 66, 0.25);
}

.recipe-cart-icon {
    margin-bottom: 0.3rem;
    flex-shrink: 0;
}

.recipe-cart-icon svg {
    color: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    width: 30px;
    height: 30px;
}

.recipe-cart-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    flex: 1;
    justify-content: space-between;
}

.recipe-cart-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.2;
    margin-bottom: auto;
    padding-bottom: 0.5rem;
}

.recipe-cart-bottom {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-top: auto;
}

.recipe-cart-discount {
    background: rgba(34, 197, 94, 0.9);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 5px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    letter-spacing: 0.2px;
}

.recipe-cart-pricing {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 5px;
    padding: 0.3rem;
    backdrop-filter: blur(10px);
}

.recipe-cart-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    font-size: 0.72rem;
    margin-bottom: 0.1rem;
}

.recipe-cart-price-row:last-child {
    margin-bottom: 0;
}

.recipe-cart-label {
    font-weight: 600;
    opacity: 0.95;
}

.recipe-cart-price-original {
    text-decoration: line-through;
    opacity: 0.75;
    font-weight: 500;
}

.recipe-cart-price-highlight {
    padding-top: 0.15rem;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    font-size: 0.78rem;
}

.recipe-cart-price-final {
    font-weight: 700;
    font-size: 0.9rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.recipe-cart-count {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.recipe-cart-add-btn {
    width: 100%;
    background: white;
    color: #705542;
    border: none;
    padding: 0.5rem 0.35rem;
    border-radius: 5px;
    font-weight: 700;
    font-size: 0.72rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    letter-spacing: 0.3px;
    line-height: 1;
}

.recipe-cart-add-btn svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}

.recipe-cart-add-btn:hover {
    background: #f5f1ed;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.recipe-cart-add-btn:active {
    transform: translateY(0);
}

/* Auth variant - matches product card dimensions */
.recipe-cart-auth {
    background: linear-gradient(135deg, rgba(254, 243, 199, 0.95) 0%, rgba(253, 230, 138, 0.95) 100%);
    border-color: #fde68a;
}

.recipe-cart-auth .recipe-cart-icon svg {
    color: #78350f;
}

.recipe-cart-auth .recipe-cart-title {
    color: #78350f;
    font-size: 0.8rem;
}

.recipe-cart-auth-text {
    color: #78350f;
    font-size: 0.65rem;
    font-weight: 500;
    margin: 0.3rem 0;
    line-height: 1.3;
}

.recipe-cart-auth-btn {
    width: 100%;
    background: #705542;
    color: white;
    border: none;
    padding: 0.5rem 0.35rem;
    border-radius: 5px;
    font-weight: 700;
    font-size: 0.65rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    text-decoration: none;
    letter-spacing: 0.3px;
}

.recipe-cart-auth-btn svg {
    width: 12px;
    height: 12px;
}

.recipe-cart-auth-btn:hover {
    background: #5a4536;
    color: white;
    transform: translateY(-1px);
}

/* ============================================
   RECIPE INGREDIENTS LIST (Cooking Ingredients)
   ============================================ */
.recipe-info-section {
    margin-bottom: 3rem;
}

.recipe-ingredients-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.recipe-ingredients-list-sidebar {
    padding: 0.5rem 1.25rem 1.25rem;
}

.recipe-ingredient-row {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.7rem 0.5rem;
    border-bottom: 1px dotted #e0d6cc;
    transition: background 0.2s ease;
}

.recipe-ingredient-row:last-child {
    border-bottom: none;
}

.recipe-ingredient-row:hover {
    background: rgba(112, 85, 66, 0.04);
    border-radius: 5px;
}

.ingredient-main {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
}

.ingredient-name {
    flex: 1;
    color: #1f2937;
    font-size: 0.92rem;
    line-height: 1.4;
}

.ingredient-quantity {
    font-weight: 700;
    color: #705542;
    white-space: nowrap;
    font-size: 0.82rem;
    background: rgba(112, 85, 66, 0.08);
    padding: 0.15rem 0.5rem;
    border-radius: 5px;
    text-align: center;
    flex-shrink: 0;
}

.ingredient-notes {
    font-size: 0.78rem;
    color: #8b7355;
    font-style: italic;
    padding-left: 0.15rem;
}

/* ============================================
   PHOTO GALLERY SECTION
   ============================================ */
.recipe-photo-gallery {
    padding: 3rem 0;
}

.recipe-section-main-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
}

.recipe-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.recipe-gallery-main {
    grid-column: span 2;
    grid-row: span 2;
}

.recipe-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    aspect-ratio: 1;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.recipe-gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    z-index: 10;
}

.recipe-gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.recipe-gallery-item:hover .recipe-gallery-img {
    transform: scale(1.1);
}

/* ============================================
   INSTRUCTIONS SECTION
   ============================================ */
.recipe-instructions-section {
    margin-bottom: 3rem;
}

.recipe-instructions-card {
    background: white;
    border-radius: 5px;
    padding: 2rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    border: 1px solid #e5e7eb;
}

.recipe-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1.25rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #f3f4f6;
}

.recipe-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #705542;
    margin: 0;
    display: flex;
    align-items: center;
}

.recipe-progress-badge {
    background: #f3f4f6;
    color: #705542;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-size: 0.95rem;
    font-weight: 700;
}

.recipe-progress-badge.progress-complete {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

.recipe-steps-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.recipe-step-item {
    display: flex;
    gap: 1.25rem;
    padding: 1.25rem;
    background: #f9fafb;
    border-radius: 5px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.recipe-step-item:hover {
    background: white;
    border-color: #e5e7eb;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.recipe-step-item.step-completed {
    opacity: 0.65;
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.recipe-step-left {
    flex-shrink: 0;
}

.recipe-step-number {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #705542, #8b6f47);
    color: white;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.15rem;
    box-shadow: 0 4px 12px rgba(112, 85, 66, 0.3);
}

.recipe-step-item.step-completed .recipe-step-number {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.recipe-step-right {
    flex: 1;
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
}

.recipe-step-checkbox {
    appearance: none;
    width: 22px;
    height: 22px;
    border: 2px solid #d1d5db;
    border-radius: 5px;
    background: white;
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 2px;
    transition: all 0.2s;
}

.recipe-step-checkbox:hover {
    border-color: #705542;
}

.recipe-step-checkbox:checked {
    background: linear-gradient(135deg, #705542, #8b6f47);
    border-color: #705542;
}

.recipe-step-checkbox:checked::after {
    content: '?';
    display: block;
    text-align: center;
    color: white;
    font-size: 15px;
    font-weight: bold;
    line-height: 18px;
}

.recipe-step-label {
    flex: 1;
    color: #374151;
    font-size: 1.05rem;
    line-height: 1.7;
    cursor: pointer;
    user-select: none;
}

.recipe-step-item.step-completed .recipe-step-label {
    text-decoration: line-through;
    color: #9ca3af;
}

/* ============================================
   CLIENT RESULTS SHARING SECTION - UNIFIED GRID
   ============================================ */
.recipe-sharing-section {
    margin-bottom: 3rem;
    padding: 2.5rem 0 3rem;
    border-radius: 12px;
}

.recipe-sharing-header {
    text-align: center;
    margin-bottom: 2rem;
}

.recipe-sharing-count {
    font-size: 0.95rem;
    color: #78350f;
    margin-top: 0.25rem;
    margin-bottom: 0;
}

.recipe-sharing-subtitle {
    font-size: 1.15rem;
    color: #78350f;
    margin-top: 0.75rem;
    line-height: 1.6;
}

/* Unified Community Grid */
.recipe-community-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

@media (max-width: 1200px) {
    .recipe-community-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .recipe-community-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .recipe-community-grid { grid-template-columns: 1fr; }
}

/* Upload Card - First Grid Item */
.recipe-upload-card {
    min-height: 280px;
    background: white;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(112, 85, 66, 0.1);
    border: 2.5px dashed #d4c4b0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.recipe-upload-card:hover {
    border-color: #705542;
    box-shadow: 0 6px 20px rgba(112, 85, 66, 0.18);
}

.recipe-upload-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1rem;
    gap: 0.75rem;
}

/* Compact Upload Box */
.recipe-upload-box-compact {
    position: relative;
    flex: 1;
    min-height: 120px;
}

/* Hide native file input */
.recipe-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
}

.recipe-upload-label-compact {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 150px;
    padding: 1rem;
    background: #fdf8f4;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 0.4rem;
    border: 2px dashed #e5d8cc;
}

.recipe-upload-label-compact:hover {
    background: #f5ece3;
    border-color: #705542;
}

.recipe-upload-label-compact svg {
    color: #b08060;
    transition: color 0.3s ease;
}

.recipe-upload-label-compact:hover svg {
    color: #705542;
}

.upload-label-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: #705542;
    text-align: center;
}

.upload-label-sub {
    font-size: 0.75rem;
    color: #9ca3af;
    text-align: center;
}

/* Compact Photo Preview */
.recipe-photo-preview-compact {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 5px;
    overflow: hidden;
}

.recipe-photo-preview-compact img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recipe-remove-photo-compact {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    border: none;
    border-radius: 5px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.recipe-remove-photo-compact:hover {
    background: #dc2626;
    transform: scale(1.1);
}

/* Compact Comment Input */
.recipe-comment-input-compact {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 5px;
    font-size: 0.85rem;
    font-family: inherit;
    resize: none;
    transition: all 0.3s ease;
    background: #fafafa;
}

.recipe-comment-input-compact:focus {
    outline: none;
    border-color: #705542;
    background: white;
    box-shadow: 0 0 0 2px rgba(112, 85, 66, 0.1);
}

/* Compact Submit Button */
.recipe-submit-btn-compact {
    background: linear-gradient(135deg, #705542 0%, #8b6f47 100%);
    color: white;
    border: none;
    padding: 0.65rem 1rem;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(112, 85, 66, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
}

.recipe-submit-btn-compact:hover {
    background: linear-gradient(135deg, #8b6f47 0%, #705542 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(112, 85, 66, 0.35);
}

/* Auth Upload Card */
.recipe-upload-card-auth {
    border-style: solid;
    border-color: #e5e7eb;
}

.recipe-upload-card-auth .recipe-upload-card-content {
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.75rem;
}

.upload-auth-icon {
    width: 64px;
    height: 64px;
    background: #fdf8f4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #705542;
    border: 2px solid #e5d8cc;
}

.upload-auth-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.upload-auth-text {
    font-size: 0.82rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.4;
}

.recipe-upload-auth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    background: linear-gradient(135deg, #705542 0%, #8b6f47 100%);
    color: white;
    text-decoration: none;
    padding: 0.55rem 1.25rem;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.82rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(112, 85, 66, 0.25);
}

.recipe-upload-auth-btn:hover {
    background: linear-gradient(135deg, #8b6f47 0%, #705542 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(112, 85, 66, 0.35);
    color: white;
    text-decoration: none;
}

/* Result Cards in Grid */
.recipe-community-grid .recipe-result-card {
    position: relative;
    aspect-ratio: 1;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(112, 85, 66, 0.12);
    border: 2.5px solid #d4c4b0;
    cursor: pointer;
    transition: all 0.4s ease;
}

.recipe-community-grid .recipe-result-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(112, 85, 66, 0.2);
    border-color: #705542;
}

.recipe-community-grid .recipe-result-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.recipe-community-grid .recipe-result-card:hover .recipe-result-img {
    transform: scale(1.04);
}

/* Author badge - top left */
.recipe-result-author-badge {
    position: absolute;
    top: 0.6rem;
    left: 0.6rem;
    background: rgba(255, 255, 255, 0.92);
    color: #705542;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    backdrop-filter: blur(4px);
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

/* Comment overlay at bottom */
.recipe-community-grid .recipe-result-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 70%, transparent 100%);
    padding: 2rem 0.85rem 0.75rem;
}

.recipe-community-grid .recipe-result-comment {
    color: rgba(255,255,255,0.95);
    font-size: 0.82rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Empty state card */
.recipe-result-card-empty {
    grid-column: span 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    min-height: 200px;
    background: white;
    border-radius: 5px;
    border: 2.5px dashed #d4c4b0;
    color: #9ca3af;
    text-align: center;
    padding: 2rem;
}

.recipe-result-card-empty svg {
    color: #d4c4b0;
}

.recipe-result-card-empty p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #6b7280;
}

.recipe-result-card-empty strong {
    color: #705542;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .recipe-community-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .recipe-upload-card-content {
        padding: 0.75rem;
        gap: 0.5rem;
    }
    
    .recipe-upload-label-compact svg {
        width: 32px;
        height: 32px;
    }
    
    .upload-label-text {
        font-size: 0.8rem;
    }
    
    .recipe-comment-input-compact {
        padding: 0.5rem;
        font-size: 0.8rem;
    }
    
    .recipe-submit-btn-compact {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .upload-auth-title {
        font-size: 0.9rem;
    }
    
    .upload-auth-text {
        font-size: 0.75rem;
    }
    
    .recipe-upload-card-auth svg {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 480px) {
    .recipe-community-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .recipe-sharing-section {
        padding: 2.5rem 0;
    }
    
    .recipe-sharing-header {
        margin-bottom: 1.5rem;
    }
    
    .recipe-sharing-subtitle {
        font-size: 1rem;
    }
}

/* ============================================
   BACK BUTTON
   ============================================ */
.recipe-back-section {
    padding: 3rem 0;
}

.recipe-back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: white;
    color: #705542;
    text-decoration: none;
    padding: 0.875rem 2rem;
    border-radius: 5px;
    border: 2px solid #705542;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.recipe-back-btn:hover {
    background: #705542;
    color: white;
    transform: translateX(-5px);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 991px) {
    .recipe-hero-title {
        font-size: 2rem;
    }

    .recipe-hero-description {
        font-size: 1rem;
    }
}

@media (max-width: 767px) {
    .recipe-video-container {
        height: 40vh;
        min-height: 400px;
    }

    .recipe-hero-title {
        font-size: 1.5rem;
    }

    .recipe-hero-description {
        font-size: 0.95rem;
    }

    .recipe-hero-meta {
        gap: 0.75rem;
    }

    .recipe-hero-meta-item {
        font-size: 0.85rem;
        padding: 0.5rem 0.875rem;
    }

    .recipe-gallery-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .recipe-gallery-main {
        grid-column: span 1;
    }

    .recipe-section-main-title {
        font-size: 1.5rem;
    }

    .recipe-card-title {
        font-size: 1.25rem;
    }

    .recipe-instructions-card {
        padding: 1.5rem;
    }

    .recipe-step-item {
        padding: 1rem;
        gap: 0.875rem;
    }

    .recipe-step-number {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .recipe-results-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575px) {
    .recipe-video-overlay {
        padding: 2rem 0 1.5rem;
    }

    .recipe-hero-title {
        font-size: 1.35rem;
    }

    .recipe-hero-description {
        font-size: 0.9rem;
    }

    .recipe-sharing-upload {
        padding: 1.5rem;
    }
}

/* ============================================
   ACCESSIBILITY & ANIMATIONS
   ============================================ */

.recipe-step-checkbox:focus,
.recipe-submit-btn:focus,
.recipe-login-btn:focus {
    outline: 3px solid rgba(112, 85, 66, 0.3);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   UNIFIED SECTION - INGREDIENTS & STEP-BY-STEP WITH PHOTOS
   Two-column layout: sticky ingredients sidebar + instructions with photos
   ============================================ */
.recipe-unified-section {
    margin-bottom: 3rem;
    scroll-behavior: smooth;
    /* Force immediate visibility - disable any scroll animations */
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    visibility: visible !important;
}

/* Force all children to be immediately visible too */
.recipe-unified-section *,
.recipe-unified-section .container-fluid,
.recipe-unified-section .row,
.recipe-unified-section .col-lg-4,
.recipe-unified-section .col-lg-8,
.recipe-ingredients-card,
.recipe-instructions-card,
.recipe-steps-with-photos,
.recipe-step-with-photo {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    visibility: visible !important;
}

/* Prevent scroll jump on page load */
html {
    scroll-behavior: smooth;
}

/* Apply overflow-x: hidden only to sections that DON'T contain sticky elements */
.recipe-video-hero,
.recipe-ingredients-section,
.recipe-sharing-section {
    overflow-x: hidden;
}

/* The unified section needs clip instead of hidden to allow sticky */
.recipe-unified-section {
    overflow: clip;
    overflow-clip-margin: content-box;
}

/* ============================================
   INGREDIENTS SIDEBAR (Left Column - Sticky)
   ============================================ */
/* ============================================
   LEFT COLUMN STICKY WRAPPER (all 3 containers)
   ============================================ */
.recipe-left-sticky-wrapper {
    position: sticky;
    top: 80px;
    margin-top: 1rem;
    align-self: flex-start;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: #c9b9a8 transparent;
    padding-right: 2px;
}

.recipe-left-sticky-wrapper::-webkit-scrollbar {
    width: 5px;
}

.recipe-left-sticky-wrapper::-webkit-scrollbar-track {
    background: transparent;
}

.recipe-left-sticky-wrapper::-webkit-scrollbar-thumb {
    background: #c9b9a8;
    border-radius: 5px;
}

.recipe-ingredients-card {
    background: linear-gradient(180deg, #fffaf5 0%, #ffffff 100%);
    border-radius: 5px;
    padding: 0;
    box-shadow: 0 4px 20px rgba(112, 85, 66, 0.08);
    border: 1px solid #e8ddd4;
    overflow: visible;
}



.recipe-ingredients-card .recipe-card-header {
    background: linear-gradient(135deg, #705542 0%, #8b6f47 100%);
    padding: 1.25rem 1.5rem;
    margin-bottom: 0;
    border-bottom: none;
    border-radius: 5px 5px 0 0;
}

.recipe-ingredients-card .recipe-card-title {
    color: white;
    font-size: 1.15rem;
}

.recipe-ingredients-card .recipe-card-title svg {
    color: #f4d9a6;
}

/* Ensure the row doesn't break sticky */
.recipe-unified-section .row {
    overflow: visible;
}

.recipe-unified-section .col-lg-4 {
    overflow: visible;
}

/* ============================================
   INSTRUCTIONS WITH PHOTOS (Right Column)
   ============================================ */
.recipe-instructions-card {
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    border: none;
}

.recipe-steps-with-photos {
    display: flex;
    flex-direction: column;
    gap: 0.75rem; /* Further reduced from 1.25rem */
}

.recipe-step-with-photo {
    background: white;
    border-radius: 5px; /* Further reduced from 12px */
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05); /* Minimal shadow */
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.recipe-step-with-photo:hover {
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
    transform: translateY(-1px);
}

/* Step Photo Container - Much more compact */
.recipe-step-photo-container {
    position: relative;
    width: 100%;
    padding-top: 20%; /* Further reduced from 45% for very compact photos */
    background: #f5f1ed;
    overflow: hidden;
}

.recipe-step-photo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.recipe-step-with-photo:hover .recipe-step-photo {
    transform: scale(1.05);
}

.recipe-step-photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 60%, transparent 100%);
    padding: 0.5rem 0.75rem; /* Further reduced from 0.75rem 1rem */
    pointer-events: none;
}

.recipe-step-photo-number {
    color: white;
    font-size: 1.25rem; /* Further reduced from 1rem */
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

/* Step Content Box - Very compact */
.recipe-step-content-box {
    padding: 0.75rem; /* Further reduced from 1rem */
}

.recipe-step-header {
    display: flex;
    align-items: center;
    gap: 0.5rem; /* Further reduced from 0.75rem */
    margin-bottom: 0.5rem; /* Further reduced from 0.75rem */
}

.recipe-step-number-badge {
    width: 32px; /* Further reduced from 36px */
    height: 32px;
    background: linear-gradient(135deg, #705542, #8b6f47);
    color: white;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem; /* Further reduced from 1rem */
    box-shadow: 0 2px 6px rgba(112, 85, 66, 0.2); /* Lighter shadow */
    flex-shrink: 0;
}

.recipe-step-with-photo.step-completed .recipe-step-number-badge {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.recipe-step-checkbox-wrapper {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.recipe-step-checkbox {
    appearance: none;
    width: 20px; /* Further reduced from 22px */
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 5px;
    background: white;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s;
}

.recipe-step-checkbox:hover {
    border-color: #705542;
}

.recipe-step-checkbox:checked {
    background: linear-gradient(135deg, #705542, #8b6f47);
    border-color: #705542;
}

.recipe-step-checkbox:checked::after {
    content: '?';
    display: block;
    text-align: center;
    color: white;
    font-size: 13px; /* Further reduced from 14px */
    font-weight: bold;
    line-height: 16px; /* Further reduced from 18px */
}

.recipe-step-checkbox-label {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.recipe-step-checkbox-label svg {
    color: white;
}

.recipe-step-text {
    color: #374151;
    font-size: 1rem; /* Further reduced from 0.95rem */
    line-height: 1.5; /* Further reduced from 1.6 */
}

.recipe-step-with-photo.step-completed {
    opacity: 0.7;
}

.recipe-step-with-photo.step-completed .recipe-step-content-box {
    background: #f0fdf4;
}

.recipe-step-with-photo.step-completed .recipe-step-text {
    text-decoration: line-through;
    color: #9ca3af;
}

/* ============================================
   RESPONSIVE DESIGN FOR UNIFIED SECTION
   ============================================ */
@media (max-width: 991px) {
    .recipe-ingredients-card {
        position: static;
        margin-bottom: 2rem;
        max-height: none;
    }

    .recipe-ingredients-list-sidebar {
        padding: 0.5rem 1rem 1rem;
    }
    
    .recipe-steps-with-photos {
        gap: 0.65rem; /* Very compact on tablet */
    }
    
    .recipe-step-photo-container {
        padding-top: 40%; /* Slightly taller on tablet for better balance */
    }
}

@media (max-width: 767px) {
    .recipe-step-photo-container {
        padding-top: 50%; /* Adjusted for mobile */
    }
    
    .recipe-step-content-box {
        padding: 0.65rem; /* Further reduced from 0.875rem */
    }
    
    .recipe-step-text {
        font-size: 0.85rem; /* Further reduced from 0.9rem */
        line-height: 1.45;
    }
    
    .recipe-step-number-badge {
        width: 28px; /* Further reduced from 32px */
        height: 28px;
        font-size: 0.85rem; /* Further reduced from 0.9rem */
    }
    
    .recipe-card-title {
        font-size: 1.1rem; /* Further reduced from 1.15rem */
    }
    
    .recipe-steps-with-photos {
        gap: 0.6rem; /* Ultra compact on mobile */
    }
    
    .recipe-step-header {
        gap: 0.4rem;
        margin-bottom: 0.4rem;
    }
    
    .recipe-step-checkbox {
        width: 18px;
        height: 18px;
    }
    
    .recipe-step-checkbox:checked::after {
        font-size: 12px;
        line-height: 14px;
    }
    
    .recipe-step-photo-overlay {
        padding: 0.4rem 0.6rem;
    }
    
    .recipe-step-photo-number {
        font-size: 0.8rem;
    }
}


