/* FG-SPLIT-RECIPES-DETAILS: codice che stava dentro public/recipes-details.php (corsa 1, 2 blocchi), spostato qui dall'installer.
   I valori del PHP arrivano da window.__FG_PG. */

/*FG-SPLIT-BLOCCO 1: qui finiva un <script>/<style> della pagina e ne cominciava un altro [Cgo8IS0tIPCfk6QgU0hBUkUgUkVDSVBFIEZVTkNUSU9OQUxJVFkgLS0+CjxzdHlsZT4=]*/

.btn-share {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-share:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

/* Share Modal */
.share-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.share-modal.active {
    display: flex;
}

.share-modal-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.share-modal h3 {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 25px;
    text-align: center;
}

.share-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.share-btn {
    padding: 15px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.share-btn.facebook { background: #1877f2; color: white; }
.share-btn.twitter { background: #1da1f2; color: white; }
.share-btn.whatsapp { background: #25d366; color: white; }
.share-btn.email { background: #ea4335; color: white; }

.copy-link-section {
    background: #f5f7fa;
    padding: 15px;
    border-radius: 10px;
    display: flex;
    gap: 10px;
}

.copy-link-section input {
    flex: 1;
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
}

.copy-link-section button {
    background: #667eea;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.copy-link-section button:hover {
    background: #764ba2;
}

.close-modal-btn {
    width: 100%;
    margin-top: 20px;
    padding: 12px;
    background: #e0e0e0;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.close-modal-btn:hover {
    background: #d0d0d0;
}

@media (max-width: 768px) {
    .share-buttons {
        grid-template-columns: 1fr;
    }
}

/* ⭐ BOTTONE SALVA RICETTA */
.save-recipe-btn {
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    text-decoration: none;
    margin-right: 10px;
}

.save-recipe-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 107, 107, 0.4);
    text-decoration: none;
    color: white;
}

.save-recipe-btn.saved {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.save-recipe-btn .heart-icon {
    font-size: 20px;
    transition: all 0.3s;
}

.save-recipe-btn.saved .heart-icon {
    animation: heartbeat 0.6s ease-in-out;
}

.save-recipe-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.3); }
}

/* 🍳 COOKED BUTTON - SUPER SEXY VERSION */
.cooked-recipe-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4), 
                0 0 0 0 rgba(102, 126, 234, 0.4);
    position: relative;
    overflow: hidden;
}

.cooked-recipe-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.cooked-recipe-btn:hover::before {
    left: 100%;
}

.cooked-recipe-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.5),
                0 0 0 4px rgba(102, 126, 234, 0.2);
}

.cooked-recipe-btn:active {
    transform: translateY(-2px) scale(1.02);
}

.cooked-recipe-btn .cook-icon {
    font-size: 22px;
    transition: all 0.4s;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.cooked-recipe-btn:hover .cook-icon {
    transform: rotate(-15deg) scale(1.2);
}

/* STATO: GIÀ CUCINATO */
.cooked-recipe-btn.cooked {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 10px 30px rgba(245, 87, 108, 0.4);
    animation: pulseGlow 2s infinite;
}

.cooked-recipe-btn.cooked .cook-icon {
    animation: chefKiss 0.8s ease-in-out;
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 10px 30px rgba(245, 87, 108, 0.4); }
    50% { box-shadow: 0 10px 40px rgba(245, 87, 108, 0.6), 0 0 20px rgba(245, 87, 108, 0.3); }
}

@keyframes chefKiss {
    0% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.4) rotate(-20deg); }
    50% { transform: scale(1.2) rotate(15deg); }
    75% { transform: scale(1.3) rotate(-10deg); }
    100% { transform: scale(1) rotate(0deg); }
}

@keyframes confettiFall {
    0% { 
        transform: translateY(0) rotate(0deg); 
        opacity: 1; 
    }
    100% { 
        transform: translateY(100vh) rotate(720deg); 
        opacity: 0; 
    }
}
    50% { transform: scale(1.1); }
    75% { transform: scale(1.2); }
}

@media (max-width: 768px) {
    .save-recipe-btn {
        width: 100%;
        justify-content: center;
        margin-bottom: 10px;
        margin-right: 0;
    }
}

