/* Recipe Detail Page Styles */
.recipe-detail {
    padding: 0;
    background: #f8f9fa;
}

.recipe-header {
    position: relative;
    margin-bottom: 3rem;
}

.recipe-header__image {
    width: 100%;
    height: 500px;
    position: relative;
    overflow: hidden;
}

.recipe-header__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.recipe-header__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.6));
}

.recipe-header__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 3rem 2rem;
    color: white;
    max-width: 1200px;
    margin: 0 auto;
}

.recipe-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.recipe-meta {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.recipe-meta__item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
}

.recipe-meta__item i {
    font-size: 1.3rem;
    color: var(--primary-color);
}

.recipe-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 3rem;
    display: grid;
    gap: 2.5rem;
}

.recipe-image {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.recipe-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.recipe-info {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2.5rem;
    padding: 2.5rem;
    background: white;
    border-radius: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.nutrition-score {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.nutrition-score__header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nutrition-score__header i {
    font-size: 2rem;
    color: var(--primary-color);
}

.nutrition-score__header h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin: 0;
}

.nutrition-score__content {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.score-circle {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #45a049 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.2);
}

.score-circle__inner {
    width: 100px;
    height: 100px;
    background: white;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.score-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    line-height: 1;
}

.score-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.nutrition-score__details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.nutrition-score__item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.nutrition-score__item i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.nutrition-score__item span {
    color: var(--text-primary);
    font-size: 1.1rem;
}

.recipe-actions {
    display: flex;
    align-items: center;
}

.btn-cooking {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    border-radius: 2rem;
    transition: all 0.3s ease;
    background: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.btn-cooking i {
    font-size: 1.3rem;
}

.btn-cooking:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2);
    background: #45a049;
}

.btn-cooking:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(76, 175, 80, 0.2);
}

.recipe-ingredients {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.recipe-ingredients__header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.recipe-ingredients__header i {
    font-size: 2rem;
    color: var(--primary-color);
}

.recipe-ingredients__header h2 {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin: 0;
}

 1rem;
}

\n    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));\n    gap: 0.75rem;\n}

\n    background: white;\n    border-radius: 0.8rem;\n    padding: 0.75rem 1rem;\n    border: 1px solid #eef2f4;\n    transition: box-shadow 0.2s ease;\n}

\n    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);\n}

\n    display: flex;\n    justify-content: space-between;\n    align-items: center;\n    gap: 0.75rem;\n}

\n    font-size: 1rem;\n    color: var(--text-primary);\n    font-weight: 500;\n    display: flex;\n    align-items: center;\n    white-space: nowrap;\n    overflow: hidden;\n    text-overflow: ellipsis;\n}

.ingredient-item__amount {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f8f9fa;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
}

.ingredient-item__amount .amount {
    font-weight: bold;
    color: var(--primary-color);
}

.ingredient-item__amount .unit {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.recipe-instructions {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.recipe-instructions__header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.recipe-instructions__header i {
    font-size: 2rem;
    color: var(--primary-color);
}

.recipe-instructions__header h2 {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin: 0;
}

.recipe-instructions__content {
    background: #f8f9fa;
    border-radius: 0.8rem;
    padding: 1.5rem;
}

.cooking-mode-toggle {
    margin-bottom: 2rem;
    text-align: right;
}

.instructions-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1.5rem;
}

.instruction-step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.5rem;
    background: white;
    border-radius: 0.8rem;
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 1.5rem;
}

.instruction-step:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.instruction-step__number {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 2px 4px rgba(76, 175, 80, 0.2);
}

.instruction-step__content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.instruction-step__content p {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-primary);
    line-height: 1.6;
}

.instruction-step__tips {
    background: #fff8e1;
    padding: 1rem;
    border-radius: 0.8rem;
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
}

.instruction-step__tips i {
    color: #ffc107;
    font-size: 1.2rem;
    margin-top: 0.2rem;
}

.instruction-step__tips p {
    margin: 0;
    color: #856404;
    font-size: 1rem;
    line-height: 1.5;
}

.instruction-step__time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.instruction-step__time i {
    color: var(--primary-color);
}

