/* =============================================================================
   SAVE RECIPE BUTTON
============================================================================= */

.save-recipe-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: transparent;
    border: 2px solid currentColor;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    color: #555;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    line-height: 1;
}

.save-recipe-btn svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
    transition: fill 0.2s ease, stroke 0.2s ease;
}

/* Saved state */
.save-recipe-btn.is-saved {
    color: #e05a2b; /* swap for your brand colour */
    border-color: #e05a2b;
}

.save-recipe-btn.is-saved svg {
    fill: #e05a2b;
    stroke: #e05a2b;
}

/* Loading state */
.save-recipe-btn.is-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Hover */
.save-recipe-btn:hover:not(.is-loading) {
    color: #e05a2b;
    border-color: #e05a2b;
}

.save-recipe-btn:hover:not(.is-loading) svg {
    stroke: #e05a2b;
}


/* =============================================================================
   MY ACCOUNT — SAVED RECIPES GRID
============================================================================= */

.saved-recipes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
    margin-top: 16px;
}

.saved-recipe-card {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e5e5e5;
    background: #fff;
    transition: box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.saved-recipe-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.saved-recipe-card__image-link {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

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

.saved-recipe-card:hover .saved-recipe-card__image {
    transform: scale(1.04);
}

.saved-recipe-card__image--placeholder {
    background: #f0f0f0;
    width: 100%;
    height: 100%;
}

.saved-recipe-card__body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.saved-recipe-card__title {
    margin: 0;
    font-size: 1rem;
    line-height: 1.4;
}

.saved-recipe-card__title a {
    text-decoration: none;
    color: inherit;
}

.saved-recipe-card__title a:hover {
    text-decoration: underline;
}

/* Remove button — compact variant inside card */
.saved-recipe-card__remove {
    font-size: 0.8rem;
    padding: 6px 12px;
    margin-top: auto;
    align-self: flex-start;
}

/* Empty state */
.saved-recipes-empty {
    padding: 32px 0;
    color: #777;
}

.saved-recipes-empty a {
    color: #e05a2b;
}

/* Responsive */
@media (max-width: 480px) {
    .saved-recipes-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
}

@media (max-width: 340px) {
    .saved-recipes-grid {
        grid-template-columns: 1fr;
    }
}
