/* ===== Кнопка «Сохранить рецепт» ===== */
.mirmyla-save-recipe {
    display: inline-block;
    margin: 5px 5px 5px 0;
    padding: 8px 18px;
    background: linear-gradient(135deg, #2c7a7b, #4a9b8e);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(44, 122, 123, 0.3);
}
.mirmyla-save-recipe:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 122, 123, 0.4);
}
.mirmyla-save-recipe:active {
    transform: translateY(0);
}

/* ===== Бейдж похожих рецептов ===== */
.mirmyla-similar-badge {
    display: inline-block;
    margin: 5px 5px 5px 0;
    padding: 6px 12px;
    background: #f0f9f4;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}
.mirmyla-similar-badge:hover {
    background: #e8f5e9;
    border-color: #a5d6a7;
}
.mirmyla-similar-badge a {
    color: #1b5e20;
    text-decoration: none;
    font-weight: 600;
}
.mirmyla-similar-badge a:hover {
    text-decoration: underline;
}

/* ===== Модальное окно «Нужна регистрация» ===== */
#mirmyla-login-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}
#mirmyla-login-modal .modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}
#mirmyla-login-modal h3 {
    margin-top: 0;
    color: #2c7a7b;
    font-size: 1.3em;
}
#mirmyla-login-modal p {
    line-height: 1.6;
    color: #555;
}
#mirmyla-login-modal .button {
    display: inline-block;
    margin: 5px 10px;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}
#mirmyla-login-modal .button-primary {
    background: #2c7a7b;
    color: #fff;
}
#mirmyla-login-modal .button-secondary {
    background: #f1f1f1;
    color: #333;
}
#mirmyla-login-modal .modal-close {
    display: block;
    margin-top: 15px;
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    text-decoration: underline;
    font-size: 0.9em;
}

/* ===== Блок «Похожие рецепты» на странице рецепта ===== */
.mirmyla-similar-block {
    margin: 30px 0;
    padding: 20px;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}
.mirmyla-similar-block h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #2c7a7b;
    font-size: 1.2em;
}
.similar-recipes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}
.similar-recipe-card {
    background: #fff;
    border-radius: 10px;
    padding: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}
.similar-recipe-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}
.similar-recipe-card a {
    text-decoration: none;
    color: #333;
}
.similar-recipe-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 8px;
}
.similar-recipe-card .no-photo {
    width: 100%;
    height: 140px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 2em;
    color: #bbb;
}
.similar-recipe-card h4 {
    margin: 5px 0;
    font-size: 1em;
    line-height: 1.3;
}
.similar-recipe-card p {
    margin: 3px 0;
    font-size: 0.85em;
    color: #555;
}

/* ===== Личный кабинет [mirmyla_user_recipes] ===== */
#mirmyla-user-recipes {
    background: #f9fafb;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}
#mirmyla-user-recipes h3 {
    margin-top: 0;
    color: #2c7a7b;
}
.recipe-item {
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    margin-bottom: 10px;
}
.recipe-item strong a {
    color: #2c7a7b;
    text-decoration: none;
}
.recipe-item strong a:hover {
    text-decoration: underline;
}
.status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 600;
    margin-left: 8px;
}
.status.publish {
    background: #d4edda;
    color: #155724;
}
.status.draft {
    background: #fff3cd;
    color: #856404;
}
.status.archive {
    background: #f8d7da;
    color: #721c24;
}
.actions {
    margin-top: 10px;
}
.restore-btn,
.archive-btn {
    display: inline-block;
    margin: 3px;
    padding: 6px 14px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85em;
    font-weight: 600;
    transition: all 0.2s;
}
.restore-btn {
    background: #2c7a7b;
    color: #fff;
}
.restore-btn:hover {
    background: #1e5a5b;
}
.archive-btn {
    background: #f8d7da;
    color: #721c24;
}
.archive-btn:hover {
    background: #f5c2c7;
}