.instruction-step__warnings {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 0.75rem;
    margin: 0.5rem 0;
    border-radius: 0.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.instruction-step__warnings i {
    color: #ffc107;
    font-size: 1.1rem;
    margin-top: 0.2rem;
}

.instruction-step__warnings p {
    color: #856404;
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.4;
}

/* РЎС‚РёР»Рё РґР»СЏ СЂРµР¶РёРјР° РіРѕС‚РѕРІРєРё */
.cooking-mode .recipe-instructions {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    background: white;
    overflow-y: auto;
    padding: 2rem;
    border-radius: 0;
}

.cooking-mode .recipe-instructions__header {
    position: sticky;
    top: 0;
    background: white;
    padding: 1rem 0;
    margin-bottom: 1rem;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.cooking-mode .instruction-step {
    margin-bottom: 2rem;
    background: #f8f9fa;
    padding: 2rem;
}

.cooking-mode .instruction-step__number {
    width: 50px;
    height: 50px;
    font-size: 1.4rem;
}

.cooking-mode .instruction-step__content p {
    font-size: 1.3rem;
    line-height: 1.8;
}

.cooking-mode .instruction-step__tips {
    margin-top: 1rem;
    padding: 1.2rem;
}

.cooking-mode .instruction-step__tips p {
    font-size: 1.1rem;
}

.cooking-mode .instruction-step__time {
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    .recipe-instructions {
        padding: 1.5rem;
    }

    .recipe-instructions__header {
        margin-bottom: 1.5rem;
    }

    .recipe-instructions__header i {
        font-size: 1.8rem;
    }

    .recipe-instructions__header h2 {
        font-size: 1.5rem;
    }

    .recipe-instructions__content {
        padding: 1rem;
    }

    .instruction-step {
        padding: 1.2rem;
        gap: 1rem;
    }

    .instruction-step__content p {
        font-size: 1rem;
    }

    .instruction-step__tips {
        padding: 0.8rem;
    }

    .instruction-step__tips p {
        font-size: 0.9rem;
    }

    .cooking-mode .instruction-step {
        padding: 1.5rem;
    }

    .cooking-mode .instruction-step__content p {
        font-size: 1.1rem;
    }

    .instruction-step__warnings {
        padding: 0.6rem;
    }
    
    .instruction-step__warnings i {
        font-size: 1rem;
    }
    
    .instruction-step__warnings p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .recipe-instructions {
        padding: 1rem;
    }

    .recipe-instructions__header {
        margin-bottom: 1rem;
    }

    .recipe-instructions__header i {
        font-size: 1.5rem;
    }

    .recipe-instructions__header h2 {
        font-size: 1.3rem;
    }

    .instruction-step {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 1rem;
    }

    .instruction-step__number {
        margin: 0 auto 1rem;
    }

    .instruction-step__tips {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .cooking-mode .instruction-step {
        padding: 1.2rem;
    }

    .cooking-mode .instruction-step__content p {
        font-size: 1rem;
    }

    .instruction-step__warnings {
        padding: 0.5rem;
    }
    
    .instruction-step__warnings i {
        font-size: 0.9rem;
    }
    
    .instruction-step__warnings p {
        font-size: 0.85rem;
    }
}

.nutritional-info {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.nutrition-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.nutrition-item {
    text-align: center;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nutrition-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.nutrition-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.nutrition-item .label {
    display: block;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.nutrition-item .value {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.nutrition-bar {
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.nutrition-bar__fill {
    height: 100%;
    background: var(--primary-color);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Notification Styles */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: 4px;
    box-shadow: var(--shadow);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.notification.show {
    transform: translateY(0);
    opacity: 1;
}

/* Modal Styles */
.remix-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.remix-modal.show {
    opacity: 1;
    visibility: visible;
}

.remix-modal__content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.remix-modal.show .remix-modal__content {
    transform: translateY(0);
}

.remix-modal h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.ingredients-select {
    margin: 1.5rem 0;
}

.ingredient-option {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

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

.ingredient-option label {
    display: block;
    padding: 0.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.ingredient-option label:hover {
    background-color: var(--light-gray);
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* Mobile Styles for Modal */
@media (max-width: 480px) {
    .remix-modal__content {
        width: 95%;
        padding: 1.5rem;
    }

    .modal-actions {
        flex-direction: column;
    }

    .modal-actions .btn {
        width: 100%;
    }
}

.recipes {
    padding: 3rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: calc(100vh - 200px);
}

.recipes__header {
    margin-bottom: 2rem;
}

.recipes__title {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

.recipes__filters {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.search-box {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

.search-box input {
    width: 100%;
    padding: 1.2rem 3.5rem 1.2rem 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: 2rem;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.search-box input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.1);
    background: white;
}

.search-box i {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 1.2rem;
}

.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    padding: 0.5rem;
}

.filter-btn {
    padding: 0.8rem 1.8rem;
    border: 2px solid var(--border-color);
    border-radius: 2rem;
    background: white;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2);
}

.recipes__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.recipe-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.recipe-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.recipe-card__image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.recipe-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.recipe-card:hover .recipe-card__image img {
    transform: scale(1.05);
}

.recipe-card__badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.recipe-card__content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.recipe-card__meta {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.recipe-card__meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.recipe-card__meta i {
    color: var(--primary-color);
}

.recipe-card__title {
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.recipe-card__description {
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
    line-height: 1.6;
    flex-grow: 1;
}

.recipe-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.recipe-card__tag {
    background: #f8f9fa;
    color: var(--text-secondary);
    padding: 0.4rem 0.8rem;
    border-radius: 1rem;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.recipe-card__tag:hover {
    background: var(--primary-color);
    color: white;
}

.recipe-card__button {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 2rem;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
}

.recipe-card__button:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2);
}

@media (max-width: 768px) {
    .recipes__filters {
        padding: 1.5rem;
    }

    .search-box input {
        padding: 1rem 3rem 1rem 1.2rem;
        font-size: 1rem;
    }

    .filter-btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }

    .recipes__grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }

    .recipe-card__title {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .recipes__filters {
        padding: 1rem;
    }

    .category-filters {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }

    .recipes__grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
}

.no-results {
    text-align: center;
    padding: 3rem 1rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    grid-column: 1 / -1;
}

.no-results i {
    font-size: 3rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.no-results h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.no-results p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.instruction-step__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.instruction-step__header p {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-primary);
    line-height: 1.6;
    flex: 1;
}

.instruction-step__warning-icon {
    color: #ffc107;
    font-size: 1.2rem;
    cursor: help;
    transition: transform 0.3s ease;
    padding: 0.5rem;
    border-radius: 50%;
    background: rgba(255, 193, 7, 0.1);
    position: relative;
}

.instruction-step__warning-icon:hover {
    transform: scale(1.1);
    background: rgba(255, 193, 7, 0.2);
}

.instruction-step__warning-icon:hover::after {
    content: attr(data-warning);
    position: absolute;
    bottom: 100%;
    right: 0;
    background: #fff3cd;
    color: #856404;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.4;
    width: max-content;
    max-width: 300px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    margin-bottom: 0.5rem;
    border: 1px solid #ffeeba;
}

.instruction-step__warning-icon:hover::before {
    content: '';
    position: absolute;
    bottom: calc(100% - 5px);
    right: 15px;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #ffeeba;
    z-index: 1000;
}

.instruction-step__warning-icon i {
    display: block;
}

@media (max-width: 768px) {
    .instruction-step__header {
        gap: 0.8rem;
    }

    .instruction-step__header p {
        font-size: 1rem;
    }

    .instruction-step__warning-icon:hover::after {
        max-width: 250px;
        font-size: 0.85rem;
        padding: 0.6rem 0.8rem;
    }
}

@media (max-width: 480px) {
    .instruction-step__header {
        gap: 0.5rem;
    }

    .instruction-step__header p {
        font-size: 0.95rem;
    }

    .instruction-step__warning-icon:hover::after {
        max-width: 200px;
        font-size: 0.8rem;
        padding: 0.5rem 0.7rem;
    }
} 
.ingredient-item__name::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary-color);
    margin-right: 0.6rem;
}

.ingredient-item__amount {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: #f3f5f7;
    padding: 0.35rem 0.6rem;
    border-radius: 1rem;
    border: 1px solid #e9ecef;
}

@media (max-width: 640px) {
    .ingredients-list {
        grid-template-columns: 1fr 1fr;
        gap: 0.6rem;
    }
}

@media (max-width: 420px) {
    .ingredients-list {
        grid-template-columns: 1fr;
    }
}
/* --- Ingredients compact two-column rows --- */
.recipe-ingredients__content {
  padding: 1rem;
}
.ingredients-list { list-style: none; margin: 0; padding: 0; display: block; }
.ingredient-item { padding: 0.6rem 0; border-bottom: 1px solid #eef2f4; background: transparent; }
.ingredient-item:last-child { border-bottom: none; }
.ingredient-item__content { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0.5rem; }
.ingredient-item__name { font-size: 1rem; color: var(--text-primary); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ingredient-item__name::before { content: none; }
.ingredient-item__amount { display: inline-flex; align-items: center; gap: 0.35rem; background: transparent; padding: 0; border: none; color: var(--text-secondary); font-weight: 500; }
.ingredient-item__amount .amount { color: var(--text-primary); font-weight: 600; }
.ingredient-item__amount .unit { font-size: 0.95rem; color: var(--text-secondary); }
@media (max-width: 520px) { .ingredient-item__name { white-space: normal; } }

/* At a Glance badges */
.nutrition-badges {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
}
.nutrition-badge {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.75rem;
  background: #fff;
  border: 1px solid #eef2f4;
  border-radius: 0.8rem;
  padding: 0.75rem 1rem;
}
.nutrition-badge__icon {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(76,175,80,0.1); color: var(--primary-color); font-size: 1rem;
}
.nutrition-badge__text .label { font-size: 0.9rem; color: var(--text-secondary); margin: 0; }
.nutrition-badge__text .value { font-size: 1.1rem; font-weight: 600; color: var(--text-primary); }