.recipes-loading {
    text-align: center;
    padding: 3rem;
    color: #a7a7a7;
    font-size: 1rem;
}

.recipe-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 3rem;
}

.recipe-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1.1rem;
    border-radius: 6px;
    background: #f8f8f8;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.recipe-list-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    color: inherit;
    text-decoration: none;
}

.recipe-thumb {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 6px;
    margin-right: 1rem;
    flex-shrink: 0;
}

.recipe-list-text {
    flex: 1;
    min-width: 0;
}

.recipe-list-item h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #222;
}

.recipe-list-item .recipe-meta {
    font-size: 1rem;
    color: #888;
    white-space: nowrap;
}

/* Hint shown next to the title of recipes that have a Variaciones section. */
.recipe-list-item .recipe-variations {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    vertical-align: middle;
    margin-left: 0.5rem;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    background: rgba(0, 76, 182, 0.1);
    color: #004cb6;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.recipe-list-item .recipe-variations i {
    color: inherit;
    margin-left: 0;
    font-size: 0.8rem;
}

.recipe-list-item i {
    color: #004cb6;
    margin-left: 0.75rem;
    font-size: 1.05rem;
}

/* Recipe detail view */
#recipe-detail {
    display: none;
}

.recipe-back-btn {
    background: none;
    border: none;
    color: #004cb6;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.recipe-back-btn:hover {
    text-decoration: underline;
}

.recipe-content {
    font-size: 1.15rem;
}

.recipe-content h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 0.5rem;
}

.recipe-content p strong {
    color: #555;
}

.recipe-hero {
    display: block;
    object-fit: cover;
    border-radius: 10px;
}

/* Desktop: pinned to the top-right corner, level with the page header.
   The header, title and ingredients flow around it; instructions clear below. */
main > .recipe-hero {
    float: right;
    width: 300px;
    max-width: 40%;
    margin: 0 0 1.25rem 1.75rem;
}

/* Mobile: placed inline, directly under the recipe title. */
@media (max-width: 767px) {
    .recipe-hero {
        width: 100%;
        margin: 0.75rem 0 1.25rem;
    }
}

/* Inline image inside a recipe variation. Desktop: floats to the right with
   the text wrapping beside it. Mobile: full-width block below the title. */
.variation-img {
    float: right;
    width: 260px;
    max-width: 45%;
    margin: 0 0 1rem 1.5rem;
    border-radius: 8px;
}

@media (max-width: 767px) {
    .variation-img {
        float: none;
        width: 100%;
        max-width: none;
        margin: 0.75rem 0 1.25rem;
    }
}

.recipe-content h2 {
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #004cb6;
    border-bottom: 2px solid #004cb6;
    padding-bottom: 0.3rem;
    margin-top: 1.75rem;
    margin-bottom: 0.9rem;
    letter-spacing: 0.06em;
}

.recipe-content ul,
.recipe-content ol {
    padding-left: 1.4rem;
    color: #444;
    line-height: 1.8;
    font-size: 1.15rem;
}

.recipe-content li {
    margin-bottom: 0.3rem;
}

/* Ingredient lists with more than 6 items split into two columns. */
.recipe-content ul.ingredients-columns {
    column-count: 2;
    column-gap: 2.5rem;
}

.recipe-content ul.ingredients-columns li {
    break-inside: avoid;
}

@media (max-width: 600px) {
    .recipe-content ul.ingredients-columns {
        column-count: 1;
    }
}

.recipe-content blockquote,
.recipe-content p {
    color: #444;
    line-height: 1.7;
    font-size: 1.15rem;
}

.recipe-content hr {
    border: none;
    border-top: 1px solid #e5e5e5;
    margin: 1.5rem 0;
}
