/* PULSANTE */
.share-button-wrapper {
    position: relative;
    display: inline-block;
    vertical-align: middle; /* Allinea verticalmente con il testo */
    margin: 0 2px; /* Piccolo margine per separazione dal testo */
}

/* Rimuovo le classi di allineamento flessibile esistenti e le sostituisco */
.share-align-left { 
    float: left;
    margin-right: 10px;
}
.share-align-right { 
    float: right;
    margin-left: 10px;
}
.share-align-center {
    display: block;
    text-align: center;
    margin: 10px auto;
}

.share-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s, transform 0.15s;
}
.share-button:hover { transform: translateY(-2px); }
.share-icon { width: 20px; height: 20px; }

/* MENU */
.share-menu {
    display: none;
    position: absolute;
    top: 100%;
    margin-top: 6px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 8px 0;
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
    z-index: 1000;
    min-width: 180px;
}
.share-menu .share-option {
    display: block;
    width: 100%;
    padding: 12px 18px;
    background: none;
    border: none;
    text-align: left;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.25s;
}
.share-menu .share-option:hover { background: #f5f5f5; }

/* MODAL QR CODE */
.qr-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
    z-index: 10000;
}
.qr-modal-content {
    background: #fff;
    padding: 20px 30px;
    border-radius: 12px;
    max-width: 300px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}
.qr-modal-content h2 { margin: 0 0 15px; font-size: 18px; }
#qrcode { display: flex; justify-content: center; align-items: center; }
.qr-close { position: absolute; top: 10px; right: 14px; font-size: 24px; cursor: pointer; color: #666; }
.qr-close:hover { color: #000; }

/* TOAST */
.copy-toast {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%) translateY(30px);
    background: #333;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    z-index: 10001;
}
.copy-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* RESPONSIVE */
@media (max-width: 600px) {
    .share-button { padding: 12px 16px; font-size: 16px; }
    .share-menu { min-width: 200px; }
    .share-menu .share-option { font-size: 16px; padding: 14px 20px; }
    .qr-modal-content { width: 95%; padding: 16px 20px; }
}

