/**
 * Stili per la funzionalità di condivisione
 * Styles for sharing functionality
 */

/* Menu di condivisione */
.share-menu {
    position: absolute;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    padding: 10px;
    min-width: 220px;
    z-index: 1000;
    display: none;
    flex-direction: column;
    gap: 8px;
}

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

.share-menu-item {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
    text-decoration: none;
    color: #333;
}

.share-menu-item:hover {
    background-color: #f0f0f0;
}

.share-menu-item img {
    width: 24px;
    height: 24px;
    margin-right: 12px;
    object-fit: contain;
}

/* Separatore nel menu */
.share-menu-separator {
    height: 1px;
    background-color: #e0e0e0;
    margin: 5px 0;
    width: 100%;
}

/* Notifica di copia negli appunti */
.copy-notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    display: none;
    z-index: 1000;
}

/* Bottone di condivisione generico */
.share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 4px;
    background-color: #f0f0f0;
    color: #333;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.share-button:hover {
    background-color: #e0e0e0;
}

.share-button img {
    width: 18px;
    height: 18px;
    margin-right: 8px;
}

/* Pulsante di condivisione nella card */
.card-share-button {
    background: none;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.card-share-button img {
    width: 18px;
    height: 18px;
    margin-right: 0;
}

.card-share-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Posizionamento specifico per i menu nelle card */
.item-card .share-menu {
    bottom: 100%;
    right: 0;
    margin-bottom: 10px;
    z-index: 1010;
}

/* Posizionamenti specifici per i menu */
.share-menu-dropdown {
    bottom: 100%;
    right: 0;
    margin-bottom: 5px;
}

.share-menu-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Pulsanti social singoli (per uso diretto senza menu) */
.social-share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
}

.social-button {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
}

.social-button:hover {
    transform: scale(1.1);
    opacity: 0.9;
}

.social-button img {
    width: 24px;
    height: 24px;
}

.social-button.facebook {
    background-color: #3b5998;
}

.social-button.twitter {
    background-color: #1da1f2;
}

.social-button.whatsapp {
    background-color: #25d366;
}

.social-button.telegram {
    background-color: #0088cc;
}

.social-button.email {
    background-color: #777;
}

.social-button.pinterest {
    background-color: #e60023;
}

.social-button.linkedin {
    background-color: #0077b5;
}

/* Bottone di condivisione mobile */
.mobile-share-button {
    display: none;
}

/* Layout dei pulsanti di azione */
.card-actions-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.card-like-favorite-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

@media (max-width: 768px) {
    .mobile-share-button {
        display: flex;
    }
    
    .share-menu {
        min-width: 260px;
    }
    
    .social-share-buttons {
        justify-content: center;
    }
} 