/* ================================
   CREDITI FOTO AUTENTICA
   Badge "Foto di: Nick + Avatar" in basso a destra
================================ */

.ricetta-icg__immagine-wrapper {
    position: relative;
}

.ricetta-icg__foto-credits {
    position: absolute;
    bottom: 15px;
    right: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 8px 14px;
    border-radius: 25px;
    color: white;
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 10;
    transition: all 0.3s ease;
}

.ricetta-icg__foto-credits:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    background: rgba(0, 0, 0, 0.85);
}

.ricetta-icg__foto-credits-icon {
    font-size: 14px;
}

.ricetta-icg__foto-credits-label {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
}

.ricetta-icg__foto-credits-name {
    color: white;
    font-weight: 600;
}

.ricetta-icg__foto-credits-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.9);
    object-fit: cover;
    margin-left: 4px;
}

/* Badge Foto Autentica (verificato) */
.ricetta-icg__foto-credits.verified::after {
    content: "✓";
    position: absolute;
    top: -5px;
    right: -5px;
    background: #4caf50;
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.4);
}

/* Responsive */
@media (max-width: 600px) {
    .ricetta-icg__foto-credits {
        bottom: 10px;
        right: 10px;
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .ricetta-icg__foto-credits-avatar {
        width: 24px;
        height: 24px;
    }
    
    .ricetta-icg__foto-credits-label {
        display: none;
    }
}

/* ================================
   SEZIONE AUTORE CON NICKNAME
================================ */
.ricetta-icg__autore {
    margin-top: 30px !important;
    padding: 20px !important;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    border-radius: 12px !important;
    border-left: 4px solid #667eea !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
}

.ricetta-icg__autore-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid #667eea;
    object-fit: cover;
}

.ricetta-icg__autore-info {
    flex: 1;
}

.ricetta-icg__autore-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
}

.ricetta-icg__autore-name {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.ricetta-icg__autore-nickname {
    font-size: 14px;
    color: #667eea;
    font-weight: 500;
}

/* Tooltip per nome completo */
.ricetta-icg__autore-name[title] {
    cursor: help;
    border-bottom: 1px dotted #999;
}

/* ================================
   STILI FORM UPLOAD FOTO (Frontend)
================================ */

/* Status badges nelle ricette */
.ricetta-icg__status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.ricetta-icg__status-badge--authentic {
    background: linear-gradient(135deg, #4caf50 0%, #43a047 100%);
    color: white;
}

.ricetta-icg__status-badge--pending {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: white;
}

.ricetta-icg__status-badge--needed {
    background: linear-gradient(135deg, #9e9e9e 0%, #757575 100%);
    color: white;
}

/* Animazione pulse per foto autentiche */
@keyframes authentic-pulse {
    0% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(76, 175, 80, 0); }
    100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0); }
}

.ricetta-icg__foto-credits.verified {
    animation: authentic-pulse 2s ease-out;
}

/* ================================
   NOTICE E MESSAGGI
================================ */

.ricette-icg-photo-notice {
    padding: 20px 25px;
    border-radius: 10px;
    margin: 20px 0;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.ricette-icg-photo-notice--success {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-left: 4px solid #4caf50;
}

.ricette-icg-photo-notice--warning {
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
    border-left: 4px solid #ff9800;
}

.ricette-icg-photo-notice--error {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    border-left: 4px solid #f44336;
}

.ricette-icg-photo-notice--info {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-left: 4px solid #2196f3;
}

.ricette-icg-photo-notice p {
    margin: 0;
    color: #333;
}

.ricette-icg-photo-notice a {
    color: inherit;
    font-weight: 600;
}
